Show More
@@ -151,4 +151,15 b' def is_current(selected):' | |||||
151 | </span> |
|
151 | </span> | |
152 | %endif |
|
152 | %endif | |
153 | %endif |
|
153 | %endif | |
|
154 | </%def> | |||
|
155 | ||||
|
156 | <!-- SHORTER LONGER STRINGS --> | |||
|
157 | <%def name="message_slug(msg)"> | |||
|
158 | <% | |||
|
159 | limit = 60 | |||
|
160 | if len(msg) > limit: | |||
|
161 | return msg[:limit]+'...' | |||
|
162 | else: | |||
|
163 | return msg | |||
|
164 | %> | |||
154 | </%def> No newline at end of file |
|
165 | </%def> |
@@ -37,7 +37,7 b' from pylons_app.lib import filters' | |||||
37 | %for cnt,repo in enumerate(c.repos_list): |
|
37 | %for cnt,repo in enumerate(c.repos_list): | |
38 | <tr class="parity${cnt%2}"> |
|
38 | <tr class="parity${cnt%2}"> | |
39 | <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> |
|
39 | <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> | |
40 | <td>${repo['description']}</td> |
|
40 | <td title="${repo['description']}">${self.message_slug(repo['description'])}</td> | |
41 | <td>${repo['last_change']|n,filters.age}</td> |
|
41 | <td>${repo['last_change']|n,filters.age}</td> | |
42 | <td>${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']))}</td> |
|
42 | <td>${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']))}</td> | |
43 | <td title="${repo['contact']}">${repo['contact']|n,filters.person}</td> |
|
43 | <td title="${repo['contact']}">${repo['contact']|n,filters.person}</td> |
@@ -3,22 +3,13 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> |
|
|||
15 | %for cnt,cs in enumerate(c.repo_changesets): |
|
6 | %for cnt,cs in enumerate(c.repo_changesets): | |
16 | <tr class="parity${cnt%2}"> |
|
7 | <tr class="parity${cnt%2}"> | |
17 | <td>${cs._ctx.date()|n,filters.age}</td> |
|
8 | <td>${cs._ctx.date()|n,filters.age}</td> | |
18 | <td title="${cs.author}">${cs.author|n,filters.person}</td> |
|
9 | <td title="${cs.author}">${cs.author|n,filters.person}</td> | |
19 | <td>r${cs.revision}</td> |
|
10 | <td>r${cs.revision}</td> | |
20 | <td> |
|
11 | <td> | |
21 | ${h.link_to(message_slug(cs.message), |
|
12 | ${h.link_to(self.message_slug(cs.message), | |
22 | h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), |
|
13 | h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | |
23 | title=cs.message)} |
|
14 | title=cs.message)} | |
24 | </td> |
|
15 | </td> |
General Comments 0
You need to be logged in to leave comments.
Login now