diff options
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl')
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl index 3055cc861..f9209d3bf 100644 --- a/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl @@ -20,8 +20,17 @@ " [% IF attachment.isobsolete %]style="display:none"[% END %]> <td class="attach-desc-td"> <div class="attach-desc"> - <a href="attachment.cgi?id=[% attachment.id FILTER none %]"> - [%~ attachment.description FILTER html %]</a> + [% IF attachment.is_image %] + <a href="attachment.cgi?id=[% attachment.id FILTER none %]" + title="[% attachment.description FILTER html %]" + class="lightbox"> + <img src="extensions/BugModal/web/image.png" width="16" height="16"> + [%~ attachment.description FILTER html %] + </a> + [% ELSE %] + <a href="attachment.cgi?id=[% attachment.id FILTER none %]"> + [%~ attachment.description FILTER html %]</a> + [% END %] </div> <div> <span class="attach-time">[% INCLUDE bug_modal/rel_time.html.tmpl ts=attachment.attached %]</span> |