aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-03-23 23:32:40 -0300
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-03-24 10:32:40 +0800
commit6a451a2b5986bf5c27f20a00000495da1064c386 (patch)
tree8c6c7274ca38847d18b992f3c41d46de0cfa9ce5
parentae9b02b079954eabafc55ff1ab7527ba828f4bb6 (diff)
downloadgitea-6a451a2b5986bf5c27f20a00000495da1064c386.tar.gz
gitea-6a451a2b5986bf5c27f20a00000495da1064c386.zip
Minor improvements on commit graph UI (#1380)
* Make "Commit Graph" link a button and translate it * Add title on Commit Graph page
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--templates/repo/commits.tmpl4
-rw-r--r--templates/repo/graph.tmpl1
3 files changed, 4 insertions, 2 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index a13e424867..2251075963 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -503,6 +503,7 @@ file_permalink = Permalink
file_too_large = This file is too large to be shown
video_not_supported_in_browser = Your browser doesn't support HTML5 video tag.
stored_lfs = Stored with Git LFS
+commit_graph = Commit graph
editor.new_file = New file
editor.upload_file = Upload file
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl
index 198f3cc08d..ee52557fb0 100644
--- a/templates/repo/commits.tmpl
+++ b/templates/repo/commits.tmpl
@@ -5,12 +5,12 @@
<div class="ui secondary menu">
{{template "repo/branch_dropdown" .}}
<div class="fitted item">
- <div class="ui breadcrumb">
+ <div class="ui basic small button">
<a href="{{.RepoLink}}/graph">
<span class="text">
<i class="octicon octicon-git-branch"></i>
</span>
- commit graph
+ {{.i18n.Tr "repo.commit_graph"}}
</a>
</div>
</div>
diff --git a/templates/repo/graph.tmpl b/templates/repo/graph.tmpl
index 28d6a4661a..56bb1d92ed 100644
--- a/templates/repo/graph.tmpl
+++ b/templates/repo/graph.tmpl
@@ -5,6 +5,7 @@
<div id="git-graph-container" class="ui segment">
+ <h1>{{.i18n.Tr "repo.commit_graph"}}</h1>
<div id="rel-container">
<canvas id="graph-canvas">
<ul id="graph-raw-list">