diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 11 | ||||
-rw-r--r-- | template/en/default/bug/field-help.none.tmpl | 7 | ||||
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 16 | ||||
-rw-r--r-- | template/en/default/filterexceptions.pl | 4 | ||||
-rw-r--r-- | template/en/default/global/field-descs.none.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/global/messages.html.tmpl | 12 | ||||
-rw-r--r-- | template/en/default/global/per-bug-queries.html.tmpl | 88 | ||||
-rw-r--r-- | template/en/default/global/setting-descs.none.tmpl | 1 | ||||
-rw-r--r-- | template/en/default/global/useful-links.html.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/search/field.html.tmpl | 16 | ||||
-rw-r--r-- | template/en/default/search/form.html.tmpl | 1 |
11 files changed, 37 insertions, 123 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index d7c564fdb..d8803e677 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -523,11 +523,20 @@ [% INCLUDE bug/field.html.tmpl bug = bug, field = bug_fields.keywords, value = bug.keywords editable = bug.check_can_change_field("keywords", 0, 1), - no_tds = 1 + no_tds = 1, possible_values = all_keywords %] </td> </tr> [% END %] + + [% IF user.id %] + <tr> + [% INCLUDE bug/field.html.tmpl + bug = bug, field = bug_fields.tag, value = bug.tags.join(", "), + editable = 1, possible_values = user.tags.keys + %] + </tr> + [% END %] [% END %] [%############################################################################%] diff --git a/template/en/default/bug/field-help.none.tmpl b/template/en/default/bug/field-help.none.tmpl index a74de2e32..f76fa9639 100644 --- a/template/en/default/bug/field-help.none.tmpl +++ b/template/en/default/bug/field-help.none.tmpl @@ -137,6 +137,13 @@ status_whiteboard => "Each $terms.bug has a free-form single line text entry box for" _ " adding tags and status information.", +tag => + "Unlike ${vars.field_descs.keywords} which are global and visible by + all users, ${vars.field_descs.tag} are personal and can only be + viewed and edited by their author. + Editing them won't send any notification to other users. Use them + to tag and keep track of ${terms.bugs}.", + target_milestone => "The $vars.field_descs.target_milestone field is used to define when the" _ " engineer the $terms.bug is assigned to expects to fix it.", diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 0cc75c288..e6660256f 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -171,19 +171,21 @@ </script> [% END %] [% CASE constants.FIELD_TYPE_KEYWORDS %] - <div id="keyword_container"> + <div id="[% field.name FILTER html %]_container"> <input type="text" id="[% field.name FILTER html %]" size="40" class="text_input" name="[% field.name FILTER html %]" value="[% value FILTER html %]"> - <div id="keyword_autocomplete"></div> + <div id="[% field.name FILTER html %]_autocomplete"></div> </div> <script type="text/javascript" defer="defer"> - YAHOO.bugzilla.keyword_array = [ - [%- FOREACH keyword = all_keywords %] - [%-# %]"[% keyword.name FILTER js %]" + if (typeof YAHOO.bugzilla.field_array === "undefined") + YAHOO.bugzilla.field_array = []; + YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [ + [%- FOREACH val = possible_values %] + [%-# %]"[% val FILTER js %]" [%- "," IF NOT loop.last %][% END %]]; - YAHOO.bugzilla.keywordAutocomplete.init('[% field.name FILTER js %]', - 'keyword_autocomplete'); + YAHOO.bugzilla.fieldAutocomplete.init('[% field.name FILTER js %]', + '[% field.name FILTER js %]_autocomplete'); </script> [% END %] [% ELSE %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 31a686a00..e3cfec8a2 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -177,10 +177,6 @@ 'series.frequency * 2', ], -'global/per-bug-queries.html.tmpl' => [ - '" value=\"$bugids\"" IF bugids', -], - 'global/select-menu.html.tmpl' => [ 'options', 'size', diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index 27926c802..5f956c714 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -118,7 +118,7 @@ "settings" => "Settings", "short_desc" => "Summary", "status_whiteboard" => "Whiteboard", - "tag.name" => "Tags", + "tag" => "Tags", "target_milestone" => "Target Milestone", "version" => "Version", "work_time" => "Hours Worked", diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index dcaf4b81a..fe5029ebc 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -849,18 +849,6 @@ The cookie that was remembering your login is now gone. [% END %] - [% ELSIF message_tag == "tag_updated" %] - [% title = "Tag Updated" %] - The '<a href="buglist.cgi?tag=[% tag FILTER uri %]">[% tag FILTER html %]</a>' - tag has been - [% IF action == "add" %] - added to - [% ELSE %] - removed from - [% END %] - [%+ buglist.size > 1 ? terms.bugs : terms.bug %] - [%+ buglist.join(", ") FILTER html %]. - [% ELSIF message_tag == "term" %] [% terms.$term FILTER html %] diff --git a/template/en/default/global/per-bug-queries.html.tmpl b/template/en/default/global/per-bug-queries.html.tmpl deleted file mode 100644 index 766c71332..000000000 --- a/template/en/default/global/per-bug-queries.html.tmpl +++ /dev/null @@ -1,88 +0,0 @@ -[%# 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. - #%] - -[% IF user.id && user.settings.per_bug_queries.value == "on" %] - <li id="links-special"> - <script type="text/javascript"> - <!-- - function update_text() { - // 'lob' means list_of_bugs. - var lob_action = document.getElementById('lob_action'); - var action = lob_action.options[lob_action.selectedIndex].value; - var text = document.getElementById('lob_direction'); - var new_query_text = document.getElementById('lob_new_query_text'); - - if (action == "add") { - text.innerHTML = "to"; - new_query_text.style.display = 'inline'; - } - else { - text.innerHTML = "from"; - new_query_text.style.display = 'none'; - } - } - - function manage_old_lists() { - var old_lists = document.getElementById('lob_oldqueryname'); - // If there is no saved searches available, returns. - if (!old_lists) return; - - var new_query = document.getElementById('lob_newqueryname').value; - - if (new_query != "") { - old_lists.disabled = true; - } - else { - old_lists.disabled = false; - } - } - //--> - </script> - - <div class="label"></div> - <ul class="links"><li class="form"> - <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="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]"> - <select id="lob_action" name="action" onchange="update_text();"> - <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 %]query.html#individual-buglists">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" - onkeyup="manage_old_lists();"> - </span> - <span id="lob_direction">to</span> - [%+ terms.bugs %] - <input type="text" name="bug_ids" size="12" maxlength="80" - [%- " value=\"$bugids\"" IF bugids %]> - <input type="submit" value="Commit" id="commit_list_of_bugs"> - </form> - </li></ul> - </li> -[% END %] diff --git a/template/en/default/global/setting-descs.none.tmpl b/template/en/default/global/setting-descs.none.tmpl index 28ecad755..f2dd43de5 100644 --- a/template/en/default/global/setting-descs.none.tmpl +++ b/template/en/default/global/setting-descs.none.tmpl @@ -18,7 +18,6 @@ "off" => "Off", "oldest_to_newest" => "Oldest to Newest", "on" => "On", - "per_bug_queries" => "Enable tags for $terms.bugs", "post_bug_submit_action" => "After changing $terms.abug", "next_bug" => "Show next $terms.bug in my list", "same_bug" => "Show the updated $terms.bug", diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index ea14be8fe..1b5ba9a30 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -58,8 +58,6 @@ [%# Individual bugs addition %] - [% PROCESS "global/per-bug-queries.html.tmpl" %] - [%# Sections of links to more things users can do on this installation. %] [% Hook.process("end") %] </ul> diff --git a/template/en/default/search/field.html.tmpl b/template/en/default/search/field.html.tmpl index d3f71ae3f..dd5e1fac7 100644 --- a/template/en/default/search/field.html.tmpl +++ b/template/en/default/search/field.html.tmpl @@ -35,20 +35,22 @@ types = types, selected = type_selected %] - <div id="keyword_container"> + <div id="[% field.name FILTER html %]_container"> <input name="[% field.name FILTER html %]" id="[% field.name FILTER html %]" size="40" [% IF onchange %] onchange="[% onchange FILTER html %]"[% END %] value="[% value FILTER html %]"> - <div id="keyword_autocomplete"></div> + <div id="[% field.name FILTER html %]_autocomplete"></div> </div> <script type="text/javascript" defer="defer"> - YAHOO.bugzilla.keyword_array = [ - [%- FOREACH keyword = all_keywords %] - [%-# %]"[% keyword.name FILTER js %]" + if (typeof YAHOO.bugzilla.field_array === "undefined") + YAHOO.bugzilla.field_array = []; + YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [ + [%- FOREACH val = possible_values %] + [%-# %]"[% val FILTER js %]" [%- "," IF NOT loop.last %][% END %]]; - YAHOO.bugzilla.keywordAutocomplete.init('[% field.name FILTER js %]', - 'keyword_autocomplete'); + YAHOO.bugzilla.fieldAutocomplete.init('[% field.name FILTER js %]', + '[% field.name FILTER js %]_autocomplete'); </script> [% CASE constants.FIELD_TYPE_DATETIME %] [% INCLUDE "bug/field-label.html.tmpl" diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 4b7ac4b07..fc6f597cf 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -142,6 +142,7 @@ TUI_hide_default('information_query'); %] <div class="search_field_row"> [% type = field_container.field.name _ "_type" %] + [% possible_values = field_container.field.name == 'keywords' ? all_keywords : [] %] [% INCLUDE "search/field.html.tmpl" field => field_container.field types => field_container.qtypes || query_types |