antville/code/Image/Image.skin
Tobi Schäfer fdfee2e50d fix: display of file origin in File and Image prototypes
* ignore origins with c:\fakepath\ (i.e. uploaded from local file system)
 * use `description_macro()` for output of either this.description or this.origin (if available) or nothing, instead of macro default
 * prevent setting this.description in `update()` methods or from formica bookmarklet
2016-06-26 13:21:57 +02:00

19 lines
573 B
Text

<% #main %>
<h1><% image.name %></h1>
<div class="uk-article-meta">
<% gettext "Posted by {0} on {1}" <% image.creator %> <% image.created short %> %>
</div>
<div class='av-image-box uk-margin-top'>
<figure>
<a href='<% image.url %>'>
<% image.render class='uk-thumbnail' %>
</a>
<% image.description prefix="<figcaption class='uk-text-small'>" suffix=</figcaption> %>
</figure>
</div>
<div class='uk-margin-top'>
<% image.link edit <% gettext Edit %> class='uk-button' %>
</div>
<% #preview %>
<p><% image.render | image.link %></p>