##// END OF EJS Templates
changelog: fixed accidentally added space in graph
marcink -
r3967:c40bdc08 default
parent child Browse files
Show More
@@ -1,159 +1,159 b''
1 1 ## small box that displays changed/added/removed details fetched by AJAX
2 2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 % if c.prev_page:
5 5 <tr>
6 6 <td colspan="10" class="load-more-commits">
7 7 <a class="prev-commits" href="#loadPrevCommits" onclick="commitsController.loadPrev(this, ${c.prev_page}, '${c.branch_name}', '${c.commit_id}', '${c.f_path}');return false">
8 8 ${_('load previous')}
9 9 </a>
10 10 </td>
11 11 </tr>
12 12 % endif
13 13
14 14 ## to speed up lookups cache some functions before the loop
15 15 <%
16 16 active_patterns = h.get_active_pattern_entries(c.repo_name)
17 17 urlify_commit_message = h.partial(h.urlify_commit_message, active_pattern_entries=active_patterns)
18 18 %>
19 19
20 20 % for cnt,commit in enumerate(c.pagination):
21 21 <tr id="sha_${commit.raw_id}" class="changelogRow container ${'tablerow%s' % (cnt%2)}">
22 22
23 23 <td class="td-checkbox">
24 24 ${h.checkbox(commit.raw_id,class_="commit-range", **{'data-commit-idx':commit.idx, 'data-commit-id': commit.raw_id, 'data-short-id': commit.short_id})}
25 25 </td>
26 26 ##
27 27 <td class="td-graphbox">
28 28
29 29 </td>
30 30
31 31 <td class="td-status">
32 32 %if c.statuses.get(commit.raw_id):
33 33 <div class="changeset-status-ico">
34 34 %if c.statuses.get(commit.raw_id)[2]:
35 35 <a class="tooltip" title="${_('Commit status: %s\nClick to open associated pull request #%s') % (h.commit_status_lbl(c.statuses.get(commit.raw_id)[0]), c.statuses.get(commit.raw_id)[2])}" href="${h.route_path('pullrequest_show',repo_name=c.statuses.get(commit.raw_id)[3],pull_request_id=c.statuses.get(commit.raw_id)[2])}">
36 36 <i class="icon-circle review-status-${c.statuses.get(commit.raw_id)[0]}"></i>
37 37 </a>
38 38 %else:
39 39 <a class="tooltip" title="${_('Commit status: {}').format(h.commit_status_lbl(c.statuses.get(commit.raw_id)[0]))}" 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)}">
40 40 <i class="icon-circle review-status-${c.statuses.get(commit.raw_id)[0]}"></i>
41 41 </a>
42 42 %endif
43 43 </div>
44 44 %else:
45 45 <i class="icon-circle review-status-not_reviewed" title="${_('Commit status: Not Reviewed')}"></i>
46 46 %endif
47 47 </td>
48 48
49 49 <td class="td-hash">
50 50 <code>
51 51
52 52 <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=commit.raw_id)}">
53 53 <span class="${'commit_hash obsolete' if getattr(commit, 'obsolete', None) else 'commit_hash'}">${h.show_id(commit)}</span>
54 54 </a>
55 55
56 56 <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${commit.raw_id}" title="${_('Copy the full commit id')}"></i>
57 57
58 58 ## COMMIT PHASES
59 59
60 60 ## Draft
61 61 % if hasattr(commit, 'phase'):
62 62 % if commit.phase != 'public':
63 63 <span class="tag phase-${commit.phase} tooltip" title="${_('{} commit phase').format(commit.phase)}">${commit.phase[0].upper()}</span>
64 64 % endif
65 65 % endif
66 66
67 67 ## obsolete commits
68 68 % if hasattr(commit, 'obsolete') and commit.obsolete:
69 69 <span class="tag obsolete-${commit.obsolete} tooltip" title="${_('Obsolete Evolve State')}">O</span>
70 70 % endif
71 71
72 72 ## hidden commits
73 73 % if hasattr(commit, 'hidden') and commit.hidden:
74 74 <span class="tag obsolete-${commit.hidden} tooltip" title="${_('Hidden Evolve State')}">H</span>
75 75 % endif
76 76
77 77 </code>
78 78 </td>
79 79
80 80 <td class="td-message expand_commit" data-commit-id="${commit.raw_id}" title="${_('Expand commit message')}" onclick="commitsController.expandCommit(this, true); return false">
81 <i class="icon-expand-linked"></i>&nbsp;
81 <i class="icon-expand-linked"></i>
82 82 </td>
83 83 <td class="td-description mid">
84 84 <div class="log-container truncate-wrap">
85 85 <div class="message truncate" id="c-${commit.raw_id}" data-message-raw="${commit.message}">${urlify_commit_message(commit.message, c.repo_name)}</div>
86 86 </div>
87 87 </td>
88 88
89 89 <td class="td-time">
90 90 ${h.age_component(commit.date)}
91 91 </td>
92 92 <td class="td-user">
93 93 ${base.gravatar_with_user(commit.author)}
94 94 </td>
95 95
96 96 <td class="td-tags tags-col">
97 97 <div id="t-${commit.raw_id}">
98 98
99 99 ## merge
100 100 %if commit.merge:
101 101 <span class="tag mergetag">
102 102 <i class="icon-merge"></i>${_('merge')}
103 103 </span>
104 104 %endif
105 105
106 106 ## branch
107 107 %if commit.branch:
108 108 <span class="tag branchtag" title="${h.tooltip(_('Branch %s') % commit.branch)}">
109 109 <a href="${h.route_path('repo_commits',repo_name=c.repo_name,_query=dict(branch=commit.branch))}"><i class="icon-code-fork"></i>${h.shorter(commit.branch)}</a>
110 110 </span>
111 111 %endif
112 112
113 113 ## bookmarks
114 114 %if h.is_hg(c.rhodecode_repo):
115 115 %for book in commit.bookmarks:
116 116 <span class="tag booktag" title="${h.tooltip(_('Bookmark %s') % book)}">
117 117 <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=commit.raw_id, _query=dict(at=book))}"><i class="icon-bookmark"></i>${h.shorter(book)}</a>
118 118 </span>
119 119 %endfor
120 120 %endif
121 121
122 122 ## tags
123 123 %for tag in commit.tags:
124 124 <span class="tag tagtag" title="${h.tooltip(_('Tag %s') % tag)}">
125 125 <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=commit.raw_id, _query=dict(at=tag))}"><i class="icon-tag"></i>${h.shorter(tag)}</a>
126 126 </span>
127 127 %endfor
128 128
129 129 </div>
130 130 </td>
131 131
132 132 <td class="td-comments comments-col">
133 133 <% cs_comments = c.comments.get(commit.raw_id,[]) %>
134 134 % if cs_comments:
135 135 <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)}">
136 136 <i class="icon-comment"></i> ${len(cs_comments)}
137 137 </a>
138 138 % else:
139 139 <i class="icon-comment"></i> ${len(cs_comments)}
140 140 % endif
141 141 </td>
142 142
143 143 </tr>
144 144 % endfor
145 145
146 146 % if c.next_page:
147 147 <tr>
148 148 <td colspan="10" class="load-more-commits">
149 149 <a class="next-commits" href="#loadNextCommits" onclick="commitsController.loadNext(this, ${c.next_page}, '${c.branch_name}', '${c.commit_id}', '${c.f_path}');return false">
150 150 ${_('load next')}
151 151 </a>
152 152 </td>
153 153 </tr>
154 154 % endif
155 155 <tr class="chunk-graph-data" style="display:none"
156 156 data-graph='${c.graph_data|n}'
157 157 data-node='${c.prev_page}:${c.next_page}'
158 158 data-commits='${c.graph_commits|n}'>
159 159 </tr> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now