Mercurial > kallithea
diff pylons_app/templates/repos.html @ 58:8fb1abd4178a
Added hg model,implemented removal of repos, added HgModel for fetching repos(with generator)
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Fri, 09 Apr 2010 03:00:20 +0200 |
parents | 8e250e86a670 |
children | 3ac4350b7848 |
line wrap: on
line diff
--- a/pylons_app/templates/repos.html Fri Apr 09 01:42:48 2010 +0200 +++ b/pylons_app/templates/repos.html Fri Apr 09 03:00:20 2010 +0200 @@ -24,5 +24,18 @@ </ul> <div> <h2>${_('Mercurial repos')}</h2> + <table> + %for cnt,repo in enumerate(c.repos_list): + <tr class="parity${cnt%2}"> + <td><a href="/${repo['name']}">${repo['name']}</a></td> + <td>r${repo['rev']}:${repo['tip']}</td> + <td> + ${h.form(url('repo', id=repo['name']),method='delete')} + ${h.submit('remove','remove',class_="submit",onclick="return confirm('Confirm to delete this repository');")} + ${h.end_form()} + </td> + </tr> + %endfor + </table> </div> </%def> \ No newline at end of file