summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorevolvedlight <steve@evolvedlight.co.uk>2014-10-04 18:19:14 +0100
committerevolvedlight <steve@evolvedlight.co.uk>2014-10-04 18:19:14 +0100
commitc9e5e38fcfa759a1d2578d1c7a56ac0e65e2bf78 (patch)
tree3d31683afb2f11d7108f3ccf0f35950f62dbf6a2 /templates
parent405ee14711ab946bd709ec28a526890c40cbc03b (diff)
downloadgitea-c9e5e38fcfa759a1d2578d1c7a56ac0e65e2bf78.tar.gz
gitea-c9e5e38fcfa759a1d2578d1c7a56ac0e65e2bf78.zip
Initial cut of git fork
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff.tmpl2
-rw-r--r--templates/repo/header.tmpl4
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index 8e5efd146f..fa97073c6e 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -96,6 +96,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">
@@ -104,6 +105,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..f0ebae5e6d 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -44,14 +44,14 @@
</button>
</a>
</li>
- <!-- <li id="repo-header-fork">
+ <li id="repo-header-fork">
<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>{{.i18n.Tr "repo.fork"}}
<span class="num">{{.Repository.NumForks}}</span>
</button>
</a>
- </li> -->
+ </li>
</ul>
</div>
</div> \ No newline at end of file