# HG changeset patch # User Marcin Kuzminski # Date 1285792613 -7200 # Node ID 63212fea247162d9b253f67e351d95ed52b3ae16 # Parent d64a3ab188459baeeecdba1cdc9e6d11a3ec074d a lot of fixes in templates, added options to each repository showing fork/serach/settings fixed emtpy changeset (again !) diff -r d64a3ab18845 -r 63212fea2471 pylons_app/lib/utils.py --- a/pylons_app/lib/utils.py Tue Sep 28 22:38:34 2010 +0000 +++ b/pylons_app/lib/utils.py Wed Sep 29 22:36:53 2010 +0200 @@ -229,8 +229,9 @@ """ return '0' * 40 + @LazyProperty def short_id(self): - self.raw_id[:12] + return self.raw_id[:12] def repo2db_mapper(initial_repo_list, remove_obsolete=False): """ diff -r d64a3ab18845 -r 63212fea2471 pylons_app/public/css/style.css --- a/pylons_app/public/css/style.css Tue Sep 28 22:38:34 2010 +0000 +++ b/pylons_app/public/css/style.css Wed Sep 29 22:36:53 2010 +0200 @@ -569,18 +569,47 @@ width:167px; } -#header #header-inner #quick li ul li a.branches,#header #header-inner #quick li ul li a.branches:hover -{ - + +#header #header-inner #quick li ul li a.fork, +#header #header-inner #quick li ul li a.fork:hover +{ + + background: #FFFFFF url("../images/icons/arrow_divide.png") no-repeat 4px 9px; + margin:0; + padding:12px 9px 7px 24px; + width:167px; +} + +#header #header-inner #quick li ul li a.search, +#header #header-inner #quick li ul li a.search:hover +{ + background: #FFFFFF url("../images/icons/search_16.png") no-repeat 4px 9px; + margin:0; + padding:12px 9px 7px 24px; + width:167px; +} + +#header #header-inner #quick li ul li a.delete, +#header #header-inner #quick li ul li a.delete:hover +{ + background: #FFFFFF url("../images/icons/delete.png") no-repeat 4px 9px; + margin:0; + padding:12px 9px 7px 24px; + width:167px; +} + +#header #header-inner #quick li ul li a.branches, +#header #header-inner #quick li ul li a.branches:hover +{ background: #FFFFFF url("../images/icons/arrow_branch.png") no-repeat 4px 9px; margin:0; padding:12px 9px 7px 24px; width:167px; } -#header #header-inner #quick li ul li a.tags,#header #header-inner #quick li ul li a.tags:hover -{ - +#header #header-inner #quick li ul li a.tags, +#header #header-inner #quick li ul li a.tags:hover +{ background: #FFFFFF url("../images/icons/tag_blue.png") no-repeat 4px 9px; margin:0; padding:12px 9px 7px 24px; @@ -3464,12 +3493,14 @@ .action_button { border: 0px; display: block; + color:#0066CC; } .action_button:hover { border: 0px; - font-style: italic; + text-decoration:underline; cursor: pointer; + color:#0066CC; } /* ----------------------------------------------------------- diff -r d64a3ab18845 -r 63212fea2471 pylons_app/templates/admin/repos/repo_add.html --- a/pylons_app/templates/admin/repos/repo_add.html Tue Sep 28 22:38:34 2010 +0000 +++ b/pylons_app/templates/admin/repos/repo_add.html Wed Sep 29 22:36:53 2010 +0200 @@ -2,7 +2,7 @@ <%inherit file="/base/base.html"/> <%def name="title()"> - ${_('Repositories administration')} + ${_('Add new repository')} <%def name="breadcrumbs_links()"> diff -r d64a3ab18845 -r 63212fea2471 pylons_app/templates/base/base.html --- a/pylons_app/templates/base/base.html Tue Sep 28 22:38:34 2010 +0000 +++ b/pylons_app/templates/base/base.html Wed Sep 29 22:36:53 2010 +0200 @@ -174,16 +174,30 @@ ${_('Files')} - %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): -
  • - + +
  • + - ${_('Settings')} + ${_('Admin')} - ${_('Settings')} - -
  • - %endif + ${_('Options')} + + + %else: ##ROOT MENU diff -r d64a3ab18845 -r 63212fea2471 pylons_app/templates/index.html --- a/pylons_app/templates/index.html Tue Sep 28 22:38:34 2010 +0000 +++ b/pylons_app/templates/index.html Wed Sep 29 22:36:53 2010 +0200 @@ -31,7 +31,7 @@ %if h.HasPermissionAny('hg.admin','hg.create.repository')(): %endif diff -r d64a3ab18845 -r 63212fea2471 pylons_app/templates/settings/repo_settings.html --- a/pylons_app/templates/settings/repo_settings.html Tue Sep 28 22:38:34 2010 +0000 +++ b/pylons_app/templates/settings/repo_settings.html Wed Sep 29 22:36:53 2010 +0200 @@ -2,7 +2,7 @@ <%inherit file="/base/base.html"/> <%def name="title()"> - ${_('Repositories administration')} + ${_('Repository settings')} <%def name="breadcrumbs_links()"> diff -r d64a3ab18845 -r 63212fea2471 pylons_app/templates/summary/summary.html --- a/pylons_app/templates/summary/summary.html Tue Sep 28 22:38:34 2010 +0000 +++ b/pylons_app/templates/summary/summary.html Wed Sep 29 22:36:53 2010 +0200 @@ -76,7 +76,7 @@
    - ${h.age(c.repo_info.last_change)} - ${h.rfc822date(c.repo_info.last_change)} + ${h.age(c.repo_info.last_change)} - ${h.rfc822date_notz(c.repo_info.last_change)} ${_('by')} ${h.get_changeset_safe(c.repo_info,'tip').author}
    @@ -122,7 +122,7 @@ var td2 = document.createElement('td'); var trending_language = document.createElement('div'); trending_language.title = k; - trending_language.innerHTML = ""+value+" ${_('files')} - "+percentage+" %"; + trending_language.innerHTML = ""+percentage+"% "+value+" ${_('files')}"; trending_language.setAttribute("class", 'trending_language'); trending_language.style.width=percentage+"%"; td2.appendChild(trending_language); @@ -130,7 +130,6 @@ tr.appendChild(td1); tr.appendChild(td2); tbl.appendChild(tr); - //YAHOO.util.Dom.get('lang_stats').appendChild(trending_language_label); } if(no_data){