diff options
author | slene <vslene@gmail.com> | 2014-03-30 13:30:17 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-30 13:30:17 +0800 |
commit | d6c9e3413a982fd64a74e774d4a2b8157f39f299 (patch) | |
tree | 60ec4e94acdb6925c612deb49871f57c75b64584 /templates | |
parent | e2f63d81d3528c191e85fe228a37b5f0d58a405f (diff) | |
download | gitea-d6c9e3413a982fd64a74e774d4a2b8157f39f299.tar.gz gitea-d6c9e3413a982fd64a74e774d4a2b8157f39f299.zip |
fix display bare repo
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/single_bare.tmpl | 13 | ||||
-rw-r--r-- | templates/repo/toolbar.tmpl | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/templates/repo/single_bare.tmpl b/templates/repo/single_bare.tmpl index fe0e3aa355..035e78e8b0 100644 --- a/templates/repo/single_bare.tmpl +++ b/templates/repo/single_bare.tmpl @@ -1,6 +1,7 @@ {{template "base/head" .}} {{template "base/navbar" .}} {{template "repo/nav" .}} +{{template "repo/toolbar" .}} <div id="body" class="container"> <div id="source"> <div class="panel panel-default guide-box clone-group-btn"> @@ -23,15 +24,15 @@ <hr/> <h3>Create a new repository on the command line</h3> <pre class="text-left"><code>touch README.md - git init - git add README.md - git commit -m "first commit" - git remote add origin <span class="clone-url"></span> - git push -u origin master</code></pre> +git init +git add README.md +git commit -m "first commit" +git remote add origin <span class="clone-url"></span> +git push -u origin master</code></pre> <hr/> <h3>Push an existing repository from the command line</h3> <pre class="text-left"><code>git remote add origin <span class="clone-url"></span> - git push -u origin master</code></pre> +git push -u origin master</code></pre> </div> </div> </div> diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl index 3c7c8a50e1..542f8fd860 100644 --- a/templates/repo/toolbar.tmpl +++ b/templates/repo/toolbar.tmpl @@ -3,7 +3,7 @@ <nav class="navbar navbar-toolbar navbar-default" role="navigation"> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> - <li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="{{.RepoLink}}{{if ne .BranchName `master`}}/src/{{.BranchName}}{{end}}">Source</a></li> + <li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="{{.RepoLink}}{{if .BranchName}}{{if ne .BranchName `master`}}/src/{{.BranchName}}{{end}}{{end}}">Source</a></li> {{if not .IsBareRepo}} <li class="{{if .IsRepoToolbarCommits}}active{{end}}"><a href="{{.RepoLink}}/commits/{{.BranchName}}">Commits</a></li> <!-- <li class="{{if .IsRepoToolbarBranches}}active{{end}}"><a href="{{.RepoLink}}/branches">Branches</a></li> --> |