diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-04-27 00:56:06 -0600 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-04-27 00:56:06 -0600 |
commit | 9fdf4bc2776f07774f6303536400858aa0bcb8aa (patch) | |
tree | 9f54c4603bc1e2a054a34f0557a3b2d5be024b3f /templates/repo | |
parent | 59d0e73c3507296b31c8e741b44afc7bfe1eb695 (diff) | |
parent | 8a8f84d245ed7b5cd007b43747098663019654c7 (diff) | |
download | gitea-9fdf4bc2776f07774f6303536400858aa0bcb8aa.tar.gz gitea-9fdf4bc2776f07774f6303536400858aa0bcb8aa.zip |
Merge pull request #134 from clee/master
Use commit summaries instead of full messages
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/commits.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/single_list.tmpl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index b14c6bc8c6..cf665b6b70 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -33,7 +33,7 @@ <tr> <td class="author"><img class="avatar" src="{{AvatarLink .Author.Email}}" alt=""/><a href="/user/email2user?email={{.Author.Email}}">{{.Author.Name}}</a></td> <td class="sha"><a rel="nofollow" class="label label-success" href="/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 10}} </a></td> - <td class="message">{{.Message}} </td> + <td class="message">{{.Summary}} </td> <td class="date">{{TimeSince .Author.When}}</td> </tr> {{end}} diff --git a/templates/repo/single_list.tmpl b/templates/repo/single_list.tmpl index 7b6c6e5e9c..9c157d1b19 100644 --- a/templates/repo/single_list.tmpl +++ b/templates/repo/single_list.tmpl @@ -1,6 +1,6 @@ <div class="panel panel-default info-box"> <div class="panel-heading info-head"> - <a href="/{{.Username}}/{{.Reponame}}/commit/{{.LastCommit.Id}}">{{.LastCommit.Message}}</a> + <a href="/{{.Username}}/{{.Reponame}}/commit/{{.LastCommit.Id}}">{{.LastCommit.Summary}}</a> </div> <div class="panel-body info-content"> <a href="/user/{{.LastCommit.Author.Name}}">{{.LastCommit.Author.Name}}</a> <span class="text-muted">{{TimeSince .LastCommit.Author.When}}</span> @@ -36,7 +36,7 @@ </span> </td> <td class="text"> - <span class="wrap"><a rel="nofollow" href="/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Message}}</a></span> + <span class="wrap"><a rel="nofollow" href="/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Summary}}</a></span> </td> <td class="date"> <span class="wrap">{{TimeSince $commit.Committer.When}}</span> |