Mercurial > kallithea
changeset 797:81c173490971 beta
fixed remeber passwords css, and hide add new repository for anonymous users
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 01 Dec 2010 19:11:34 +0100 |
parents | ffd967053e4e |
children | be15cc83361c |
files | rhodecode/public/css/style.css rhodecode/templates/index.html |
diffstat | 2 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Tue Nov 30 11:53:21 2010 +0100 +++ b/rhodecode/public/css/style.css Wed Dec 01 19:11:34 2010 +0100 @@ -1405,7 +1405,7 @@ border-top:1px solid #DDD; text-align:left; margin:0; -padding:10px 0 0 114px; +padding:10px 0 0 150px; } #register div.form div.fields div.buttons div.highlight input.ui-state-default {
--- a/rhodecode/templates/index.html Tue Nov 30 11:53:21 2010 +0100 +++ b/rhodecode/templates/index.html Wed Dec 01 19:11:34 2010 +0100 @@ -30,13 +30,15 @@ <h5>${_('Dashboard')} <input class="top-right-rounded-corner top-left-rounded-corner bottom-left-rounded-corner bottom-right-rounded-corner" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> </h5> - %if h.HasPermissionAny('hg.admin','hg.create.repository')(): - <ul class="links"> - <li> - <span>${h.link_to(_('ADD NEW REPOSITORY'),h.url('admin_settings_create_repository'))}</span> - </li> - </ul> - %endif + %if c.rhodecode_user.username != 'default': + %if h.HasPermissionAny('hg.admin','hg.create.repository')(): + <ul class="links"> + <li> + <span>${h.link_to(_('ADD NEW REPOSITORY'),h.url('admin_settings_create_repository'))}</span> + </li> + </ul> + %endif + %endif </div> <!-- end box / title --> <div class="table">