aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorguy.pyrzak%gmail.com <>2009-02-12 05:20:05 +0000
committerguy.pyrzak%gmail.com <>2009-02-12 05:20:05 +0000
commit47cf0ef790fc4848ea728ca4e7dc3748459436f8 (patch)
tree14255894f399f4a70fdd12ddf9cb52ecd6b79607 /template/en/default/bug
parentd68947859602d674ea47a96587df89e3b414725e (diff)
downloadbugs-47cf0ef790fc4848ea728ca4e7dc3748459436f8.tar
bugs-47cf0ef790fc4848ea728ca4e7dc3748459436f8.tar.gz
bugs-47cf0ef790fc4848ea728ca4e7dc3748459436f8.tar.bz2
bugs-47cf0ef790fc4848ea728ca4e7dc3748459436f8.tar.xz
bugs-47cf0ef790fc4848ea728ca4e7dc3748459436f8.zip
Bug 477391: The "Commit" and "Move to..." buttons at the top of show_bug should only be displayed if the user is logged in
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/edit.html.tmpl14
1 files changed, 8 insertions, 6 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 5d8a423f8..f097d0616 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -1150,10 +1150,12 @@
[% spellcheck = undef %]
[% END %]
[% BLOCK commit_button %]
- <div class="knob-buttons">
- <input type="submit" value="Commit" id="commit[% id FILTER css_class_quote %]">
- [% IF bug.user.canmove %]
- <input type="submit" name="action" id="action[% id FILTER css_class_quote %]" value="[% Param("move-button-text") %]">
- [% END %]
- </div>
+ [% IF user.id %]
+ <div class="knob-buttons">
+ <input type="submit" value="Commit" id="commit[% id FILTER css_class_quote %]">
+ [% IF bug.user.canmove %]
+ <input type="submit" name="action" id="action[% id FILTER css_class_quote %]" value="[% Param("move-button-text") %]">
+ [% END %]
+ </div>
+ [% END %]
[% END %]