Mercurial > public > src > rhodecode
changeset 580:946ed2955f48
template updates, added icon to repo name showing private/public
removed delete from repo options menu
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 01 Oct 2010 01:16:27 +0200 |
parents | 6fc59ac322ca |
children | 53aa1ee1af86 |
files | pylons_app/templates/base/base.html pylons_app/templates/summary/summary.html |
diffstat | 2 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/templates/base/base.html Fri Oct 01 00:53:38 2010 +0200 +++ b/pylons_app/templates/base/base.html Fri Oct 01 01:16:27 2010 +0200 @@ -188,14 +188,14 @@ %endif <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> - %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): - <li class="last"> - ${h.link_to(_('delete'),'#',class_='delete')} +## %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): +## <li class="last"> +## ${h.link_to(_('delete'),'#',class_='delete')} ## ${h.form(url('repo_settings_delete', repo_name=c.repo_name),method='delete')} ## ${h.submit('remove_%s' % c.repo_name,'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} ## ${h.end_form()} - </li> - %endif +## </li> +## %endif </ul> </li> </ul>
--- a/pylons_app/templates/summary/summary.html Fri Oct 01 00:53:38 2010 +0200 +++ b/pylons_app/templates/summary/summary.html Fri Oct 01 01:16:27 2010 +0200 @@ -42,7 +42,13 @@ <label>${_('Name')}:</label> </div> <div class="input-short"> - <span style="font-size: 1.6em;font-weight: bold;">${c.repo_info.name}</span><br/> + %if c.repo_info.dbrepo.private: + <img style="margin-bottom:2px" class="icon" title="${_('private repository')}" alt="${_('private')}" src="/images/icons/lock.png"/> + %else: + <img style="margin-bottom:2px" class="icon" title="${_('public repository')}" alt="${_('public')}" src="/images/icons/lock_open.png"/> + %endif + <span style="font-size: 1.6em;font-weight: bold;vertical-align: baseline;">${c.repo_info.name}</span> + <br/> %if c.repo_info.dbrepo.fork: <span style="margin-top:5px"> <a href="${h.url('summary_home',repo_name=c.repo_info.dbrepo.fork.repo_name)}">