summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_title.tmpl
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-04-04 13:39:48 +0800
committerGitHub <noreply@github.com>2020-04-04 02:39:48 -0300
commit14c97c05019d416d634ad486c03674a2b9af92ef (patch)
tree43389cad020e8bbcf0c802c0647172103d09ecc3 /templates/repo/issue/view_title.tmpl
parent4f63f283c47dcf9e705ce5b8e8857f2b42cff8ad (diff)
downloadgitea-14c97c05019d416d634ad486c03674a2b9af92ef.tar.gz
gitea-14c97c05019d416d634ad486c03674a2b9af92ef.zip
Add titles and improve messages on sidebar menus (#10872)
* ui: add more message on sidebar menus * add title on the menus * show some message instead of hide choose bar when have nothing to choose * add simply filter for each menus * do same changes in mew_form.tmpl * remove some unusefull comments in mew_form.tmpl Signed-off-by: a1012112796 <1012112796@qq.com> * do review suggestions * add filter message on sidebar filter * change IsIssueWriter to HasIssuesOrPullsWritePermission Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'templates/repo/issue/view_title.tmpl')
-rw-r--r--templates/repo/issue/view_title.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl
index e2a3e8f93a..4a6eefa4c4 100644
--- a/templates/repo/issue/view_title.tmpl
+++ b/templates/repo/issue/view_title.tmpl
@@ -6,7 +6,7 @@
<input value="{{.Issue.Title}}" maxlength="255">
</div>
</h1>
- {{if and (or .IsIssueWriter .IsIssuePoster) (not .Repository.IsArchived)}}
+ {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}}
<div class="four wide column">
<div class="edit-zone text right">
<div id="edit-title" class="ui basic green not-in-edit button">{{.i18n.Tr "repo.issues.edit"}}</div>