##// END OF EJS Templates
ui: optimized changelog view with phases, and made display of comments similar like in summary page.
marcink -
r3641:a4f7a8db new-ui
parent child Browse files
Show More
@@ -110,11 +110,10 b''
110 110 <tr>
111 111 ## checkbox
112 112 <th></th>
113 <th colspan="2"></th>
113 <th></th>
114 114
115 115 <th>${_('Commit')}</th>
116 ## Mercurial phase/evolve state
117 <th></th>
116
118 117 ## commit message expand arrow
119 118 <th></th>
120 119 <th>${_('Commit Message')}</th>
@@ -123,6 +122,8 b''
123 122 <th>${_('Author')}</th>
124 123
125 124 <th>${_('Refs')}</th>
125 ## comments
126 <th></th>
126 127 </tr>
127 128
128 129 <tbody class="commits-range">
@@ -23,8 +23,8 b''
23 23 <td class="td-checkbox">
24 24 ${h.checkbox(commit.raw_id,class_="commit-range")}
25 25 </td>
26
26 27 <td class="td-status">
27
28 28 %if c.statuses.get(commit.raw_id):
29 29 <div class="changeset-status-ico">
30 30 %if c.statuses.get(commit.raw_id)[2]:
@@ -41,44 +41,38 b''
41 41 <div class="tooltip flag_status not_reviewed" title="${_('Commit status: Not Reviewed')}"></div>
42 42 %endif
43 43 </td>
44 <td class="td-comments comments-col">
45 %if c.comments.get(commit.raw_id):
46 <a title="${_('Commit has comments')}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=commit.raw_id,_anchor='comment-%s' % c.comments[commit.raw_id][0].comment_id)}">
47 <i class="icon-comment"></i> ${len(c.comments[commit.raw_id])}
48 </a>
49 %endif
50 </td>
44
51 45 <td class="td-hash">
52 46 <code>
53 47
54 48 <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=commit.raw_id)}">
55 49 <span class="${'commit_hash obsolete' if getattr(commit, 'obsolete', None) else 'commit_hash'}">${h.show_id(commit)}</span>
56 50 </a>
51
57 52 <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${commit.raw_id}" title="${_('Copy the full commit id')}"></i>
58 </code>
59 </td>
60 <td class="td-tags tags-col">
61 ## phase
53
54 ## COMMIT PHASES
55
56 ## Draft
62 57 % if hasattr(commit, 'phase'):
63 58 % if commit.phase != 'public':
64 <span class="tag phase-${commit.phase} tooltip" title="${_('Commit phase')}">${commit.phase}</span>
59 <span class="tag phase-${commit.phase} tooltip" title="${_('{} commit phase').format(commit.phase)}">${commit.phase[0].upper()}</span>
65 60 % endif
66 61 % endif
67 62
68 63 ## obsolete commits
69 % if hasattr(commit, 'obsolete'):
70 % if commit.obsolete:
71 <span class="tag obsolete-${commit.obsolete} tooltip" title="${_('Evolve State')}">${_('obsolete')}</span>
72 % endif
64 % if hasattr(commit, 'obsolete') and commit.obsolete:
65 <span class="tag obsolete-${commit.obsolete} tooltip" title="${_('Obsolete Evolve State')}">O</span>
73 66 % endif
74 67
75 68 ## hidden commits
76 % if hasattr(commit, 'hidden'):
77 % if commit.hidden:
78 <span class="tag obsolete-${commit.hidden} tooltip" title="${_('Evolve State')}">${_('hidden')}</span>
79 % endif
69 % if hasattr(commit, 'hidden') and commit.hidden:
70 <span class="tag obsolete-${commit.hidden} tooltip" title="${_('Hidden Evolve State')}">H</span>
80 71 % endif
72
73 </code>
81 74 </td>
75
82 76 <td class="td-message expand_commit" data-commit-id="${commit.raw_id}" title="${_('Expand commit message')}" onclick="commitsController.expandCommit(this, true); return false">
83 77 <i class="icon-expand-linked"></i>&nbsp;
84 78 </td>
@@ -130,6 +124,18 b''
130 124
131 125 </div>
132 126 </td>
127
128 <td class="td-comments comments-col">
129 <% cs_comments = c.comments.get(commit.raw_id,[]) %>
130 % if cs_comments:
131 <a title="${_('Commit has comments')}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=commit.raw_id,_anchor='comment-%s' % cs_comments[0].comment_id)}">
132 <i class="icon-comment"></i> ${len(cs_comments)}
133 </a>
134 % else:
135 <i class="icon-comment"></i> ${len(cs_comments)}
136 % endif
137 </td>
138
133 139 </tr>
134 140 % endfor
135 141
General Comments 0
You need to be logged in to leave comments. Login now