# HG changeset patch # User Marcin Kuzminski # Date 2016-07-21 09:58:21 # Node ID 3d63a95d205c3436d5d9fd8d4f633b4240f2df04 # Parent 61564d6eab75a4e11f7091c7544ce9cb5641e682 summary/changelog: unified how data is displayed for summary and changelog pages. - use consistent order of columns - fix the link to commit status - fix order of displaying comments Fixes #4111 diff --git a/rhodecode/templates/changelog/changelog.html b/rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html +++ b/rhodecode/templates/changelog/changelog.html @@ -97,14 +97,18 @@
- + ## checkbox - - + + + + ## commit message expand arrow - - + + + + @@ -128,26 +132,17 @@ %endif + %else: +
%endif - - - - - - + + - +
${_('Author')}${_('Age')}${_('Commit')} ${_('Commit Message')}${_('Commit')}${_('Age')}${_('Author')}${_('Refs')}
- ${self.gravatar_with_user(commit.author)} - - ${h.age_component(commit.date)} + + %if c.comments.get(commit.raw_id): + + ${len(c.comments[commit.raw_id])} + + %endif -
-   -
-
-
-
${h.urlify_commit_message(commit.message, c.repo_name)}
-
-
@@ -155,13 +150,22 @@ +
+   +
+
+
+
${h.urlify_commit_message(commit.message, c.repo_name)}
+
+
- %if c.comments.get(commit.raw_id): - - ${len(c.comments[commit.raw_id])} - - %endif + + ${h.age_component(commit.date)} + + ${self.gravatar_with_user(commit.author)} diff --git a/rhodecode/templates/changelog/changelog_summary_data.html b/rhodecode/templates/changelog/changelog_summary_data.html --- a/rhodecode/templates/changelog/changelog_summary_data.html +++ b/rhodecode/templates/changelog/changelog_summary_data.html @@ -3,8 +3,9 @@ %if c.repo_commits: + + - @@ -12,39 +13,45 @@ %for cnt,cs in enumerate(c.repo_commits): + + + - - + - +
${_('Commit')} ${_('Commit message')} ${_('Age')} ${_('Author')}
+ %if c.statuses.get(cs.raw_id): +
+ %if c.statuses.get(cs.raw_id)[2]: + +
+
+ %else: + +
+
+ %endif +
+ %else: +
+ %endif +
+ %if c.comments.get(cs.raw_id,[]): + + ${len(c.comments[cs.raw_id])} + + %endif +
${h.show_id(cs)}
- %if c.statuses.get(cs.raw_id): -
- %if c.statuses.get(cs.raw_id)[2]: - -
-
- %else: -
- %endif -
- %endif -
- %if c.comments.get(cs.raw_id,[]): - - ${len(c.comments[cs.raw_id])} - - %endif - ${h.urlify_commit_message(h.truncate(cs.message, 50), c.repo_name)} ${h.age_component(cs.date)} ${base.gravatar_with_user(cs.author)}
%if h.is_hg(c.rhodecode_repo):