# HG changeset patch # User Marcin Kuzminski # Date 2019-04-23 09:09:13 # Node ID a4f7a8dbfb686e302face4bdf40109aecfc40d16 # Parent 1403c308ece5133c8a9c7015feef8d6e94581dc4 ui: optimized changelog view with phases, and made display of comments similar like in summary page. diff --git a/rhodecode/templates/changelog/changelog.mako b/rhodecode/templates/changelog/changelog.mako --- a/rhodecode/templates/changelog/changelog.mako +++ b/rhodecode/templates/changelog/changelog.mako @@ -110,11 +110,10 @@ ## checkbox - + ${_('Commit')} - ## Mercurial phase/evolve state - + ## commit message expand arrow ${_('Commit Message')} @@ -123,6 +122,8 @@ ${_('Author')} ${_('Refs')} + ## comments + diff --git a/rhodecode/templates/changelog/changelog_elements.mako b/rhodecode/templates/changelog/changelog_elements.mako --- a/rhodecode/templates/changelog/changelog_elements.mako +++ b/rhodecode/templates/changelog/changelog_elements.mako @@ -23,8 +23,8 @@ ${h.checkbox(commit.raw_id,class_="commit-range")} + - %if c.statuses.get(commit.raw_id):
%if c.statuses.get(commit.raw_id)[2]: @@ -41,44 +41,38 @@
%endif - - %if c.comments.get(commit.raw_id): - - ${len(c.comments[commit.raw_id])} - - %endif - + ${h.show_id(commit)} + - - - - ## phase + + ## COMMIT PHASES + + ## Draft % if hasattr(commit, 'phase'): % if commit.phase != 'public': - ${commit.phase} + ${commit.phase[0].upper()} % endif % endif ## obsolete commits - % if hasattr(commit, 'obsolete'): - % if commit.obsolete: - ${_('obsolete')} - % endif + % if hasattr(commit, 'obsolete') and commit.obsolete: + O % endif ## hidden commits - % if hasattr(commit, 'hidden'): - % if commit.hidden: - ${_('hidden')} - % endif + % if hasattr(commit, 'hidden') and commit.hidden: + H % endif + + +   @@ -130,6 +124,18 @@
+ + + <% cs_comments = c.comments.get(commit.raw_id,[]) %> + % if cs_comments: + + ${len(cs_comments)} + + % else: + ${len(cs_comments)} + % endif + + % endfor