Mercurial > kallithea
comparison rhodecode/templates/admin/repos/repos.html @ 663:6199b34d349b beta
fixed html templates, fixed overal rhodecode width to 1024pixels
various additional to templates. History for annotation, width for my page, repo types for admin panel repositories
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 06 Nov 2010 16:16:44 +0100 |
parents | a1ec653f5f95 |
children | 82aaf4e71817 4fa80e0484ef |
comparison
equal
deleted
inserted
replaced
662:373ee7031003 | 663:6199b34d349b |
---|---|
35 <th class="left">${_('action')}</th> | 35 <th class="left">${_('action')}</th> |
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> | 39 <td> |
40 ## TYPE OF REPO | |
41 %if repo['repo'].dbrepo.repo_type =='hg': | |
42 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="/images/icons/hgicon.png"/> | |
43 %elif repo['repo'].dbrepo.repo_type =='git': | |
44 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="/images/icons/giticon.png"/> | |
45 %else: | |
46 | |
47 %endif | |
48 | |
49 ## PRIVATE/PUBLIC REPO | |
40 %if repo['repo'].dbrepo.private: | 50 %if repo['repo'].dbrepo.private: |
41 <img alt="${_('private')}" src="/images/icons/lock.png"/> | 51 <img alt="${_('private')}" src="/images/icons/lock.png"/> |
42 %else: | 52 %else: |
43 <img alt="${_('public')}" src="/images/icons/lock_open.png"/> | 53 <img alt="${_('public')}" src="/images/icons/lock_open.png"/> |
44 %endif | 54 %endif |
53 </td> | 63 </td> |
54 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> | 64 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> |
55 <td>${h.age(repo['last_change'])}</td> | 65 <td>${h.age(repo['last_change'])}</td> |
56 <td> | 66 <td> |
57 %if repo['rev']>=0: | 67 %if repo['rev']>=0: |
58 ${h.link_to('r%s:%s' % (repo['rev'],repo['tip']), | 68 ${h.link_to('r%s:%s' % (repo['rev'],h.short_id(repo['tip'])), |
59 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), | 69 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), |
60 class_="tooltip", | 70 class_="tooltip", |
61 tooltip_title=h.tooltip(repo['last_msg']))} | 71 tooltip_title=h.tooltip(repo['last_msg']))} |
62 %else: | 72 %else: |
63 ${_('No changesets yet')} | 73 ${_('No changesets yet')} |