diff options
author | Byron Jones <glob@mozilla.com> | 2015-03-24 06:45:44 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-03-24 06:45:44 +0100 |
commit | 3ac701266452d3509776fe58f9e1b2b8e9f33c1e (patch) | |
tree | 88124baaadb529b1c9809f6b3fa20384c1870780 /extensions/BugModal/template/en/default/bug_modal/module.html.tmpl | |
parent | 11bd061970f8b9c98e6af43a4c8c7ca4bfff9eb3 (diff) | |
download | bugzilla-3ac701266452d3509776fe58f9e1b2b8e9f33c1e.tar.gz bugzilla-3ac701266452d3509776fe58f9e1b2b8e9f33c1e.tar.xz |
Bug 1096798: prototype modal show_bug view
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.tmpl | 38 |
1 files changed, 38 insertions, 0 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 new file mode 100644 index 000000000..838069a58 --- /dev/null +++ b/extensions/BugModal/template/en/default/bug_modal/module.html.tmpl @@ -0,0 +1,38 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[%# + # title: (string, optional) main title of module + # collapse: (boolean) if true, show as collapsed by default (default false) + # subtitle: (string, optional) sub-title + # 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 + #%] + +<div class="module + [%~ " edit-hide" IF hide_on_edit %] + [%~ " edit-show" IF hide_on_view && !hide_on_edit %]" + [% IF hide_on_view +%] style="display:none"[% END %] + [% IF title %] id="module-[% title.replace FILTER id %]"[% END %] +> + [% IF title %] + <div class="module-header"> + <div class="module-latch"> + <div class="module-spinner">[% collapsed ? "▸" : "▾" %]</div> + <div class="module-title">[% title FILTER html %]</div> + [% IF subtitle %] + <div class="module-subtitle">([% subtitle FILTER html %])</div> + [% END %] + </div> + </div> + [% END %] + <div class="module-content" [% ' style="display:none"' IF collapsed %] > + [% content FILTER none %] + </div> +</div> |