summaryrefslogtreecommitdiffstats
path: root/templates/repo/header.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-10 20:11:18 -0700
committerUnknwon <joe2010xtmf@163.com>2014-08-10 20:11:18 -0700
commit5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a (patch)
tree8c657d037a5c87ec13cc828244ae30d3fe1168ab /templates/repo/header.tmpl
parent7af7584d25f48309a70083c30805ebb8454611f0 (diff)
downloadgitea-5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a.tar.gz
gitea-5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a.zip
Finish new home page of organization
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r--templates/repo/header.tmpl15
1 files changed, 7 insertions, 8 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 5e9c3ea2db..31259f056d 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -20,7 +20,7 @@
<button id="repo-clone-https" class="btn btn-gray left">HTTPS</button>
<input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" />
<button id="repo-clone-copy" class="btn btn-black left btn-right-radius">Copy</button>
- <p class="text-center" id="repo-clone-help">Need help cloning? Visit <a target="_blank" href="http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository">Help</a>!</p>
+ <p class="text-center" id="repo-clone-help">{{.i18n.Tr "repo.clone_helper" | Str2html}}</p>
<hr/>
<div class="text-center" id="repo-clone-zip">
<a class="btn btn-green btn-radius" href="{{.RepoLink}}/archive/{{.BranchName}}.zip"><i class="octicon octicon-file-zip"></i>ZIP</a>
@@ -30,25 +30,24 @@
</div>
</li>
<li id="repo-header-watch">
- <a id="repo-header-watch-btn" href="#">
+ <a id="repo-header-watch-btn" href="{{.RepoLink}}/action/{{if .IsWatchingRepo}}un{{end}}watch">
<button class="btn btn-gray text-bold btn-radius">
- <i class="octicon octicon-eye-watch"></i>{{if .IsWatchingRepo}}Unwatch{{else}}Watch{{end}}
- <span class="num">{{.Repository.NumWatches}}</span>
+ <i class="octicon octicon-eye-watch"></i>{{if .IsWatchingRepo}}{{.i18n.Tr "repo.unwatch"}}{{else}}{{.i18n.Tr "repo.watch"}}{{end}}<span class="num">{{.Repository.NumWatches}}</span>
</button>
</a>
</li>
<li id="repo-header-star">
- <a id="repo-header-star-btn" href="#">
+ <a id="repo-header-star-btn" href="{{.RepoLink}}/action/{{if .IsStaringRepo}}un{{end}}star">
<button class="btn btn-gray text-bold btn-radius">
- <i class="octicon octicon-star"></i>Star
+ <i class="octicon octicon-star"></i>{{if .IsStaringRepo}}{{.i18n.Tr "repo.unstar"}}{{else}}{{.i18n.Tr "repo.star"}}{{end}}
<span class="num">{{.Repository.NumStars}}</span>
</button>
</a>
</li>
<li id="repo-header-fork">
- <a id="repo-header-fork-btn" href="#">
+ <a id="repo-header-fork-btn" href="{{.RepoLink}}/action/fork">
<button class="btn btn-gray text-bold btn-radius">
- <i class="octicon octicon-repo-forked"></i>Fork
+ <i class="octicon octicon-repo-forked"></i>{{.i18n.Tr "repo.fork"}}
<span class="num">{{.Repository.NumForks}}</span>
</button>
</a>