summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template/en/default/bug_modal/module.html.tmpl
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-13 09:38:59 +0200
committerByron Jones <glob@mozilla.com>2015-07-13 09:38:59 +0200
commit377acf2d61b8618f7b1e85f2a81c367b33d83a78 (patch)
treea25ee3b91de42d90aa8814b0972d1a78acc22851 /extensions/BugModal/template/en/default/bug_modal/module.html.tmpl
parente8551401528989667d87b4f7df9c3f97f5535cf7 (diff)
downloadbugzilla-377acf2d61b8618f7b1e85f2a81c367b33d83a78.tar.gz
bugzilla-377acf2d61b8618f7b1e85f2a81c367b33d83a78.tar.xz
Bug 1180880: Make the "URL" field in the new UI more prominent
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/module.html.tmpl')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/module.html.tmpl19
1 files changed, 16 insertions, 3 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/module.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/module.html.tmpl
index 838069a58..a36747f97 100644
--- a/extensions/BugModal/template/en/default/bug_modal/module.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/module.html.tmpl
@@ -9,7 +9,11 @@
[%#
# title: (string, optional) main title of module
# collapse: (boolean) if true, show as collapsed by default (default false)
- # subtitle: (string, optional) sub-title
+ # subtitle: (optional) any of:
+ # a string
+ # an array of: (will be joined with ", ")
+ # string (will be filtered)
+ # { unfiltered: html } (will not be filtered)
# content: (string, required) module's content (use WRAPPER module..)
# hide_on_view: (boolean) if true, the module won't be visible in view mode
# hide_on_edit: (boolean) if true, the module won't be visible in edit mode
@@ -26,8 +30,17 @@
<div class="module-latch">
<div class="module-spinner">[% collapsed ? "&#9656;" : "&#9662;" %]</div>
<div class="module-title">[% title FILTER html %]</div>
- [% IF subtitle %]
- <div class="module-subtitle">([% subtitle FILTER html %])</div>
+ [% IF subtitle != "" && subtitle.size %]
+ <div class="module-subtitle">
+ ([% FOREACH st IN subtitle.list %]
+ [% IF st.unfiltered.defined %]
+ [% st.unfiltered FILTER none %]
+ [% ELSE %]
+ [% st FILTER html %]
+ [% END %]
+ [% ", " UNLESS loop.last %]
+ [% END %])
+ </div>
[% END %]
</div>
</div>