summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo')
-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