comparison pylons_app/templates/index.html @ 260:6ada8c223374

made global funcion to clean repo names, and remove all special chars from the name. Switched message slug into webhelpers function
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 06 Jun 2010 21:54:54 +0200
parents dee1913f7f5a
children bd70107ef256
comparison
equal deleted inserted replaced
259:dee1913f7f5a 260:6ada8c223374
35 <td></td> 35 <td></td>
36 </tr> 36 </tr>
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 title="${repo['description']}">${self.message_slug(repo['description'])}</td> 40 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</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>
44 44
45 ##%for archive in repo['repo_archives']: 45 ##%for archive in repo['repo_archives']: