diff --git a/kallithea/templates/changelog/changelog.html b/kallithea/templates/changelog/changelog.html --- a/kallithea/templates/changelog/changelog.html +++ b/kallithea/templates/changelog/changelog.html @@ -2,6 +2,8 @@ <%inherit file="/base/base.html"/> +<%namespace name="changelog_table" file="changelog_table.html"/> + <%block name="title"> ${_('%s Changelog') % c.repo_name} %if c.changelog_for_path: @@ -67,114 +69,13 @@ ${self.repo_context_bar('changelog', c.f
| - ${h.checkbox(cs.raw_id,class_="changeset_range")} - | - %endif -- %if c.cs_statuses.get(cs.raw_id): - %if c.cs_statuses.get(cs.raw_id)[2]: - - - - %else: - - - - %endif - %endif - | -- ${h.gravatar(h.email_or_none(cs.author), size=16)} - ${h.person(cs.author)} - | -- ${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id), class_='changeset_hash')} - | -
- ${h.age(cs.date,True)}
- |
- <% message_lines = cs.message.splitlines() %>
- %if len(message_lines) > 1:
- - - | - %else: -- %endif - |
-
-
-
-
- %if c.cs_comments.get(cs.raw_id):
-
- ${len(c.cs_comments[cs.raw_id])}
-
-
- %endif
- %if cs.bumped:
-
- Bumped
-
- %endif
- %if cs.divergent:
-
- Divergent
-
- %endif
- %if cs.extinct:
-
- Extinct
-
- %endif
- %if cs.unstable:
-
- Unstable
-
- %endif
- %if cs.phase:
-
- ${cs.phase}
-
- %endif
- %for book in cs.bookmarks:
-
- ${h.link_to(book,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
-
- %endfor
- %for tag in cs.tags:
-
- ${h.link_to(tag,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
-
- %endfor
- %if (not c.branch_name) and cs.branch:
-
- ${h.link_to(cs.branch,h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch))}
-
- %endif
-
- |
-
| + ${h.checkbox(cs.raw_id,class_="changeset_range")} + | + %endif ++ %if cs_statuses.get(cs.raw_id): + %if cs_statuses.get(cs.raw_id)[2]: + + + + %else: + + + + %endif + %endif + | ++ ${h.gravatar(h.email_or_none(cs.author), size=16)} + ${h.person(cs.author)} + | ++ ${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=repo_name,revision=cs.raw_id), class_='changeset_hash')} + | +
+ ${h.age(cs.date,True)}
+ |
+ <% message_lines = cs.message.splitlines() %>
+ %if len(message_lines) > 1:
+ + + | + %else: ++ %endif + |
+
+
+
+
+ %if cs_comments.get(cs.raw_id):
+
+ ${len(cs_comments[cs.raw_id])}
+
+
+ %endif
+ %if cs.bumped:
+
+ Bumped
+
+ %endif
+ %if cs.divergent:
+
+ Divergent
+
+ %endif
+ %if cs.extinct:
+
+ Extinct
+
+ %endif
+ %if cs.unstable:
+
+ Unstable
+
+ %endif
+ %if cs.phase:
+
+ ${cs.phase}
+
+ %endif
+ %for book in cs.bookmarks:
+
+ ${h.link_to(book,h.url('changeset_home',repo_name=repo_name,revision=cs.raw_id))}
+
+ %endfor
+ %for tag in cs.tags:
+
+ ${h.link_to(tag,h.url('changeset_home',repo_name=repo_name,revision=cs.raw_id))}
+
+ %endfor
+ %if show_branch and cs.branch:
+
+ ${h.link_to(cs.branch,h.url('changelog_home',repo_name=repo_name,branch=cs.branch))}
+
+ %endif
+
+ |
+