Browse Source

Minor improvements on commit graph UI (#1380)

* Make "Commit Graph" link a button and translate it

* Add title on Commit Graph page
Andrey Nering 3 years ago
parent
commit
6a451a2b59
3 changed files with 4 additions and 2 deletions
  1. 1 0
      options/locale/locale_en-US.ini
  2. 2 2
      templates/repo/commits.tmpl
  3. 1 0
      templates/repo/graph.tmpl

+ 1 - 0
options/locale/locale_en-US.ini

@@ -503,6 +503,7 @@ file_permalink = Permalink
503 503
 file_too_large = This file is too large to be shown
504 504
 video_not_supported_in_browser = Your browser doesn't support HTML5 video tag.
505 505
 stored_lfs = Stored with Git LFS
506
+commit_graph = Commit graph
506 507
 
507 508
 editor.new_file = New file
508 509
 editor.upload_file = Upload file

+ 2 - 2
templates/repo/commits.tmpl

@@ -5,12 +5,12 @@
5 5
 	  <div class="ui secondary menu">
6 6
 	    {{template "repo/branch_dropdown" .}}
7 7
 	    <div class="fitted item">
8
-	      <div class="ui breadcrumb">
8
+	      <div class="ui basic small button">
9 9
 		<a href="{{.RepoLink}}/graph">
10 10
 		  <span class="text">
11 11
 		    <i class="octicon octicon-git-branch"></i>
12 12
 		  </span>
13
-		  commit graph
13
+		  {{.i18n.Tr "repo.commit_graph"}}
14 14
 		</a>
15 15
 	      </div>
16 16
 	    </div>

+ 1 - 0
templates/repo/graph.tmpl

@@ -5,6 +5,7 @@
5 5
 
6 6
 
7 7
 	  <div id="git-graph-container" class="ui segment">
8
+		  <h1>{{.i18n.Tr "repo.commit_graph"}}</h1>
8 9
 	    <div id="rel-container">
9 10
 	      <canvas id="graph-canvas">
10 11
 		<ul id="graph-raw-list">