diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-02 13:47:33 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-02 13:47:33 -0400 |
commit | 755eec745fa324fdd13078f0147638f8731652ba (patch) | |
tree | 3c04a98d64e128d2ce8887cc20ed361f04010052 /templates/repo/home.tmpl | |
parent | 669552e255fb98021b779918394c65792fe6f1d2 (diff) | |
download | gitea-755eec745fa324fdd13078f0147638f8731652ba.tar.gz gitea-755eec745fa324fdd13078f0147638f8731652ba.zip |
Finish new repo settings page
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 87 |
1 files changed, 2 insertions, 85 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 5f16a7baf0..266d827547 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -1,63 +1,7 @@ {{template "ng/base/head" .}} {{template "ng/base/header" .}} <div id="repo-wrapper"> - <div id="repo-header" class="clear"> - <div class="container clear"> - <h1 id="repo-header-name" class="left public"> - <i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else}}repo{{end}}"></i> - <a class="author" href="/{{.Owner.Name}}">{{.Owner.Name}}</a> - <span class="divider">/</span> - <a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a> - </h1> - <ul id="repo-header-meta" class="right menu menu-line"> - <li id="repo-header-download" class="inline-block down drop"> - <a id="repo-header-download-btn" href="#"> - <button class="btn btn-black text-bold btn-radius"> - <i class="octicon octicon-cloud-download"></i> - </button> - </a> - <div id="repo-header-download-drop" class="drop-down"> - <div id="repo-clone" class="clear"> - <button id="repo-clone-ssh" class="btn btn-blue current left left btn-left-radius">SSH</button> - <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 href="#">Help</a>!</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> - <a class="btn btn-green btn-radius" href="{{.RepoLink}}/archive/{{.BranchName}}.tar.gz"><i class="octicon octicon-file-zip"></i>TAR.GZ</a> - </div> - </div> - </div> - </li> - <li id="repo-header-watch"> - <a id="repo-header-watch-btn" href="#"> - <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> - </button> - </a> - </li> - <li id="repo-header-star"> - <a id="repo-header-star-btn" href="#"> - <button class="btn btn-gray text-bold btn-radius"> - <i class="octicon octicon-star"></i>Star - <span class="num">{{.Repository.NumStars}}</span> - </button> - </a> - </li> - <li id="repo-header-fork"> - <a id="repo-header-fork-btn" href="#"> - <button class="btn btn-gray text-bold btn-radius"> - <i class="octicon octicon-repo-forked"></i>Fork - <span class="num">{{.Repository.NumForks}}</span> - </button> - </a> - </li> - </ul> - </div> - </div> + {{template "repo/header" .}} <div id="repo-content" class="clear container"> <div id="repo-main" class="left grid-4-5"> <p id="repo-desc"> @@ -128,34 +72,7 @@ {{template "repo/view_list" .}} {{end}} </div> - <div id="repo-sidebar" class="right grid-1-5"> - <ul class="menu menu-vertical" id="repo-sidebar-nav"> - <li> - <a class="radius" href="{{.RepoLink}}/issues"><i class="octicon octicon-issue-opened"></i>Issues<span class="num right label label-blue label-radius">{{.Repository.NumOpenIssues}}</span></a> - </li> - <li> - <a class="radius" href="{{.RepoLink}}/pulls"><i class="octicon octicon-git-pull-request"></i>Pull Requests<span class="num right label label-blue label-radius">{{.Repository.NumOpenPulls}}</span></a> - </li> - <li class="border-bottom"></li> - <li class="head">{{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}</li> - <li> - <a class="radius" href="{{.RepoLink}}/commits/{{.BranchName}}"><i class="octicon octicon-history"></i>Commits <span class="num right label label-gray label-radius">{{.CommitsCount}}</span></a> - </li> - <li> - <a class="radius" href="{{.RepoLink}}/branches"><i class="octicon octicon-git-branch"></i>Branches<span class="num right label label-gray label-radius">{{.BrancheCount}}</span></a> - </li> - <li> - <a class="radius" href="{{.RepoLink}}/releases"><i class="octicon octicon-tag"></i>Releases <span class="num right label label-gray label-radius">{{.Repository.NumTags}}</span></a> - </li> - <li> - <a class="radius" href="#"><i class="octicon octicon-organization"></i>contributors <span class="num right label label-gray label-radius">43</span></a> - </li> - <li class="border-bottom"></li> - <li> - <a class="radius" href="{{.RepoLink}}/settings"><i class="octicon octicon-tools"></i>settings</a> - </li> - </ul> - </div> + {{template "repo/sidebar" .}} </div> </div> {{template "ng/base/footer" .}}
\ No newline at end of file |