diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-10 20:11:18 -0700 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-10 20:11:18 -0700 |
commit | 5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a (patch) | |
tree | 8c657d037a5c87ec13cc828244ae30d3fe1168ab /templates/repo | |
parent | 7af7584d25f48309a70083c30805ebb8454611f0 (diff) | |
download | gitea-5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a.tar.gz gitea-5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a.zip |
Finish new home page of organization
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/create.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/header.tmpl | 15 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 4 |
3 files changed, 10 insertions, 11 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index ea716e321a..b5a8ea4e47 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -10,7 +10,7 @@ <label for="owner" class="req">{{.i18n.Tr "repo.owner"}}</label> <input id="repo-owner-id" type="hidden" name="uid" value="{{.ContextUser.Id}}" /> <div class="inline-block drop"> - <a href="#" class="drop-bottom"> + <a class="drop-bottom"> <img class="avatar" src="{{.ContextUser.AvatarLink}}" id="repo-owner-avatar" alt="user-avatar"> <strong id="repo-owner-name">{{.ContextUser.Name}}</strong> </a> 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> diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 266d827547..42b8bdd4b1 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -57,12 +57,12 @@ </li> <li id="repo-commits-jump" class="repo-jump right"> <a href="#"> - <button class="btn btn-small btn-gray btn-radius"><i class="octicon octicon-git-commit"></i></button> + <button class="btn btn-small btn-gray btn-right-radius"><i class="octicon octicon-git-commit"></i></button> </a> </li> <li id="repo-find-jump" class="repo-jump right"> <a href="#"> - <button class="btn btn-small btn-gray btn-radius"><i class="octicon octicon-list-unordered"></i></button> + <button class="btn btn-small btn-gray btn-left-radius"><i class="octicon octicon-list-unordered"></i></button> </a> </li> </ul> |