diff options
author | Cherrg <michael@gnehr.de> | 2019-07-08 21:18:09 +0200 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-07-08 20:18:09 +0100 |
commit | 3c3f74988ac25962b7d72ad32a70b399e5c0f2bc (patch) | |
tree | 96ad4657010773d3bfb80b8f617524bdabe788c1 /templates/repo/issue | |
parent | 0622e830557fcf63c73541394a56ba23a700a65a (diff) | |
download | gitea-3c3f74988ac25962b7d72ad32a70b399e5c0f2bc.tar.gz gitea-3c3f74988ac25962b7d72ad32a70b399e5c0f2bc.zip |
ui fixes - compare view and archieved repo issues (#7345)
* add 'repo archived - comment/pull not possible' message
affects #7304
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* add navbar to compare view
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* remove wrong if else
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index b3f88c662d..acabe34782 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -107,6 +107,14 @@ </form> </div> </div> + {{ else if .Repository.IsArchived }} + <div class="ui warning message"> + {{if .Issue.IsPull}} + {{.i18n.Tr "repo.archive.pull.nocomment"}} + {{else}} + {{.i18n.Tr "repo.archive.issue.nocomment"}} + {{end}} + </div> {{ end }} {{else}} {{if .Repository.IsArchived}} |