Show More
@@ -3,17 +3,31 b'' | |||||
3 | from pylons_app.lib import filters |
|
3 | from pylons_app.lib import filters | |
4 | %> |
|
4 | %> | |
5 | <table> |
|
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 | %for cnt,cs in enumerate(c.repo_changesets): |
|
15 | %for cnt,cs in enumerate(c.repo_changesets): | |
7 | <tr class="parity${cnt%2}"> |
|
16 | <tr class="parity${cnt%2}"> | |
8 | <td>${cs._ctx.date()|n,filters.age}</td> |
|
17 | <td>${cs._ctx.date()|n,filters.age}</td> | |
9 | <td title="${cs.author}">${cs.author|n,filters.person}</td> |
|
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> | |
11 | <span class="logtags"> |
|
20 | ${h.link_to(message_slug(cs.message), | |
12 | <span class="branchtag">${cs.branch}</span> |
|
21 | h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | |
13 | %for tag in cs.tags: |
|
22 | title=cs.message)} | |
14 | <span class="tagtag">${tag}</span> |
|
23 | </td> | |
15 | %endfor |
|
24 | <td> | |
16 | </span> |
|
25 | <span class="logtags"> | |
|
26 | <span class="branchtag">${cs.branch}</span> | |||
|
27 | %for tag in cs.tags: | |||
|
28 | <span class="tagtag">${tag}</span> | |||
|
29 | %endfor | |||
|
30 | </span> | |||
17 | </td> |
|
31 | </td> | |
18 | <td class="nowrap"> |
|
32 | <td class="nowrap"> | |
19 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} |
|
33 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} |
@@ -49,13 +49,25 b' from pylons_app.lib import filters' | |||||
49 |
|
49 | |||
50 | <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> |
|
50 | <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> | |
51 | <table> |
|
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 | %for cnt,cs in enumerate(c.repo_changesets): |
|
61 | %for cnt,cs in enumerate(c.repo_changesets): | |
53 | <tr class="parity${cnt%2}"> |
|
62 | <tr class="parity${cnt%2}"> | |
54 | <td>${cs._ctx.date()|n,filters.age}</td> |
|
63 | <td>${cs._ctx.date()|n,filters.age}</td> | |
55 | <td>${cs.author}</td> |
|
64 | <td>${cs.author|n,filters.person}</td> | |
56 | <td> |
|
65 | <td> | |
57 |
|
66 | ${h.link_to(message_slug(cs.message), | ||
58 |
|
|
67 | h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | |
|
68 | title=cs.message)} | |||
|
69 | </td> | |||
|
70 | <td> | |||
59 | <span class="logtags"> |
|
71 | <span class="logtags"> | |
60 | <span class="branchtag">${cs.branch}</span> |
|
72 | <span class="branchtag">${cs.branch}</span> | |
61 | %for tag in cs.tags: |
|
73 | %for tag in cs.tags: |
General Comments 0
You need to be logged in to leave comments.
Login now