Mercurial > kallithea
changeset 3765:5a8918aba869 beta
show comments in summary changelog overview
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 16 Apr 2013 00:59:14 +0200 |
parents | c7970889c5c0 |
children | 848492e2aafa |
files | rhodecode/public/css/style.css rhodecode/templates/changelog/changelog.html rhodecode/templates/changelog/changelog_summary_data.html |
diffstat | 3 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Tue Apr 16 00:44:48 2013 +0200 +++ b/rhodecode/public/css/style.css Tue Apr 16 00:59:14 2013 +0200 @@ -2590,6 +2590,7 @@ } #graph_content .comments-container, +#shortlog_data .comments-container, #graph_content .logtags { display: block; float: left; @@ -2688,7 +2689,13 @@ padding: 5px 0; } -#graph_content .comments-cnt a { +#shortlog_data .comments-cnt { + color: rgb(136, 136, 136); + padding: 3px 0; +} + +#graph_content .comments-cnt a, +#shortlog_data .comments-cnt a { background-image: url('../images/icons/comments.png'); background-repeat: no-repeat; background-position: 100% 50%;
--- a/rhodecode/templates/changelog/changelog.html Tue Apr 16 00:44:48 2013 +0200 +++ b/rhodecode/templates/changelog/changelog.html Tue Apr 16 00:59:14 2013 +0200 @@ -101,7 +101,7 @@ <div class="message">${h.urlify_commit(cs.message, c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div> <div class="expand"><span class="expandtext">↓ ${_('Show more')} ↓</span></div> <div class="extra-container"> - %if c.comments.get(cs.raw_id,[]): + %if c.comments.get(cs.raw_id): <div class="comments-container"> <div class="comments-cnt" title="${('comments')}"> <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
--- a/rhodecode/templates/changelog/changelog_summary_data.html Tue Apr 16 00:44:48 2013 +0200 +++ b/rhodecode/templates/changelog/changelog_summary_data.html Tue Apr 16 00:59:14 2013 +0200 @@ -13,6 +13,15 @@ <td> <div> <div class="changeset-status-container"> + %if c.comments.get(cs.raw_id,[]): + <div class="comments-container"> + <div class="comments-cnt" title="${('comments')}"> + <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}"> + ${len(c.comments[cs.raw_id])} + </a> + </div> + </div> + %endif %if c.statuses.get(cs.raw_id): <div class="changeset-status-ico"> %if c.statuses.get(cs.raw_id)[2]: