summaryrefslogtreecommitdiffstats
path: root/templates/repo/single.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-17 14:11:46 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-17 14:11:46 -0400
commitf31151e681384be2412c01d3baa53e471212e8dd (patch)
treefcd5847aaf795f72a1cb3bbac058bf009bb487f1 /templates/repo/single.tmpl
parente51afe4621cfbc8380994c818981f42a097e3ec5 (diff)
downloadgitea-f31151e681384be2412c01d3baa53e471212e8dd.tar.gz
gitea-f31151e681384be2412c01d3baa53e471212e8dd.zip
Add commit link for file list
Diffstat (limited to 'templates/repo/single.tmpl')
-rw-r--r--templates/repo/single.tmpl22
1 files changed, 9 insertions, 13 deletions
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl
index 561deb253f..cbc82e51c1 100644
--- a/templates/repo/single.tmpl
+++ b/templates/repo/single.tmpl
@@ -60,23 +60,19 @@
<i class="fa {{if .IsDir}}fa-folder{{else}}fa-file-text-o{{end}}"></i>
</td>
<td class="name">
- <span class="wrap">
- {{if .IsDir}}
- <a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
- {{else}}
- <a href="/{{$username}}/{{$reponame}}/blob/{{$branchname}}/{{.Name}}">{{.Name}}</a>
- {{end}}
- </span>
+ <span class="wrap">
+ {{if .IsDir}}
+ <a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
+ {{else}}
+ <a href="/{{$username}}/{{$reponame}}/blob/{{$branchname}}/{{.Name}}">{{.Name}}</a>
+ {{end}}
+ </span>
</td>
<td class="text">
- <span class="wrap">
- {{.Message}}
- </span>
+ <span class="wrap"><a href="/{{$username}}/{{$reponame}}/commit/{{.LastCommit}}">{{.Message}}</a></span>
</td>
<td class="date">
- <span class="wrap">
- {{TimeSince .Created}}
- </span>
+ <span class="wrap">{{TimeSince .Created}}</span>
</td>
</tr>
{{end}}