annotate rhodecode/templates/changelog/changelog_summary_data.html @ 3765:5a8918aba869 beta

show comments in summary changelog overview
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 16 Apr 2013 00:59:14 +0200
parents c7970889c5c0
children 458fd829aa20
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3764
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 %if c.repo_changesets:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 <table class="table_disp">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <tr>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 <th class="left">${_('Revision')}</th>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 <th class="left">${_('Commit message')}</th>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 <th class="left">${_('Age')}</th>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 <th class="left">${_('Author')}</th>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 <th class="left">${_('Refs')}</th>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 </tr>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 %for cnt,cs in enumerate(c.repo_changesets):
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 <tr class="parity${cnt%2}">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 <td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 <div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15 <div class="changeset-status-container">
3765
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
16 %if c.comments.get(cs.raw_id,[]):
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
17 <div class="comments-container">
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
18 <div class="comments-cnt" title="${('comments')}">
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
19 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
20 ${len(c.comments[cs.raw_id])}
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
21 </a>
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
22 </div>
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
23 </div>
5a8918aba869 show comments in summary changelog overview
Marcin Kuzminski <marcin@python-works.com>
parents: 3764
diff changeset
24 %endif
3764
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 %if c.statuses.get(cs.raw_id):
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
26 <div class="changeset-status-ico">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
27 %if c.statuses.get(cs.raw_id)[2]:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
28 <a class="tooltip" title="${_('Click to open associated pull request #%s' % c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
29 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 </a>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31 %else:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
32 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
33 %endif
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
34 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
35 %endif
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
36 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
37 <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}">${h.show_id(cs)}</a></pre>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
38 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
39 </td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
40 <td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
41 ${h.urlify_commit(h.truncate(cs.message,50),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
42 </td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
43 <td><span class="tooltip" title="${h.tooltip(h.fmt_date(cs.date))}">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
44 ${h.age(cs.date)}</span>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
45 </td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
46 <td title="${cs.author}">${h.person(cs.author)}</td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
47 <td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
48 %if h.is_hg(c.rhodecode_repo):
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
49 %for book in cs.bookmarks:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
50 <div class="booktag" title="${_('Bookmark %s') % book}">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
51 ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
52 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
53 %endfor
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
54 %endif
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
55 %for tag in cs.tags:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
56 <div class="tagtag" title="${_('Tag %s') % tag}">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
57 ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
58 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
59 %endfor
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
60 %if cs.branch:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
61 <div class="branchtag" title="${_('Branch %s' % cs.branch)}">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
62 ${h.link_to(h.shorter(cs.branch),h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch))}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
63 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
64 %endif
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
65 </td>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
66 </tr>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
67 %endfor
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
68
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
69 </table>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
70
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
71 <script type="text/javascript">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
72 YUE.onDOMReady(function(){
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
73 YUE.delegate("shortlog_data","click",function(e, matchedEl, container){
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
74 ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();});
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
75 YUE.preventDefault(e);
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
76 },'.pager_link');
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
77 });
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
78 </script>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
79
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
80 <div class="pagination-wh pagination-left">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
81 ${c.repo_changesets.pager('$link_previous ~2~ $link_next')}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
82 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
83 %else:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
84
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
85 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
86 <h4>${_('Add or upload files directly via RhodeCode')}</h4>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
87 <div style="margin: 20px 30px;">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
88 <div id="add_node_id" class="add_node">
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
89 <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='')}">${_('Add new file')}</a>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
90 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
91 </div>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
92 %endif
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
93
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
94
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
95 <h4>${_('Push new repo')}</h4>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
96 <pre>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
97 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
98 ${c.rhodecode_repo.alias} add README # add first file
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
99 ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
100 ${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
101 </pre>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
102
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
103 <h4>${_('Existing repository?')}</h4>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
104 <pre>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
105 %if h.is_git(c.rhodecode_repo):
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
106 git remote add origin ${c.clone_repo_url}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
107 git push -u origin master
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
108 %else:
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
109 hg push ${c.clone_repo_url}
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
110 %endif
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
111 </pre>
c7970889c5c0 Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
112 %endif