diff options
author | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-22 14:23:36 +0800 |
---|---|---|
committer | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-22 14:23:36 +0800 |
commit | 7df60af60ed6d9606c5894c6512522dc91d0c247 (patch) | |
tree | 7d86223b4204d042b96cc31d71a3435860377581 /templates/repo/view_list.tmpl | |
parent | 79ec08141af6f156597064f5fcafc4d0af2e1a05 (diff) | |
download | gitea-7df60af60ed6d9606c5894c6512522dc91d0c247.tar.gz gitea-7df60af60ed6d9606c5894c6512522dc91d0c247.zip |
submodule support and closed #478
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index e8628306c9..41f7daf28d 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -32,12 +32,8 @@ <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> + <a href="{{$commit.RefUrl}}" class="text-truncate">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</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> @@ -45,11 +41,11 @@ <td class="name"> <a href="{{$.BranchLink}}/{{$.TreePath}}{{$entry.Name}}" class="text-truncate">{{$entry.Name}}</a> </td> + {{end}} <td class="msg"> <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> |