summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff
diff options
context:
space:
mode:
authorCherrg <michael@gnehr.de>2019-07-08 21:18:09 +0200
committerzeripath <art27@cantab.net>2019-07-08 20:18:09 +0100
commit3c3f74988ac25962b7d72ad32a70b399e5c0f2bc (patch)
tree96ad4657010773d3bfb80b8f617524bdabe788c1 /templates/repo/diff
parent0622e830557fcf63c73541394a56ba23a700a65a (diff)
downloadgitea-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/diff')
-rw-r--r--templates/repo/diff/compare.tmpl14
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl
index 877241fb39..1c8942d42f 100644
--- a/templates/repo/diff/compare.tmpl
+++ b/templates/repo/diff/compare.tmpl
@@ -5,8 +5,12 @@
{{if .PageIsComparePull}}
<h2 class="ui header">
- {{.i18n.Tr "repo.pulls.compare_changes"}}
- <div class="sub header">{{.i18n.Tr "repo.pulls.compare_changes_desc"}}</div>
+ {{if not .Repository.IsArchived}}
+ {{.i18n.Tr "repo.pulls.compare_changes"}}
+ <div class="sub header">{{.i18n.Tr "repo.pulls.compare_changes_desc"}}</div>
+ {{ else }}
+ {{.i18n.Tr "action.compare_commits_general"}}
+ {{ end }}
</h2>
<div class="ui segment choose branch">
<span class="octicon octicon-git-compare"></span>
@@ -60,7 +64,11 @@
<div class="ui info message show-form-container">
<button class="ui button green show-form">{{.i18n.Tr "repo.pulls.new"}}</button>
</div>
- {{end}}
+ {{ else }}
+ <div class="ui warning message">
+ {{.i18n.Tr "repo.archive.title"}}
+ </div>
+ {{ end }}
<div class="pullrequest-form" style="display: none">
{{template "repo/issue/new_form" .}}
</div>