diff options
Diffstat (limited to 'templates')
-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> |