##// END OF EJS Templates
added message short names for longer descriptions
marcink -
r259:dee1913f default
parent child Browse files
Show More
@@ -151,4 +151,15 b' def is_current(selected):'
151 151 </span>
152 152 %endif
153 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 165 </%def> No newline at end of file
@@ -37,7 +37,7 b' from pylons_app.lib import filters'
37 37 %for cnt,repo in enumerate(c.repos_list):
38 38 <tr class="parity${cnt%2}">
39 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 41 <td>${repo['last_change']|n,filters.age}</td>
42 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 43 <td title="${repo['contact']}">${repo['contact']|n,filters.person}</td>
@@ -3,22 +3,13 b''
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>
15 6 %for cnt,cs in enumerate(c.repo_changesets):
16 7 <tr class="parity${cnt%2}">
17 8 <td>${cs._ctx.date()|n,filters.age}</td>
18 9 <td title="${cs.author}">${cs.author|n,filters.person}</td>
19 10 <td>r${cs.revision}</td>
20 11 <td>
21 ${h.link_to(message_slug(cs.message),
12 ${h.link_to(self.message_slug(cs.message),
22 13 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
23 14 title=cs.message)}
24 15 </td>
General Comments 0
You need to be logged in to leave comments. Login now