diff options
author | David Lawrence <dkl@mozilla.com> | 2016-06-30 19:38:42 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-06-30 19:38:42 +0200 |
commit | 7c42dc6972e69b31411fbfac7e2ef0ea9242e9d4 (patch) | |
tree | 4d7c3e845609634b78c1602d7601c21f827850bc /template | |
parent | 8b6c60262ddfa26af57a9e175059f37162288f89 (diff) | |
download | bugzilla-7c42dc6972e69b31411fbfac7e2ef0ea9242e9d4.tar.gz bugzilla-7c42dc6972e69b31411fbfac7e2ef0ea9242e9d4.tar.xz |
Bug 1283233 - Add JSON link to bug nav bar
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/navigate.html.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl index 8d7f8df12..f0c924160 100644 --- a/template/en/default/bug/navigate.html.tmpl +++ b/template/en/default/bug/navigate.html.tmpl @@ -28,6 +28,9 @@ [% bug.bug_id FILTER uri %]">Format For Printing</a></li> <li> - <a href="show_bug.cgi?ctype=xml&id= [% bug.bug_id FILTER uri %]">XML</a></li> + [% IF NOT bug.groups_in.size %] + <li> - <a href="rest/bug/[% bug.bug_id FILTER uri %]">JSON</a></li> + [% END %] <li> - <a href="enter_bug.cgi?format=__default__&cloned_bug_id=[% bug.bug_id FILTER uri %]" id="clone_bug" |