diff options
author | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-22 10:43:16 +0800 |
---|---|---|
committer | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-22 10:43:16 +0800 |
commit | 150eef93b2340f665c070158ade1863339829e05 (patch) | |
tree | 6c44b11cfcd4d74cec98c25b734608296020cc75 /templates/repo | |
parent | 7ba9257a7ff659417501baf7358216555cebcd86 (diff) | |
download | gitea-150eef93b2340f665c070158ade1863339829e05.tar.gz gitea-150eef93b2340f665c070158ade1863339829e05.zip |
add submodule basic support & buf fixed #478
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/view_list.tmpl | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index ce46cfb275..e8628306c9 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -27,8 +27,20 @@ {{$entry := index $item 0}} {{$commit := index $item 1}} <tr> - <td class="icon"> - <span class="octicon octicon-file-{{if $entry.IsDir}}directory{{else}}text{{end}}"></span> + {{if $entry.IsSubModule}} + <td class="icon"> + <span class="octicon octicon-file-submodule"></span> + </td> + <td class="name"> + <a href="{{$commit.CommitMessage}}" class="text-truncate">{{$entry.Name}}</a> @ <a href="{{$commit.CommitMessage}}/commit/{{$commit.Id}}">{{ShortSha $commit.Id.String}}</a> + </td> + <td class="msg"> + <a class="text-truncate" href="{{$commit.CommitMessage}}/commit/{{$commit.Id}}" rel="nofollow">{{$commit.Summary}}</a> + </td> + <td class="age">{{TimeSince $commit.Committer.When $.i18n.Lang}}</td> + {{else}} + <td class="icon"> + <span class="octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span> </td> <td class="name"> <a href="{{$.BranchLink}}/{{$.TreePath}}{{$entry.Name}}" class="text-truncate">{{$entry.Name}}</a> @@ -37,6 +49,7 @@ <a class="text-truncate" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}" rel="nofollow">{{$commit.Summary}}</a> </td> <td class="age">{{TimeSince $commit.Committer.When $.i18n.Lang}}</td> + {{end}} </tr> {{end}} </tbody> |