summaryrefslogtreecommitdiffstats
path: root/extensions/UserStory/template/en
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-08-06 09:05:03 +0200
committerByron Jones <glob@mozilla.com>2014-08-06 09:06:11 +0200
commitc0dd51d4d3f83015d77db8a6cc2958aa6fccc09c (patch)
tree92508d0615ed45d8206e8d84457146088dcc9d7e /extensions/UserStory/template/en
parentec10d05697c5e8b89d4a76374563bacaf4238d02 (diff)
downloadbugzilla-c0dd51d4d3f83015d77db8a6cc2958aa6fccc09c.tar.gz
bugzilla-c0dd51d4d3f83015d77db8a6cc2958aa6fccc09c.tar.xz
Bug 1049329: fix width of user_story field, and hide label for anon access when no story is set
Diffstat (limited to 'extensions/UserStory/template/en')
-rw-r--r--extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl b/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl
index c7c202d62..6a7770066 100644
--- a/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl
+++ b/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl
@@ -7,6 +7,7 @@
#%]
[% RETURN UNLESS bug.user_story_visible.0 %]
+[% RETURN IF user.id == 0 && bug.cf_user_story == "" %]
[% can_edit_story = bug.check_can_change_field('cf_user_story', 0, 1) %]
<div class="user_story">
@@ -29,7 +30,9 @@
(<a href="javascript:void(0)" id="user_story_edit_action" >edit</a>)
</span>
[% END %]
- [% IF bug.cf_user_story != "" %]
+ [% IF user.id
+ && bug.cf_user_story != ""
+ && bug.check_can_change_field('longdesc', 0, 1) %]
<span id="user_story_comment">
[<a class="bz_reply_link" href="#user_story_comment"
onclick="userStoryComment(); return false;"