summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorKohei Yoshino <kohei.yoshino@gmail.com>2017-12-01 04:42:14 +0100
committerDylan William Hardison <dylan@hardison.net>2017-12-01 04:42:14 +0100
commitaa3f0331fb7e0b97201afb806b777a03c9f2fca2 (patch)
tree02860760c859419a98fe8f0f0ba858e2c9cb6fe0 /template/en/default/bug
parent3d10b811d625ac42e631e17f63c7376983731307 (diff)
downloadbugzilla-aa3f0331fb7e0b97201afb806b777a03c9f2fca2.tar.gz
bugzilla-aa3f0331fb7e0b97201afb806b777a03c9f2fca2.tar.xz
Bug 1420300 - Move bug tagging tool from global footer to bug footer
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/navigate.html.tmpl2
-rw-r--r--template/en/default/bug/tagging.html.tmpl52
2 files changed, 54 insertions, 0 deletions
diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl
index f0c924160..027e3fcf9 100644
--- a/template/en/default/bug/navigate.html.tmpl
+++ b/template/en/default/bug/navigate.html.tmpl
@@ -41,6 +41,8 @@
[% Hook.process("links") %]
<li>&nbsp;-&nbsp;<a href="#">Top of page </a></li>
</ul>
+ [% PROCESS "bug/tagging.html.tmpl" %]
+ <hr>
[% END %]
[% SET my_search = user.recent_search_for(bug) %]
diff --git a/template/en/default/bug/tagging.html.tmpl b/template/en/default/bug/tagging.html.tmpl
new file mode 100644
index 000000000..88c113051
--- /dev/null
+++ b/template/en/default/bug/tagging.html.tmpl
@@ -0,0 +1,52 @@
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the Bugzilla Bug Tracking System.
+ #
+ # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
+ #%]
+
+[% IF user.id && user.settings.per_bug_queries.value == "on" %]
+ <form id="list_of_bugs" action="buglist.cgi" method="get">
+ <input type="hidden" name="cmdtype" value="doit">
+ <input type="hidden" name="remtype" value="asnamed">
+ <input type="hidden" name="list_of_bugs" value="1">
+ <input type="hidden" name="bug_ids" value="[% bug.id FILTER none %]">
+ <input type="hidden" name="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]">
+ <select id="lob_action" name="action" >
+ <option value="add">Add</option>
+ [% IF user.tags.size %]
+ <option value="remove">Remove</option>
+ [% END %]
+ </select>
+
+ [% IF Param('docs_urlbase') %]
+ <a href="[% docs_urlbase FILTER html %]using/finding.html#individual-bug-lists">the named tag</a>
+ [% ELSE %]
+ the named tag
+ [% END %]
+
+ [% IF user.tags.size %]
+ <select id="lob_oldqueryname" name="oldqueryname">
+ [% FOREACH tag = user.tags.keys %]
+ <option value="[% tag FILTER html %]">[% tag FILTER html %]</option>
+ [% END %]
+ </select>
+ [% END %]
+ <span id="lob_new_query_text">
+ [% " or create and add the tag" IF user.tags.size %]
+ <input class="txt" type="text" id="lob_newqueryname"
+ size="20" maxlength="64" name="newqueryname">
+ </span>
+ <span id="lob_direction">to</span>
+ this [% terms.bug %]
+ <input type="submit" value="Save Tag" id="commit_list_of_bugs">
+ </form>
+[% END %]