diff options
author | Unknwon <u@gogs.io> | 2016-03-05 20:45:23 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-05 20:45:23 -0500 |
commit | a5b0400be7c8868b685403e0718bdd66149c3e84 (patch) | |
tree | 6db3f4999fa43e0b8a384ca4da8885aa00a4de8f /templates/repo/issue | |
parent | 045f14fbd0e3553521f5092cf839be363c74a090 (diff) | |
download | gitea-a5b0400be7c8868b685403e0718bdd66149c3e84.tar.gz gitea-a5b0400be7c8868b685403e0718bdd66149c3e84.zip |
#1146 finish new access rights for collaborators
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/labels.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/issue/milestone_new.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/milestones.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 10 |
4 files changed, 12 insertions, 12 deletions
diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index 7fef4390c8..1edb15bccf 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -4,7 +4,7 @@ <div class="ui container"> <div class="navbar"> {{template "repo/issue/navbar" .}} - {{if .IsRepositoryAdmin}} + {{if .IsRepositoryWriter}} <div class="ui right"> <div class="ui green new-label button">{{.i18n.Tr "repo.issues.new_label"}}</div> </div> @@ -40,7 +40,7 @@ {{range .Labels}} <li class="item"> <div class="ui label" style="color: {{.ForegroundColor}}; background-color: {{.Color}}"><i class="octicon octicon-tag"></i> {{.Name}}</div> - {{if $.IsRepositoryAdmin}} + {{if $.IsRepositoryWriter}} <a class="ui right delete-button" href="#" data-url="{{$.RepoLink}}/labels/delete" data-id="{{.ID}}"><i class="octicon octicon-trashcan"></i> {{$.i18n.Tr "repo.issues.label_delete"}}</a> <a class="ui right edit-label-button" href="#" data-id={{.ID}} data-title={{.Name}} data-color={{.Color}}><i class="octicon octicon-pencil"></i> {{$.i18n.Tr "repo.issues.label_edit"}}</a> {{end}} @@ -51,7 +51,7 @@ </div> </div> -{{if .IsRepositoryAdmin}} +{{if .IsRepositoryWriter}} <div class="ui small basic delete modal"> <div class="ui icon header"> <i class="trash icon"></i> diff --git a/templates/repo/issue/milestone_new.tmpl b/templates/repo/issue/milestone_new.tmpl index 88dc806b4e..bd2f79389a 100644 --- a/templates/repo/issue/milestone_new.tmpl +++ b/templates/repo/issue/milestone_new.tmpl @@ -4,7 +4,7 @@ <div class="ui container"> <div class="navbar"> {{template "repo/issue/navbar" .}} - {{if and .IsRepositoryAdmin .PageIsEditMilestone}} + {{if and .IsRepositoryWriter .PageIsEditMilestone}} <div class="ui right floated secondary menu"> <a class="ui green button" href="{{$.RepoLink}}/milestones/new">{{.i18n.Tr "repo.milestones.new"}}</a> </div> diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index f80eed8c54..038eaabd8f 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -4,7 +4,7 @@ <div class="ui container"> <div class="navbar"> {{template "repo/issue/navbar" .}} - {{if .IsRepositoryAdmin}} + {{if .IsRepositoryWriter}} <div class="ui right"> <a class="ui green button" href="{{$.Link}}/new">{{.i18n.Tr "repo.milestones.new"}}</a> </div> @@ -49,7 +49,7 @@ <i class="octicon octicon-issue-closed"></i> {{$.i18n.Tr "repo.issues.close_tab" .NumClosedIssues}} </span> </div> - {{if $.IsRepositoryAdmin}} + {{if $.IsRepositoryWriter}} <div class="ui right operate"> <a href="{{$.Link}}/{{.ID}}/edit" data-id={{.ID}} data-title={{.Name}}><i class="octicon octicon-pencil"></i> {{$.i18n.Tr "repo.issues.label_edit"}}</a> {{if .IsClosed}} @@ -93,7 +93,7 @@ </div> </div> -{{if .IsRepositoryAdmin}} +{{if .IsRepositoryWriter}} <div class="ui small basic delete modal"> <div class="ui icon header"> <i class="trash icon"></i> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 1b03c94d01..30687a2bb8 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -65,7 +65,7 @@ {{if eq .ShowTag 1}} {{$.i18n.Tr "repo.issues.poster"}} {{else if eq .ShowTag 2}} - {{$.i18n.Tr "repo.issues.admin"}} + {{$.i18n.Tr "repo.issues.collaborator"}} {{else if eq .ShowTag 3}} {{$.i18n.Tr "repo.issues.owner"}} {{end}} @@ -165,7 +165,7 @@ <span class="octicon octicon-check"></span> {{$.i18n.Tr "repo.pulls.can_auto_merge_desc"}} </div> - {{if .IsRepositoryAdmin}} + {{if .IsRepositoryWriter}} <div class="ui divider"></div> <div> <form class="ui form" action="{{.Link}}/merge" method="post"> @@ -231,7 +231,7 @@ <div class="four wide column"> <div class="ui segment metas"> - <div class="ui {{if not .IsRepositoryAdmin}}disabled{{end}} floating jump select-label dropdown"> + <div class="ui {{if not .IsRepositoryWriter}}disabled{{end}} floating jump select-label dropdown"> <span class="text"> <strong>{{.i18n.Tr "repo.issues.new.labels"}}</strong> <span class="octicon octicon-gear"></span> @@ -252,7 +252,7 @@ <div class="ui divider"></div> - <div class="ui {{if not .IsRepositoryAdmin}}disabled{{end}} floating jump select-milestone dropdown"> + <div class="ui {{if not .IsRepositoryWriter}}disabled{{end}} floating jump select-milestone dropdown"> <span class="text"> <strong>{{.i18n.Tr "repo.issues.new.milestone"}}</strong> <span class="octicon octicon-gear"></span> @@ -293,7 +293,7 @@ <div class="ui divider"></div> <input id="assignee_id" name="assignee_id" type="hidden" value="{{.assignee_id}}"> - <div class="ui {{if not .IsRepositoryAdmin}}disabled{{end}} floating jump select-assignee dropdown"> + <div class="ui {{if not .IsRepositoryWriter}}disabled{{end}} floating jump select-assignee dropdown"> <span class="text"> <strong>{{.i18n.Tr "repo.issues.new.assignee"}}</strong> <span class="octicon octicon-gear"></span> |