* 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
19 lines
573 B
Text
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>
|