]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 512623: Change get_status and get_resolution to display_value everywhere.
authormkanat%bugzilla.org <>
Wed, 30 Sep 2009 22:34:31 +0000 (22:34 +0000)
committermkanat%bugzilla.org <>
Wed, 30 Sep 2009 22:34:31 +0000 (22:34 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

27 files changed:
template/en/default/admin/products/edit-common.html.tmpl
template/en/default/admin/workflow/edit.html.tmpl
template/en/default/attachment/create.html.tmpl
template/en/default/bug/activity/table.html.tmpl
template/en/default/bug/create/create.html.tmpl
template/en/default/bug/dependency-tree.html.tmpl
template/en/default/bug/edit.html.tmpl
template/en/default/bug/format_comment.txt.tmpl [changed mode: 0755->0644]
template/en/default/bug/knob.html.tmpl
template/en/default/bug/show-multiple.html.tmpl
template/en/default/bug/summarize-time.html.tmpl
template/en/default/email/whine.txt.tmpl
template/en/default/global/code-error.html.tmpl
template/en/default/global/messages.html.tmpl
template/en/default/list/edit-multiple.html.tmpl
template/en/default/list/list.csv.tmpl
template/en/default/list/list.html.tmpl
template/en/default/list/table.html.tmpl
template/en/default/pages/fields.html.tmpl
template/en/default/reports/report-bar.png.tmpl
template/en/default/reports/report-line.png.tmpl
template/en/default/reports/report-pie.png.tmpl
template/en/default/reports/report-table.csv.tmpl
template/en/default/reports/report-table.html.tmpl
template/en/default/search/form.html.tmpl
template/en/default/whine/mail.html.tmpl
template/en/default/whine/mail.txt.tmpl

index 8b42592cb4bd6bfeabd522c4572352ebb22e02bb..e7bcbbb7aa801882fcb842ac3d3ac31f50b78703 100644 (file)
   <td>
     Enter the number of votes [% terms.abug %] in this product needs to
     automatically get out of the
-    <a href="page.cgi?id=fields.html#status">[% get_status("UNCONFIRMED") FILTER html %]</a>
+    <a href="page.cgi?id=fields.html#status">[% display_value("bug_status", "UNCONFIRMED") FILTER html %]</a>
     state.<br>
     <input size="5" maxlength="5" name="votestoconfirm" 
            value="[% product.votestoconfirm FILTER html %]">
index 1328ce00515f17bdc59020d5ca39f6c608cc74cf..787937989f13b5c5dde70803c6de6526e2d947c7 100644 (file)
@@ -35,8 +35,8 @@
 <p>
   This page allows you to define which status transitions are valid in your workflow.
   For compatibility with older versions of [% terms.Bugzilla %], reopening [% terms.abug %]
-  will only display either [% get_status("UNCONFIRMED") FILTER html %] or
-  [%+ get_status("REOPENED") FILTER html %] (if allowed by your workflow) but not
+  will only display either [% display_value("bug_status", "UNCONFIRMED") FILTER html %] or
+  [%+ display_value("bug_status", "REOPENED") FILTER html %] (if allowed by your workflow) but not
   both. The decision depends on whether the [% terms.bug %] has ever been confirmed or not.
   So it is a good idea to allow both transitions and let [% terms.Bugzilla %] select the
   correct one.
index 0b965bc4ef7e8b0d7ad74cd0f7f1c0d92cb7e32c..72844a36e3fd57f9666622233b1a3b06b32a65f2 100644 (file)
           [% IF bug_statuses.size %]
             <label for="takebug">and set the [% terms.bug %] status to</label>
             <select id="bug_status" name="bug_status">
-              <option value="[% bug.status.name FILTER html %]">[% get_status(bug.status.name) FILTER html %] (current)</option>
+              <option value="[% bug.status.name FILTER html %]">[% display_value("bug_status", bug.status.name) FILTER html %] (current)</option>
               [% FOREACH bug_status = bug_statuses %]
                 [% NEXT IF bug_status.id == bug.status.id %]
-                <option value="[% bug_status.name FILTER html %]">[% get_status(bug_status.name) FILTER html %]</option>
+                <option value="[% bug_status.name FILTER html %]">[% display_value("bug_status", bug_status.name) FILTER html %]</option>
               [% END %]
             </select>
           [% END %]
index 8e44230ae117d934331178d513addc5a4bd6662c..55f7f6e456092ef7a452e0f7f3acfd66d5a4ff07 100644 (file)
@@ -82,9 +82,9 @@
                       change.fieldname == 'work_time' %]
                   [% PROCESS formattimeunit time_unit=change.removed %]
                 [% ELSIF change.fieldname == 'bug_status' %]
-                  [% get_status(change.removed) FILTER html %]
+                  [% display_value("bug_status", change.removed) FILTER html %]
                 [% ELSIF change.fieldname == 'resolution' %]
-                  [% get_resolution(change.removed) FILTER html %]
+                  [% display_value("resolution", change.removed) FILTER html %]
                 [% ELSIF change.fieldname == 'blocked' ||
                          change.fieldname == 'dependson' %]
                   [% change.removed FILTER bug_list_link FILTER none %]
                       change.fieldname == 'work_time' %]
                   [% PROCESS formattimeunit time_unit=change.added %]
                 [% ELSIF change.fieldname == 'bug_status' %]
-                  [% get_status(change.added) FILTER html %]
+                  [% display_value("bug_status", change.added) FILTER html %]
                 [% ELSIF change.fieldname == 'resolution' %]
-                  [% get_resolution(change.added) FILTER html %]
+                  [% display_value("resolution", change.added) FILTER html %]
                 [% ELSIF change.fieldname == 'blocked' ||
                          change.fieldname == 'dependson' %]
                   [% change.added FILTER bug_list_link FILTER none %]
index dab451ed7c7769127b7016e80a05125370bf38f2..1d31605636846b55a9f897a761ebee226e8abfb9 100644 (file)
@@ -336,7 +336,7 @@ TUI_hide_default('expert_fields');
   <input type="hidden" name="bug_status" 
          value="[% default.bug_status FILTER html %]">
     <th>Initial State:</th>
-    <td>[% get_status(default.bug_status) FILTER html %]</td>
+    <td>[% display_value("bug_status", default.bug_status) FILTER html %]</td>
 [% ELSE %]
     [% sel = { description => 'Initial State', name => 'bug_status' } %]
     [% INCLUDE select %]
@@ -665,7 +665,7 @@ TUI_hide_default('expert_fields');
       <option value="[% x FILTER html %]"
         [% " selected=\"selected\"" IF x == default.${sel.name} %]>
         [% IF sel.name == "bug_status" %]
-          [% get_status(x) FILTER html %]
+          [% display_value("bug_status", x) FILTER html %]
         [% ELSE %]
           [% x FILTER html %]
         [% END %]</option>
index 347478bfcf96d58e83eea6d5b68580e5fcf7164b..c42c3c4d126329a61e2587e50b4f20a0bc66ab89 100644 (file)
 [% END %]
 
 [% BLOCK buginfo %]
-  [% get_status(bug.bug_status) FILTER html -%] [%+ get_resolution(bug.resolution) FILTER html %];
+  [% display_value("bug_status", bug.bug_status) FILTER html -%] [%+ display_value("resolution", bug.resolution) FILTER html %];
   [%-%] assigned to [% bug.assigned_to.login FILTER email FILTER html %]
   [%-%][% "; Target: " _ bug.target_milestone IF bug.target_milestone %]
 [% END %]
index 7653064389e3b315bdfb05659af7a0bf16916519..e050ee64c24541245a7c423deb59fd38239c604b 100644 (file)
     </td>
     <td id="bz_field_status">
       <span id="static_bug_status">
-        [% get_status(bug.bug_status) FILTER html %]
+        [% display_value("bug_status", bug.bug_status) FILTER html %]
         [% IF bug.resolution %]
-          [%+ get_resolution(bug.resolution) FILTER html %]
+          [%+ display_value("resolution", bug.resolution) FILTER html %]
           [% IF bug.dup_id %]
             of [% "${terms.bug} ${bug.dup_id}" FILTER bug_link(bug.dup_id) FILTER none %]
           [% END %]
old mode 100755 (executable)
new mode 100644 (file)
index 6da39e6..e399d82
@@ -54,7 +54,7 @@
 If the move succeeded, [% comment.extra_data %] will receive a mail containing
 the number of the new [% terms.bug %] in the other database.
 If all went well, please mark this [% terms.bug %]
-[%+ get_status('VERIFIED') %], and paste in a link to the new [% terms.bug %].
+[%+ display_value("bug_status", 'VERIFIED') %], and paste in a link to the new [% terms.bug %].
 Otherwise, reopen this [% terms.bug %].
 [%- ELSE -%]
 [%- wrapped_comment %]
index a8a3a9df882aeebe56ea1e2246c21d107e75f057..cd586fcebbfbdfbd068ac57982ad1d6cc3c01579 100644 (file)
@@ -44,7 +44,7 @@
     [% PROCESS initial_action %]
     [% NEXT IF bug_status.name == bug.bug_status %]
     <option value="[% bug_status.name FILTER html %]">
-      [% get_status(bug_status.name) FILTER html %]
+      [% display_value("bug_status", bug_status.name) FILTER html %]
     </option>
     [% IF  !bug_status.is_open  %]
       [% show_resolution = 1 %]
@@ -71,9 +71,9 @@
   [% IF bug_status_select_displayed %]
     </select>
   [% ELSE %]
-      [% get_status(bug.bug_status) FILTER html %]
+      [% display_value("bug_status", bug.bug_status) FILTER html %]
       [% IF bug.resolution %]
-        [%+ get_resolution(bug.resolution) FILTER html %]
+        [%+ display_value("resolution", bug.resolution) FILTER html %]
         [% IF bug.dup_id %]
           <span id="duplicate_display">of 
           [% "${terms.bug} ${bug.dup_id}" FILTER bug_link(bug.dup_id) FILTER none %]</span>
 [% BLOCK initial_action %]
   [% IF !initial_action_shown %]
     <option selected value="[% bug.bug_status FILTER html %]">
-      [% get_status(bug.bug_status) FILTER html %]
+      [% display_value("bug_status", bug.bug_status) FILTER html %]
     </option>
     [% IF !bug.isopened  %] 
       [% show_resolution = 1 %]
       [% NEXT IF r == "MOVED" && bug.resolution != "MOVED" %]
       <option value="[% r FILTER html %]"
       [% "selected" IF r == bug.resolution %]>
-        [% get_resolution(r) FILTER html %]</option>
+        [% display_value("resolution", r) FILTER html %]</option>
     [% END %]
   </select>
 [% END %]
index f1a5cc466014134b20e8c1e5c6c325f200c25e98..473453eb56bbb0dfcd642bdd75892a2e1120b41d 100644 (file)
     <tr>
       <th>[% field_descs.bug_status  FILTER html %]:</th>
       <td>
-        [% get_status(bug.bug_status) FILTER html %]
-        [%+ get_resolution(bug.resolution) FILTER html %]
+        [% display_value("bug_status", bug.bug_status) FILTER html %]
+        [%+ display_value("resolution", bug.resolution) FILTER html %]
       </td>
 
       [% PROCESS rightcell %]
index e07452ed1254c182718e57048edb928f82979569..eb5ba7a7718304f1401b85aa45f0ba637e0d7358 100644 (file)
         <td width="80" valign="top">
           <b>[% "$terms.Bug $id" FILTER bug_link(id) FILTER none %]</b>
         </td>
-        <td width="100"><b>[% get_status(bugs.$id.bug_status) FILTER html %]</b></td>
+        <td width="100"><b>[% display_value("bug_status", bugs.$id.bug_status) FILTER html %]</b></td>
         <td colspan="2">[% bugs.$id.short_desc FILTER html %]</td>
         [% IF extra %]
           <td align="right" valign="top">[% bugdata.total_time FILTER html %]</td>
index caf43eb6d14c25e98dd17484c2dc0d2fd7003fc4..a97887eded44170956d9ba50e7c61f82d55692d5 100644 (file)
@@ -30,14 +30,14 @@ You have one or more [% terms.bugs %] assigned to you in the [% terms.Bugzilla %
 [% terms.bug %] tracking system ([% urlbase %]) that require
 attention.
 
-All of these [% terms.bugs %] are in the [% get_status("NEW") %] or
-[% get_status("REOPENED") %] state, and have not been
+All of these [% terms.bugs %] are in the [% display_value("bug_status", "NEW") %] or
+[% display_value("bug_status", "REOPENED") %] state, and have not been
 touched in [% Param("whinedays") %] days or more.
 You need to take a look at them, and decide on an initial action.
 
 Generally, this means one of three things:
 
-(1) You decide this [% terms.bug %] is really quick to deal with (like, it's [% get_resolution("INVALID") %]),
+(1) You decide this [% terms.bug %] is really quick to deal with (like, it's [% display_value("resolution", "INVALID") %]),
     and so you get rid of it immediately.
 (2) You decide the [% terms.bug %] doesn't belong to you, and you reassign it to
     someone else. (Hint: if you don't know who to reassign it to, make
@@ -46,7 +46,7 @@ Generally, this means one of three things:
 (3) You decide the [% terms.bug %] belongs to you, but you can't solve it this moment.
     Just use the "Accept [% terms.bug %]" command.
 
-To get a list of all [% get_status("NEW") %]/[% get_status("REOPENED") %] [%+ terms.bugs %], you can use this URL (bookmark
+To get a list of all [% display_value("bug_status", "NEW") %]/[% display_value("bug_status", "REOPENED") %] [%+ terms.bugs %], you can use this URL (bookmark
 it if you like!):
 
  [% urlbase %]buglist.cgi?bug_status=NEW&bug_status=REOPENED&assigned_to=[% email %]
@@ -54,7 +54,7 @@ it if you like!):
 Or, you can use the general query page, at 
 [%+ urlbase %]query.cgi
 
-Appended below are the individual URLs to get to all of your [% get_status("NEW") %] [%+ terms.bugs %]
+Appended below are the individual URLs to get to all of your [% display_value("bug_status", "NEW") %] [%+ terms.bugs %]
 that haven't been touched for [% Param("whinedays") %] days or more.
 
 You will get this message once a day until you've dealt with these [% terms.bugs %]!
index 4ba5e647a9a175f1ea8adeb416b12e09b0c24b4e..d75ca4432b9522eee5bfad5a719d1ae289d94435 100644 (file)
   [% ELSIF error == "no_open_bug_status" %]
     [% title = "$terms.Bug Cannot Be Confirmed" %]
     There is no valid transition from
-    [%+ get_status("UNCONFIRMED") FILTER html %] to an open state.
+    [%+ display_value("bug_status", "UNCONFIRMED") FILTER html %] to an open state.
 
   [% ELSIF error == "param_invalid" %]
     [% title = "Invalid Parameter" %]
index dd3967dc120e83819d1c999a0a2af67d1e51552a..766e39113831332dac3fd374dcb5bf8683b86ad7 100644 (file)
     [% field_descs.$field_name FILTER html %]
 
   [% ELSIF message_tag == "get_resolution" %]
-    [% get_resolution(resolution) FILTER html %]
+    [% display_value("resolution", resolution) FILTER html %]
 
   [% ELSIF message_tag == "get_status" %]
-    [% get_status(status) FILTER html %]
+    [% display_value("bug_status", status) FILTER html %]
 
   [% ELSIF message_tag == "group_created" %]
     [% title = "New Group Created" %]
index 4cbc8b6e2b3d0a94b7cbceca39e1fe11725261b9..fa8d3d1ae5b156edc207da5ea2adee19c958f9c4 100644 (file)
   
     [% FOREACH bug_status = new_bug_statuses %]
       <option value="[% bug_status.name FILTER html %]">
-        [% get_status(bug_status.name) FILTER html %]
+        [% display_value("bug_status", bug_status.name) FILTER html %]
       </option>
       [% IF !bug_status.is_open %]
         [% filtered_status =  bug_status.name FILTER js %]
     [% FOREACH r = resolutions %]
       [% NEXT IF !r %]
       [% NEXT IF r == "DUPLICATE" || r == "MOVED" %]
-      <option value="[% r FILTER html %]">[% get_resolution(r) FILTER html %]</option>
+      <option value="[% r FILTER html %]">[% display_value("resolution", r) FILTER html %]</option>
     [% END %]
   </select>
   </span>
index 1a25b39079418d3a8c7531815d6102c92dd02054..6114d6fae72b004fa68d728d7f32997793fdbb6c 100644 (file)
@@ -36,9 +36,9 @@ bug_id
         [% rawcolumn = column.replace("date", "time") %]
         [% bug.$column = bug.$rawcolumn FILTER time("%Y-%m-%d %H:%M:%S") %]
       [% ELSIF column == 'bug_status' %]
-        [% bug.$column = get_status(bug.$column) %]
+        [% bug.$column = display_value("bug_status", bug.$column) %]
       [% ELSIF column == 'resolution' %]
-        [%- bug.$column = get_resolution(bug.$column) %]
+        [%- bug.$column = display_value("resolution", bug.$column) %]
       [% END %]
       [% bug.$column FILTER csv %]
     [% END %]
index c723e3f9558dd78b023d6375c463ef714f723194..7c372f1f4c1575225eb331b77ff3dc3dc64be3bf 100644 (file)
     [% END %]
     [% IF desc_item.field == 'bug_status' %]
       [% FOREACH status IN desc_item.value.split(',') %]
-        [%+ get_status(status) FILTER html %][% ',' UNLESS loop.last %]
+        [%+ display_value("bug_status", status) FILTER html %][% ',' UNLESS loop.last %]
       [% END %]
     [% ELSIF desc_item.field == 'resolution' %]
       [% FOREACH resolution IN desc_item.value.split(',') %]
-        [%+ get_resolution(resolution) FILTER html %][% ',' UNLESS loop.last %]
+        [%+ display_value("resolution", resolution) FILTER html %][% ',' UNLESS loop.last %]
       [% END %]
     [% ELSE %]
       [%+ desc_item.value FILTER html %]
index 87833ff5b53096c06b144e49e3879e8c40090801..2305d2fa51e424081a2f4d645eb7630866e7ab91 100644 (file)
       [% IF abbrev.$column.maxlength %]
         <span title="
           [%- IF column == 'bug_status' %]
-            [%- get_status(bug.$column) FILTER html %]
+            [%- display_value("bug_status", bug.$column) FILTER html %]
           [% ELSIF column == 'resolution' %]
-            [%- get_resolution(bug.$column) FILTER html %]
+            [%- display_value("resolution", bug.$column) FILTER html %]
           [% ELSE %]
             [%- bug.$column FILTER html %]
           [% END %]">
                column == 'estimated_time' %]
         [% PROCESS formattimeunit time_unit=bug.$column %] 
       [% ELSIF column == 'bug_status' %]
-        [%- get_status(bug.$column).truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html %]
+        [%- display_value("bug_status", bug.$column).truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html %]
       [% ELSIF column == 'resolution' %]
-        [%- get_resolution(bug.$column).truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html %]
+        [%- display_value("resolution", bug.$column).truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html %]
 
       [%# Display the login name of the user if their real name is empty. %]
       [% ELSIF column.match('_realname$') && bug.$column == '' %]
index 7487841c865d2f0030588f370b7767f84bc6927a..9e938bbcb0e4016a2424f7df74b4450349473237 100644 (file)
@@ -54,47 +54,47 @@ cycle of [% terms.abug %].
     <td>
       <dl>
         <dt>
-          <b>[% get_status("UNCONFIRMED") FILTER html %]</b>
+          <b>[% display_value("bug_status", "UNCONFIRMED") FILTER html %]</b>
         </dt>
         <dd>
           This [% terms.bug %] has recently been added to the database. 
           Nobody has validated that this [% terms.bug %] is true. Users
           who have the "canconfirm" permission set may confirm
-          this [% terms.bug %], changing its state to [% get_status("NEW") FILTER html %]. Or, it may be
-          directly resolved and marked [% get_status("RESOLVED") FILTER html %].
+          this [% terms.bug %], changing its state to [% display_value("bug_status", "NEW") FILTER html %]. Or, it may be
+          directly resolved and marked [% display_value("bug_status", "RESOLVED") FILTER html %].
         </dd>
 
         <dt>
-          <b>[% get_status("NEW") FILTER html %]</b>
+          <b>[% display_value("bug_status", "NEW") FILTER html %]</b>
         </dt>
         <dd>
           This [% terms.bug %] has recently been added to the assignee's
           list of [% terms.bugs %] and must be processed. [% terms.Bugs %] in
-          this state may be accepted, and become <b>[% get_status("ASSIGNED") FILTER html %]</b>, passed
-          on to someone else, and remain <b>[% get_status("NEW") FILTER html %]</b>, or resolved and marked
-          <b>[% get_status("RESOLVED") FILTER html %]</b>.
+          this state may be accepted, and become <b>[% display_value("bug_status", "ASSIGNED") FILTER html %]</b>, passed
+          on to someone else, and remain <b>[% display_value("bug_status", "NEW") FILTER html %]</b>, or resolved and marked
+          <b>[% display_value("bug_status", "RESOLVED") FILTER html %]</b>.
         </dd>
 
         <dt>
-          <b>[% get_status("ASSIGNED") FILTER html %]</b>
+          <b>[% display_value("bug_status", "ASSIGNED") FILTER html %]</b>
         </dt>
         <dd>
           This [% terms.bug %] is not yet resolved, but is assigned to the 
           proper person. From here [% terms.bugs %] can be given to another 
-          person and become <b>[% get_status("NEW") FILTER html %]</b>, or
-          resolved and become <b>[% get_status("RESOLVED") FILTER html %]</b>.
+          person and become <b>[% display_value("bug_status", "NEW") FILTER html %]</b>, or
+          resolved and become <b>[% display_value("bug_status", "RESOLVED") FILTER html %]</b>.
         </dd>
 
         <dt>
-          <b>[% get_status("REOPENED") FILTER html %]</b>
+          <b>[% display_value("bug_status", "REOPENED") FILTER html %]</b>
         </dt>
         <dd>
           This [% terms.bug %] was once resolved, but the resolution was 
-          deemed incorrect. For example, a <b>[% get_resolution("WORKSFORME") FILTER html %]</b> [% terms.bug %] is
-          <b>[% get_status("REOPENED") FILTER html %]</b> when more information shows up and
+          deemed incorrect. For example, a <b>[% display_value("resolution", "WORKSFORME") FILTER html %]</b> [% terms.bug %] is
+          <b>[% display_value("bug_status", "REOPENED") FILTER html %]</b> when more information shows up and
           the [% terms.bug %] is now reproducible. From here [% terms.bugs %] are
-          either marked <b>[% get_status("ASSIGNED") FILTER html %]</b> or
-          <b>[% get_status("RESOLVED") FILTER html %]</b>.
+          either marked <b>[% display_value("bug_status", "ASSIGNED") FILTER html %]</b> or
+          <b>[% display_value("bug_status", "RESOLVED") FILTER html %]</b>.
         </dd>
       </dl>
     </td>
@@ -115,34 +115,34 @@ cycle of [% terms.abug %].
     <td>
       <dl>
         <dt>
-          <b>[% get_status("RESOLVED") FILTER html %]</b>
+          <b>[% display_value("bug_status", "RESOLVED") FILTER html %]</b>
         </dt>
         <dd>
           A resolution has been taken, and it is awaiting verification by
           QA. From here [% terms.bugs %] are either re-opened and become 
-          <b>[% get_status("REOPENED") FILTER html %]</b>, are marked
-          <b>[% get_status("VERIFIED") FILTER html %]</b>, or are closed for
-          good and marked <b>[% get_status("CLOSED") FILTER html %]</b>.
+          <b>[% display_value("bug_status", "REOPENED") FILTER html %]</b>, are marked
+          <b>[% display_value("bug_status", "VERIFIED") FILTER html %]</b>, or are closed for
+          good and marked <b>[% display_value("bug_status", "CLOSED") FILTER html %]</b>.
         </dd>
 
         <dt>
-          <b>[% get_status("VERIFIED") FILTER html %]</b>
+          <b>[% display_value("bug_status", "VERIFIED") FILTER html %]</b>
         </dt>
         <dd>
           QA has looked at the [% terms.bug %] and the resolution and 
           agrees that the appropriate resolution has been taken. [% terms.Bugs %] remain
           in this state until the product they were reported
           against actually ships, at which point they become
-          <b>[% get_status("CLOSED") FILTER html %]</b>.
+          <b>[% display_value("bug_status", "CLOSED") FILTER html %]</b>.
         </dd>
 
         <dt>
-          <b>[% get_status("CLOSED") FILTER html %]</b>
+          <b>[% display_value("bug_status", "CLOSED") FILTER html %]</b>
         </dt>
         <dd>
           The [% terms.bug %] is considered dead, the resolution is correct. 
           Any zombie [% terms.bugs %] who choose to walk the earth again must 
-          do so by becoming <b>[% get_status("REOPENED") FILTER html %]</b>.
+          do so by becoming <b>[% display_value("bug_status", "REOPENED") FILTER html %]</b>.
         </dd>
       </dl>
     </td>
@@ -150,7 +150,7 @@ cycle of [% terms.abug %].
     <td>
       <dl>
         <dt>
-          <b>[% get_resolution("FIXED") FILTER html %]</b>
+          <b>[% display_value("resolution", "FIXED") FILTER html %]</b>
         </dt>
         <dd>
           A fix for this [% terms.bug %] is checked into the tree and 
@@ -158,14 +158,14 @@ cycle of [% terms.abug %].
         </dd>
 
         <dt>
-          <b>[% get_resolution("INVALID") FILTER html %]</b>
+          <b>[% display_value("resolution", "INVALID") FILTER html %]</b>
         </dt>
         <dd>
           The problem described is not [% terms.abug %].
         </dd>
 
         <dt>
-          <b>[% get_resolution("WONTFIX") FILTER html %]</b>
+          <b>[% display_value("resolution", "WONTFIX") FILTER html %]</b>
         </dt>
         <dd>
           The problem described is [% terms.abug %] which will never be 
@@ -173,7 +173,7 @@ cycle of [% terms.abug %].
         </dd>
 
         <dt>
-         <b>[% get_resolution("DUPLICATE") FILTER html %]</b>
+         <b>[% display_value("resolution", "DUPLICATE") FILTER html %]</b>
         </dt>
         <dd>
           The problem is a duplicate of an existing [% terms.bug %].
@@ -183,7 +183,7 @@ cycle of [% terms.abug %].
         </dd>
 
         <dt>
-          <b>[% get_resolution("WORKSFORME") FILTER html %]</b>
+          <b>[% display_value("resolution", "WORKSFORME") FILTER html %]</b>
         </dt>
         <dd>
           All attempts at reproducing this [% terms.bug %] were futile, 
@@ -193,7 +193,7 @@ cycle of [% terms.abug %].
         </dd>
 
         <dt>
-          <b>[% get_resolution("MOVED") FILTER html %]</b>
+          <b>[% display_value("resolution", "MOVED") FILTER html %]</b>
         </dt>
         <dd>
           The problem was specific to a related product 
@@ -303,12 +303,12 @@ others.
 
 <p>
 This is the person in charge of resolving the [% terms.bug %]. Every time
-this field changes, the status changes to <b>[% get_status("NEW") FILTER html %]</b> to make it
+this field changes, the status changes to <b>[% display_value("bug_status", "NEW") FILTER html %]</b> to make it
 easy to see which new [% terms.bugs %] have appeared on a person's list.</p>
 
 <p>
-The default status for queries is set to [% get_status("NEW") FILTER html %],
-[%+ get_status("ASSIGNED") FILTER html %] and [% get_status("REOPENED") FILTER html %].
+The default status for queries is set to [% display_value("bug_status", "NEW") FILTER html %],
+[%+ display_value("bug_status", "ASSIGNED") FILTER html %] and [% display_value("bug_status", "REOPENED") FILTER html %].
 When searching for [% terms.bugs %] that have been resolved or
 verified, remember to set the status field appropriately. 
 </p>
index 74e2ca34ecde6b5bc50b086064e3fc2ab6409fcf..cb9fab24f27322f08a99d5c46fba02830ea582b6 100644 (file)
 
 [% IF col_field == 'bug_status' %]
   [% FOR i IN [ 0 .. data.0.0.max ] %]
-    [% data.0.0.$i = get_status(data.0.0.$i) %]
+    [% data.0.0.$i = display_value("bug_status", data.0.0.$i) %]
   [% END %]
 [% END %]
 
 [% IF col_field == 'resolution' %]
   [% FOR i IN [ 0 .. data.0.0.max ] %]
-    [% data.0.0.$i = get_resolution(data.0.0.$i) %]
+    [% data.0.0.$i = display_value("resolution", data.0.0.$i) %]
   [% END %]
 [% END %]
 
 [% IF row_field == 'bug_status' %]
   [% FOR i IN [ 0 .. row_names.max ] %]
-    [% row_names.$i = get_status(row_names.$i) %]
+    [% row_names.$i = display_value("bug_status", row_names.$i) %]
   [% END %]
 [% END %]
 
 [% IF row_field == 'resolution' %]
   [% FOR i IN [ 0 .. row_names.max ] %]
-    [% row_names.$i = get_resolution(row_names.$i) %]
+    [% row_names.$i = display_value("resolution", row_names.$i) %]
   [% END %]
 [% END %]
 
index d4982bc7a199dbe7ac241fa6bcb298df9878f384..fc8b418af6657b6875342d08ea93b41b16816723 100644 (file)
 
 [% IF col_field == 'bug_status' %]
   [% FOR i IN [ 0 .. data.0.0.max ] %]
-    [% data.0.0.$i = get_status(data.0.0.$i) %]
+    [% data.0.0.$i = display_value("bug_status", data.0.0.$i) %]
   [% END %]
 [% END %]
 
 [% IF col_field == 'resolution' %]
   [% FOR i IN [ 0 .. data.0.0.max ] %]
-    [% data.0.0.$i = get_resolution(data.0.0.$i) %]
+    [% data.0.0.$i = display_value("resolution", data.0.0.$i) %]
   [% END %]
 [% END %]
 
 [% IF row_field == 'bug_status' %]
   [% FOR i IN [ 0 .. row_names.max ] %]
-    [% row_names.$i = get_status(row_names.$i) %]
+    [% row_names.$i = display_value("bug_status", row_names.$i) %]
   [% END %]
 [% END %]
 
 [% IF row_field == 'resolution' %]
   [% FOR i IN [ 0 .. row_names.max ] %]
-    [% row_names.$i = get_resolution(row_names.$i) %]
+    [% row_names.$i = display_value("resolution", row_names.$i) %]
   [% END %]
 [% END %]
 
index 342d9b78a35cfea45e538b311487f153441f2520..05a359032b78ffb7dd835d063be89d3d42e88d67 100644 (file)
 
 [% IF col_field == 'bug_status' %]
   [% FOR i IN [ 0 .. data.0.0.max ] %]
-    [% data.0.0.$i = get_status(data.0.0.$i) %]
+    [% data.0.0.$i = display_value("bug_status", data.0.0.$i) %]
   [% END %]
 [% END %]
 
 [% IF col_field == 'resolution' %]
   [% FOR i IN [ 0 .. data.0.0.max ] %]
-    [% data.0.0.$i = get_resolution(data.0.0.$i) %]
+    [% data.0.0.$i = display_value("resolution", data.0.0.$i) %]
   [% END %]
 [% END %]
 
index 0f315cc023a8d43bcee9ceeb83aae771a32df12c..3694b9b35c13d11b47877d5edaa7c65d51acee25 100644 (file)
@@ -69,9 +69,9 @@
 [% BLOCK value_display %]
   [% SET disp_value = value %]
   [% IF field == 'bug_status' %]
-    [% SET disp_value = get_status(value) %]
+    [% SET disp_value = display_value("bug_status", value) %]
   [% ELSIF field == 'resolution' %]
-    [% SET disp_value = get_resolution(value) %]
+    [% SET disp_value = display_value("resolution", value) %]
   [% ELSIF field == 'assigned_to' OR field == 'reporter'
            OR field == 'qa_contact'
   %]
index 6c5d6ede2fa8e4969cfe659192109688930ccbad..6c0abe4d303b5d31d13e810c5c56a21680d82d8b 100644 (file)
 [% BLOCK value_display %]
   [% SET disp_value = value %]
   [% IF field == 'bug_status' %]
-    [% SET disp_value = get_status(value) %]
+    [% SET disp_value = display_value("bug_status", value) %]
   [% ELSIF field == 'resolution' %]
-    [% SET disp_value = get_resolution(value) %]
+    [% SET disp_value = display_value("resolution", value) %]
   [% ELSIF field == 'assigned_to' OR field == 'reporter'
            OR field == 'qa_contact'
   %]
index b09516de1f4e79ac6ede2cfff720bfcd704c2c0b..c6b3c3b306c39c7a451a68f7b95aa8d7401630b8 100644 (file)
@@ -617,10 +617,10 @@ function doOnSelectProduct(selectmode) {
           <option value="[% value.name OR '---' FILTER html %]"
             [% " selected" IF lsearch(default.${sel.name}, value.name) != -1 %]>
             [% IF sel.name == "bug_status" %]
-              [% get_status(value.name) FILTER html %]
+              [% display_value("bug_status", value.name) FILTER html %]
             [% ELSIF sel.name == "resolution" %]
               [%# Again, resolution has that odd empty value. Replace it with '---' %]
-              [% get_resolution(value.name) OR '---' FILTER html %]
+              [% display_value("resolution", value.name) OR '---' FILTER html %]
             [% ELSE %]
               [% value.name FILTER html %]
             [% END %]
index e1df9dbad70d4105e220682b3145edc539267c1e..d25bcd4ddbf64e4dd6c0b9f75ae4f8d2e1e04d5a 100644 (file)
@@ -82,8 +82,8 @@
         <td align="left">[% bug.priority FILTER html %]</td>
         <td align="left">[% bug.rep_platform FILTER html %]</td>
         <td align="left">[% bug.$assignee_login_string FILTER html %]</td>
-        <td align="left">[% get_status(bug.bug_status) FILTER html %]</td>
-        <td align="left">[% get_resolution(bug.resolution) FILTER html %]</td>
+        <td align="left">[% display_value("bug_status", bug.bug_status) FILTER html %]</td>
+        <td align="left">[% display_value("resolution", bug.resolution) FILTER html %]</td>
         <td align="left">[% bug.short_desc FILTER html %]</td>
       </tr>
     [% END %]
index 4375ee13b252cec7d65d0acc1e119ab8334f8dfd..6df8d4346dc67e5733499111f4afc31002e4ab88 100644 (file)
@@ -57,8 +57,8 @@
   Severity: [%+ bug.bug_severity -%]
   Platform: [%+ bug.rep_platform %]
   Assignee: [%+ bug.$assignee_login_string %]
-    Status: [%+ get_status(bug.bug_status) %]
-            [%- IF bug.resolution -%] Resolution: [% get_resolution(bug.resolution) -%]
+    Status: [%+ display_value("bug_status", bug.bug_status) %]
+            [%- IF bug.resolution -%] Resolution: [% display_value("resolution", bug.resolution) -%]
                                 [%- END %]
    Summary: [% bug.short_desc %]