From ae43a6a2e60c07a474debe60c4a1f08753d42b35 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 1 Apr 2015 11:09:11 +0800 Subject: Bug 1146777: use lightbox for images --- .../template/en/default/bug_modal/activity_stream.html.tmpl | 9 ++++++++- .../template/en/default/bug_modal/attachments.html.tmpl | 13 +++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'extensions/BugModal/template/en') diff --git a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl index 08849ef17..2e7b3c87b 100644 --- a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl @@ -164,7 +164,14 @@ [% BLOCK comment_body %] + >[% FILTER collapse %] + [% IF comment.is_about_attachment && comment.attachment.is_image ~%] + + [% END %] + [% END %] + [%~ comment.body_full FILTER quoteUrls(bug, comment) ~%] [% END %] [% 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 %]>
- - [%~ attachment.description FILTER html %] + [% IF attachment.is_image %] + + + [%~ attachment.description FILTER html %] + + [% ELSE %] + + [%~ attachment.description FILTER html %] + [% END %]
[% INCLUDE bug_modal/rel_time.html.tmpl ts=attachment.attached %] -- cgit v1.2.3-24-g4f1b