now displaying medium titles properly on reel

This commit is contained in:
nek0 2015-07-19 04:55:20 +02:00
parent 54ca55e6af
commit 57ef9056bf
7 changed files with 9 additions and 9 deletions

View file

@ -315,7 +315,7 @@ console.log(itemsWidth,itemHeight)
.css('min-height', '100%')
.css('top', 0)
.css('left', 0)
.attr('title', $item.text());
//.attr('title', $item.text());
// inner (for fade effect).
$item.wrapInner('<div class="inner" />');

View file

@ -18,7 +18,7 @@ $else
<article class="item" data-width=#{mediumThumbWidth medium}>
<a href=@{MediumR mediumId}>
<figure class="thumbnail">
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
<figcaption>#{mediumTitle medium}
<div id="footer">

View file

@ -8,7 +8,7 @@ $forall (Entity mediumId medium) <- recentMedia
<article class="item" data-width=#{mediumThumbWidth medium}>
<a href=@{MediumR mediumId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
<figcaption>#{mediumTitle medium}
$if nextMedia
<div id="header" class="item" data-width="400">

View file

@ -6,7 +6,7 @@
by <a href=@{UserR ownerName}>#{ownerName}</a> from album <a href=@{AlbumR albumId}>#{albumTitle album}</a>
<div id="header" class="item image" data-width=#{dataWidth}>
<div class="inner">
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumPath medium) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumPath medium) []} title=#{mediumTitle medium}>
<div id="header" class="item" data-width="400">
<div class="inner">

View file

@ -15,7 +15,7 @@ $forall (Entity mediumId medium) <- pageMedia
<article class="item" data-width=#{mediumThumbWidth medium}>
<a href=@{MediumR mediumId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
<figcaption>#{mediumTitle medium}
$if nextMedia
<div id="header" class="item" data-width="400">

View file

@ -20,7 +20,7 @@ $forall (Entity albumId album) <- userAlbs
$if (albumSamplePic album) == Nothing
<img src=@{StaticR img_album_jpg}>
$else
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ fromJust $ albumSamplePic album) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ fromJust $ albumSamplePic album) []} title=#{albumTitle album}>
<figcaption>#{albumTitle album}
$if null sharedAlbs
@ -36,7 +36,7 @@ $else
$if (albumSamplePic album) == Nothing
<img src=@{StaticR img_album_jpg}>
$else
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ fromJust $ albumSamplePic album) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ fromJust $ albumSamplePic album) []} title=#{albumTitle album}>
<figcaption>#{albumTitle album}
$if null recentMedia
@ -49,7 +49,7 @@ $else
<article class="recent item" data-width=#{mediumThumbWidth medium}>
<a href=@{MediumR mediumId}>
<figure class="thumbnail">
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title={mediumTitle medium}>
<figcaption>#{mediumTitle medium}
<div id="footer">

View file

@ -9,5 +9,5 @@ $forall Just (Entity mId m) <- media
<article class="item" data-width=#{mediumThumbWidth m}>
<a href=@{MediumR mId}>
<figure class="thumbnail">
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb m) []}>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb m) []} title=#{mediumTitle medium}>
<figcapion>#{mediumTitle m}