diff options
author | mkanat%bugzilla.org <> | 2006-07-01 23:45:53 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-01 23:45:53 +0000 |
commit | f301c9241af577f8f3df94338f1329d91c82d252 (patch) | |
tree | aff46880248e76011b2a3d6afa793be7117e9154 /template | |
parent | 0fd94fa00dc3429814a97c106f2ff0a0550e6ac0 (diff) | |
download | bugs-f301c9241af577f8f3df94338f1329d91c82d252.tar bugs-f301c9241af577f8f3df94338f1329d91c82d252.tar.gz bugs-f301c9241af577f8f3df94338f1329d91c82d252.tar.bz2 bugs-f301c9241af577f8f3df94338f1329d91c82d252.tar.xz bugs-f301c9241af577f8f3df94338f1329d91c82d252.zip |
Bug 343248: SQL query to get all keywords with bug count is duplicated in editkeywords.cgi and describekeywords.cgi
Patch By Remi Zara <remi_zara@mac.com> r=mkanat, a=justdave
Diffstat (limited to 'template')
-rwxr-xr-x | template/en/default/admin/keywords/list.html.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/filterexceptions.pl | 2 | ||||
-rw-r--r-- | template/en/default/reports/keywords.html.tmpl | 11 |
3 files changed, 8 insertions, 7 deletions
diff --git a/template/en/default/admin/keywords/list.html.tmpl b/template/en/default/admin/keywords/list.html.tmpl index 84eb6e9f1..999538561 100755 --- a/template/en/default/admin/keywords/list.html.tmpl +++ b/template/en/default/admin/keywords/list.html.tmpl @@ -22,7 +22,7 @@ #%] [%# INTERFACE: - # keywords: array of hashes having the properties: + # keywords: array keyword objects having the properties: # - id: number. The ID of the keyword. # - name: string. The name of the keyword. # - description: string. The description of the keyword. diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 19f040c52..eee3b8963 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -114,7 +114,7 @@ 'reports/keywords.html.tmpl' => [ 'keyword.description', - 'keyword.bugcount', + 'keyword.bug_count', ], 'reports/report-table.csv.tmpl' => [ diff --git a/template/en/default/reports/keywords.html.tmpl b/template/en/default/reports/keywords.html.tmpl index c4aee3cae..979c50163 100644 --- a/template/en/default/reports/keywords.html.tmpl +++ b/template/en/default/reports/keywords.html.tmpl @@ -21,10 +21,11 @@ #%] [%# INTERFACE: - # keywords: array of hashes. May be empty. Each has has three members: + # keywords: array keyword objects. May be empty. Each has has four members: + # id: id of the keyword # name: the name of the keyword # description: keyword description. May be HTML. - # bugcount: number of bugs with that keyword + # bug_count: number of bugs with that keyword # caneditkeywords: boolean. True if this user can edit keywords %] @@ -56,7 +57,7 @@ </th> <td>[% keyword.description %]</td> <td align="center"> - [% IF keyword.bugcount > 0 %] + [% IF keyword.bug_count > 0 %] <a href="buglist.cgi?keywords=[% keyword.name FILTER url_quote %]&resolution=---"> Search</a> [% ELSE %] @@ -64,9 +65,9 @@ [% END %] </td> <td align="right"> - [% IF keyword.bugcount > 0 %] + [% IF keyword.bug_count > 0 %] <a href="buglist.cgi?keywords=[% keyword.name FILTER url_quote %]"> - [% keyword.bugcount %]</a> + [% keyword.bug_count %]</a> [% ELSE %] none [% END %] |