summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/account/prefs/apikey.html.tmpl20
1 files changed, 16 insertions, 4 deletions
diff --git a/template/en/default/account/prefs/apikey.html.tmpl b/template/en/default/account/prefs/apikey.html.tmpl
index 926f3838b..cdbee848b 100644
--- a/template/en/default/account/prefs/apikey.html.tmpl
+++ b/template/en/default/account/prefs/apikey.html.tmpl
@@ -34,13 +34,25 @@ here.</p>
<th>Revoked</th>
</tr>
+ [%# because mozreview api-keys only work for the mozreview api, we hide the
+ # key and prevent renaming #%]
[% FOREACH api_key IN api_keys %]
<tr[% IF api_key.revoked %] class="apikey_revoked bz_tui_hidden" style="display:none"[% END %]>
- <td>[% api_key.api_key FILTER html %]</td>
<td>
- <input name="description_[% api_key.id FILTER html %]"
- id="description_[% api_key.id FILTER html %]"
- value="[% api_key.description FILTER html %]">
+ [% IF api_key.is_mozreview %]
+ <i>hidden</i>
+ [% ELSE %]
+ [% api_key.api_key FILTER html %]
+ [% END %]
+ </td>
+ <td>
+ [% IF api_key.is_mozreview %]
+ MozReview
+ [% ELSE %]
+ <input name="description_[% api_key.id FILTER html %]"
+ id="description_[% api_key.id FILTER html %]"
+ value="[% api_key.description FILTER html %]">
+ [% END %]
</td>
[% IF api_key.last_used %]
<td>[% api_key.last_used FILTER time %]