diff options
author | Unknwon <u@gogs.io> | 2015-09-02 09:26:56 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-02 09:26:56 -0400 |
commit | 953bb06857f59f5c6987f68a08a94cf5a885b456 (patch) | |
tree | 196a45fa4e7f8808b35790981eb0e417bbfa1a61 /templates/repo/pulls | |
parent | 6ea28f2a4759c5192811b12de054e7ad62f080f6 (diff) | |
download | gitea-953bb06857f59f5c6987f68a08a94cf5a885b456.tar.gz gitea-953bb06857f59f5c6987f68a08a94cf5a885b456.zip |
basic PR feature
Diffstat (limited to 'templates/repo/pulls')
-rw-r--r-- | templates/repo/pulls/tab_menu.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/pulls/tab_menu.tmpl b/templates/repo/pulls/tab_menu.tmpl index 92453640cb..0023cd29e4 100644 --- a/templates/repo/pulls/tab_menu.tmpl +++ b/templates/repo/pulls/tab_menu.tmpl @@ -4,14 +4,14 @@ {{$.i18n.Tr "repo.pulls.tab_conversation"}} <span class="ui label">{{.Issue.NumComments}}</span> </a> - <a class="item {{if .PageIsPullCommits}}active{{end}}" href="{{.RepoLink}}/pulls/{{.Issue.Index}}/commits"> + <a class="item {{if .PageIsPullCommits}}active{{end}}" {{if .NumCommits}}href="{{.RepoLink}}/pulls/{{.Issue.Index}}/commits"{{end}}> <span class="octicon octicon-git-commit"></span> {{$.i18n.Tr "repo.pulls.tab_commits"}} - <span class="ui label">{{.NumCommits}}</span> + <span class="ui label">{{if .NumCommits}}{{.NumCommits}}{{else}}N/A{{end}}</span> </a> - <a class="item {{if .PageIsPullFiles}}active{{end}}" href="{{.RepoLink}}/pulls/{{.Issue.Index}}/files"> + <a class="item {{if .PageIsPullFiles}}active{{end}}" {{if .NumFiles}}href="{{.RepoLink}}/pulls/{{.Issue.Index}}/files"{{end}}> <span class="octicon octicon-diff"></span> {{$.i18n.Tr "repo.pulls.tab_files"}} - <span class="ui label">{{.NumFiles}}</span> + <span class="ui label">{{if .NumFiles}}{{.NumFiles}}{{else}}N/A{{end}}</span> </a> </div>
\ No newline at end of file |