diff --git a/rhodecode/controllers/summary.py b/rhodecode/controllers/summary.py --- a/rhodecode/controllers/summary.py +++ b/rhodecode/controllers/summary.py @@ -88,18 +88,18 @@ class SummaryController(BaseRepoControll password = '@' parsed_url = urlparse(url.current(qualified=True)) - + default_clone_uri = '{scheme}://{user}{pass}{netloc}{path}' - - uri_tmpl = config.get('clone_uri',default_clone_uri) - uri_tmpl = uri_tmpl.replace('{','%(').replace('}',')s') - - uri = uri_tmpl % {'user': username, + + uri_tmpl = config.get('clone_uri', default_clone_uri) + uri_tmpl = uri_tmpl.replace('{', '%(').replace('}', ')s') + + uri = uri_tmpl % {'user': username, 'pass': password, 'scheme': parsed_url.scheme, 'netloc':parsed_url.netloc, 'path':parsed_url.path} - + c.clone_repo_url = uri c.repo_tags = OrderedDict() for name, hash in c.rhodecode_repo.tags.items()[:10]: @@ -124,9 +124,11 @@ class SummaryController(BaseRepoControll ts_max_y = mktime(td.timetuple()) if dbrepo.enable_statistics: + c.show_stats = True c.no_data_msg = _('No data loaded yet') run_task(get_commits_stats, c.dbrepo.repo_name, ts_min_y, ts_max_y) else: + c.show_stats = False c.no_data_msg = _('Statistics are disabled for this repository') c.ts_min = ts_min_m c.ts_max = ts_max_y diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -993,7 +993,7 @@ div.options a { width: 155px; position: absolute; margin: 0; - padding: 8px 0 0 5px; + padding: 0px 0 0 0px; } #content div.box-left div.form div.fields div.field div.label,#content div.box-right div.form div.fields div.field div.label diff --git a/rhodecode/templates/summary/summary.html b/rhodecode/templates/summary/summary.html --- a/rhodecode/templates/summary/summary.html +++ b/rhodecode/templates/summary/summary.html @@ -17,7 +17,11 @@ %def> <%def name="main()"> -