summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-10-18 23:59:36 -0400
committer无闻 <joe2010xtmf@163.com>2014-10-18 23:59:36 -0400
commitd7d167ac63e0ada717f78383016f5b208a1b209a (patch)
treeb341240313a833311299ccd1594f3b92a4d44c1e /templates
parent146c8efee3d01e220aa8f8554b69b6f76a0820e4 (diff)
parent8d2a6fc484b540819e211d52b8d54e97269f0918 (diff)
downloadgitea-d7d167ac63e0ada717f78383016f5b208a1b209a.tar.gz
gitea-d7d167ac63e0ada717f78383016f5b208a1b209a.zip
Merge pull request #560 from evolvedlight/master
First cut of fork repo
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff.tmpl2
-rw-r--r--templates/repo/header.tmpl7
2 files changed, 6 insertions, 3 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index 0376664669..199324a163 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -101,6 +101,7 @@
<table>
<tbody>
{{range .Sections}}
+ Test: {{ .NumLines}}
{{range .Lines}}
<tr class="{{DiffLineTypeToStr .Type}}-code nl-1 ol-1">
<td class="lines-num lines-num-old">
@@ -109,6 +110,7 @@
<td class="lines-num lines-num-new">
<span rel="L1">{{if .RightIdx}}{{.RightIdx}}{{end}}</span>
</td>
+
<td class="lines-code">
<pre>{{ToUtf8 .Content}}</pre>
</td>
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 699e90461e..884910d1c5 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -44,14 +44,15 @@
</button>
</a>
</li>
- <!-- <li id="repo-header-fork">
- <a id="repo-header-fork-btn" href="{{.RepoLink}}/action/fork">
+ <li id="repo-header-fork">
+ <a id="repo-header-fork-btn" {{if not .IsRepositoryOwner}} href="{{.RepoLink}}/action/fork"{{end}}>
<button class="btn btn-gray text-bold btn-radius">
<i class="octicon octicon-repo-forked"></i>{{.i18n.Tr "repo.fork"}}
<span class="num">{{.Repository.NumForks}}</span>
</button>
</a>
- </li> -->
+
+ </li>
</ul>
</div>
</div> \ No newline at end of file