diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-01-30 13:07:59 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-01-30 13:07:59 +0100 |
commit | 8fa9965e5476717e574f2674c6df8c4487874634 (patch) | |
tree | 91c01615dbb0b6d2b576c2311f578a0ae7c44b29 /template/en/default/global/per-bug-queries.html.tmpl | |
parent | 95bfc797b43bd7f1d8f45ea629aa6119b51e8a29 (diff) | |
download | bugs-8fa9965e5476717e574f2674c6df8c4487874634.tar bugs-8fa9965e5476717e574f2674c6df8c4487874634.tar.gz bugs-8fa9965e5476717e574f2674c6df8c4487874634.tar.bz2 bugs-8fa9965e5476717e574f2674c6df8c4487874634.tar.xz bugs-8fa9965e5476717e574f2674c6df8c4487874634.zip |
Bug 616185: Move tags (aka lists of bugs) to their own DB tables
r/a=mkanat
Diffstat (limited to 'template/en/default/global/per-bug-queries.html.tmpl')
-rw-r--r-- | template/en/default/global/per-bug-queries.html.tmpl | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/template/en/default/global/per-bug-queries.html.tmpl b/template/en/default/global/per-bug-queries.html.tmpl index a7c073ba1..90418981f 100644 --- a/template/en/default/global/per-bug-queries.html.tmpl +++ b/template/en/default/global/per-bug-queries.html.tmpl @@ -51,12 +51,6 @@ //--> </script> - [%# Get existing lists of bugs for this user %] - [% lists_of_bugs = [] %] - [% FOREACH q = user.queries %] - [% NEXT UNLESS q.type == constants.LIST_OF_BUGS %] - [% lists_of_bugs.push(q.name) %] - [% END %] <div class="label"></div> <ul class="links"><li class="form"> <form id="list_of_bugs" action="buglist.cgi" method="get"> @@ -66,7 +60,7 @@ <input type="hidden" name="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]"> <select id="lob_action" name="action" onchange="update_text();"> <option value="add">Add</option> - [% IF lists_of_bugs.size %] + [% IF user.tags.size %] <option value="remove">Remove</option> [% END %] </select> @@ -77,15 +71,15 @@ the named tag [% END %] - [% IF lists_of_bugs.size %] + [% IF user.tags.size %] <select id="lob_oldqueryname" name="oldqueryname"> - [% FOREACH query = lists_of_bugs %] - <option value="[% query FILTER html %]">[% query FILTER html %]</option> + [% 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 lists_of_bugs.size %] + [% " or create and add the tag" IF user.tags.size %] <input class="txt" type="text" id="lob_newqueryname" size="20" maxlength="64" name="newqueryname" onkeyup="manage_old_lists();"> |