Skip to content

Commit

Permalink
Added fields to pictures: description, artist, copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
robbyn committed Sep 11, 2014
1 parent 856134c commit 1cc348f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion res/themes/default/preview.html
Expand Up @@ -12,7 +12,18 @@ <h1>${pic.name}</h2>
<div>
<figure>
<img src="${pic.name}">
<figcaption>${pic.name}</figcaption>
<figcaption>
<span class="name">${pic.name}</span>
#if($pic.description)
<span class="description">${pic.description}</span>
#end
#if($pic.artist)
<span class="artist">${pic.artist}</span>
#end
#if($pic.copyright)
<span class="copyright">${pic.copyright}</span>
#end
</figcaption>
</figure>
</div>
</body>
Expand Down
3 changes: 3 additions & 0 deletions res/themes/default/site/css/style.css
Expand Up @@ -70,3 +70,6 @@ h1 {
max-height: $math.round($previewSize.height)px;
max-width: 100%;
}
.artist {
font-weight: bold;
}

0 comments on commit 1cc348f

Please sign in to comment.