Show More
@@ -1,42 +1,56 | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%! |
|
3 | 3 | from pylons_app.lib import filters |
|
4 | 4 | %> |
|
5 | 5 | <table> |
|
6 | <%def name="message_slug(msg)"> | |
|
7 | <% | |
|
8 | limit = 60 | |
|
9 | if len(msg) > limit: | |
|
10 | return msg[:limit]+'...' | |
|
11 | else: | |
|
12 | return msg | |
|
13 | %> | |
|
14 | </%def> | |
|
6 | 15 | %for cnt,cs in enumerate(c.repo_changesets): |
|
7 | 16 | <tr class="parity${cnt%2}"> |
|
8 | 17 | <td>${cs._ctx.date()|n,filters.age}</td> |
|
9 | 18 | <td title="${cs.author}">${cs.author|n,filters.person}</td> |
|
10 | <td>${h.link_to(cs.message,h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} | |
|
19 | <td> | |
|
20 | ${h.link_to(message_slug(cs.message), | |
|
21 | h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | |
|
22 | title=cs.message)} | |
|
23 | </td> | |
|
24 | <td> | |
|
11 | 25 | <span class="logtags"> |
|
12 | 26 | <span class="branchtag">${cs.branch}</span> |
|
13 | 27 | %for tag in cs.tags: |
|
14 | 28 | <span class="tagtag">${tag}</span> |
|
15 | 29 | %endfor |
|
16 | 30 |
</span> |
|
17 | 31 | </td> |
|
18 | 32 | <td class="nowrap"> |
|
19 | 33 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} |
|
20 | 34 | | |
|
21 | 35 | ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))} |
|
22 | 36 | </td> |
|
23 | 37 | </tr> |
|
24 | 38 | %endfor |
|
25 | 39 | |
|
26 | 40 | </table> |
|
27 | 41 | <div> |
|
28 | 42 | <script type="text/javascript"> |
|
29 | 43 | var data_div = 'shortlog_data'; |
|
30 | 44 | YAHOO.util.Event.onDOMReady(function(){ |
|
31 | 45 | YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
|
32 | 46 | YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});}); |
|
33 | 47 | </script> |
|
34 | 48 | <h2> |
|
35 | 49 | ${c.repo_changesets.pager('$link_previous ~2~ $link_next', |
|
36 | 50 | onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ |
|
37 | 51 | success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; |
|
38 | 52 | YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
|
39 | 53 | YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); |
|
40 | 54 | YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} |
|
41 | 55 | </h2> |
|
42 | 56 | </div> No newline at end of file |
@@ -1,115 +1,127 | |||
|
1 | 1 | <%inherit file="/base/base.html"/> |
|
2 | 2 | <%! |
|
3 | 3 | from pylons_app.lib import filters |
|
4 | 4 | %> |
|
5 | 5 | <%def name="title()"> |
|
6 | 6 | ${_('Repository managment')} |
|
7 | 7 | </%def> |
|
8 | 8 | <%def name="breadcrumbs()"> |
|
9 | 9 | ${h.link_to(u'Home',h.url('/'))} |
|
10 | 10 | / |
|
11 | 11 | ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} |
|
12 | 12 | / |
|
13 | 13 | ${_('summary')} |
|
14 | 14 | </%def> |
|
15 | 15 | <%def name="page_nav()"> |
|
16 | 16 | <form action="log"> |
|
17 | 17 | <dl class="search"> |
|
18 | 18 | <dt><label>Search: </label></dt> |
|
19 | 19 | <dd><input type="text" name="rev" /></dd> |
|
20 | 20 | </dl> |
|
21 | 21 | </form> |
|
22 | 22 | |
|
23 | 23 | ${self.menu('summary')} |
|
24 | 24 | </%def> |
|
25 | 25 | <%def name="main()"> |
|
26 | 26 | |
|
27 | 27 | <h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2> |
|
28 | 28 | <dl class="overview"> |
|
29 | 29 | <dt>${_('name')}</dt> |
|
30 | 30 | <dd>${c.repo_info.name}</dd> |
|
31 | 31 | <dt>${_('description')}</dt> |
|
32 | 32 | <dd>${c.repo_info.description}</dd> |
|
33 | 33 | <dt>${_('contact')}</dt> |
|
34 | 34 | <dd>${c.repo_info.contact}</dd> |
|
35 | 35 | <dt>${_('last change')}</dt> |
|
36 | 36 | <dd>${c.repo_info.last_change|n,filters.rfc822date} - ${c.repo_info.last_change|n,filters.age}</dd> |
|
37 | 37 | <dt>${_('url')}</dt> |
|
38 | 38 | <dd><pre>hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd> |
|
39 | 39 | <dt>${_('Download')}</dt> |
|
40 | 40 | <dd> |
|
41 | 41 | %for archive in c.repo_info._get_archives(): |
|
42 | 42 | | <a href="/${c.repo_info.name}/archive/${archive['node']}${archive['extension']}"> |
|
43 | 43 | ${c.repo_info.name}.${archive['type']} |
|
44 | 44 | </a> |
|
45 | 45 | %endfor |
|
46 | 46 | | |
|
47 | 47 | </dd> |
|
48 | 48 | </dl> |
|
49 | 49 | |
|
50 | 50 | <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> |
|
51 | 51 | <table> |
|
52 | <%def name="message_slug(msg)"> | |
|
53 | <% | |
|
54 | limit = 60 | |
|
55 | if len(msg) > limit: | |
|
56 | return msg[:limit]+'...' | |
|
57 | else: | |
|
58 | return msg | |
|
59 | %> | |
|
60 | </%def> | |
|
52 | 61 | %for cnt,cs in enumerate(c.repo_changesets): |
|
53 | 62 | <tr class="parity${cnt%2}"> |
|
54 | 63 | <td>${cs._ctx.date()|n,filters.age}</td> |
|
55 | <td>${cs.author}</td> | |
|
64 | <td>${cs.author|n,filters.person}</td> | |
|
56 | 65 | <td> |
|
57 | ||
|
58 |
|
|
|
66 | ${h.link_to(message_slug(cs.message), | |
|
67 | h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | |
|
68 | title=cs.message)} | |
|
69 | </td> | |
|
70 | <td> | |
|
59 | 71 | <span class="logtags"> |
|
60 | 72 | <span class="branchtag">${cs.branch}</span> |
|
61 | 73 | %for tag in cs.tags: |
|
62 | 74 | <span class="tagtag">${tag}</span> |
|
63 | 75 | %endfor |
|
64 | 76 | </span> |
|
65 | 77 | </td> |
|
66 | 78 | <td class="nowrap"> |
|
67 | 79 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} |
|
68 | 80 | | |
|
69 | 81 | ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))} |
|
70 | 82 | </td> |
|
71 | 83 | </tr> |
|
72 | 84 | %endfor |
|
73 | 85 | </table> |
|
74 | 86 | |
|
75 | 87 | <h2>${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</h2> |
|
76 | 88 | <table> |
|
77 | 89 | %for cnt,tag in enumerate(c.repo_tags): |
|
78 | 90 | <tr class="parity${cnt%2}"> |
|
79 | 91 | <td>${tag._ctx.date()|n,filters.age}</td> |
|
80 | 92 | <td></td> |
|
81 | 93 | <td> |
|
82 | 94 | <span class="logtags"> |
|
83 | 95 | <span class="tagtag">${h.link_to(tag.tags[-1],h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}</span> |
|
84 | 96 | </span> |
|
85 | 97 | </td> |
|
86 | 98 | <td class="nowrap"> |
|
87 | 99 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))} |
|
88 | 100 | | |
|
89 | 101 | ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag._short))} |
|
90 | 102 | </td> |
|
91 | 103 | </tr> |
|
92 | 104 | %endfor |
|
93 | 105 | </table> |
|
94 | 106 | |
|
95 | 107 | <h2>${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</h2> |
|
96 | 108 | <table> |
|
97 | 109 | %for cnt,branch in enumerate(c.repo_branches): |
|
98 | 110 | <tr class="parity${cnt%2}"> |
|
99 | 111 | <td>${branch._ctx.date()|n,filters.age}</td> |
|
100 | 112 | <td></td> |
|
101 | 113 | <td> |
|
102 | 114 | <span class="logtags"> |
|
103 | 115 | <span class="branchtag">${h.link_to(branch.branch,h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}</span> |
|
104 | 116 | </span> |
|
105 | 117 | </td> |
|
106 | 118 | <td class="nowrap"> |
|
107 | 119 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))} |
|
108 | 120 | | |
|
109 | 121 | ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch._short))} |
|
110 | 122 | </td> |
|
111 | 123 | </tr> |
|
112 | 124 | %endfor |
|
113 | 125 | </table> |
|
114 | 126 | |
|
115 | 127 | </%def> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now