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 @@ -6,14 +6,14 @@ <%def name="breadcrumbs_links()"> ${h.link_to(u'Home',h.url('/'))} - » + » ${h.link_to(c.dbrepo.just_name,h.url('summary_home',repo_name=c.repo_name))} » ${_('summary')} <%def name="page_nav()"> - ${self.menu('summary')} + ${self.menu('summary')} <%def name="main()"> @@ -32,50 +32,50 @@
- +
-
+
%if c.rhodecode_user.username != 'default': ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key),class_='rss_icon')} ${h.link_to(_('ATOM'),h.url('atom_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key),class_='atom_icon')} %else: ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=c.dbrepo.repo_name),class_='rss_icon')} - ${h.link_to(_('ATOM'),h.url('atom_feed_home',repo_name=c.dbrepo.repo_name),class_='atom_icon')} - %endif + ${h.link_to(_('ATOM'),h.url('atom_feed_home',repo_name=c.dbrepo.repo_name),class_='atom_icon')} + %endif
%if c.rhodecode_user.username != 'default': %if c.following: - + %else: %endif - %endif: + %endif: ##REPO TYPE %if c.dbrepo.repo_type =='hg': ${_('Mercurial repository')} %endif %if c.dbrepo.repo_type =='git': ${_('Git repository')} - %endif - - ##PUBLIC/PRIVATE + %endif + + ##PUBLIC/PRIVATE %if c.dbrepo.private: ${_('private repository')} %else: ${_('public repository')} %endif - + ##REPO NAME ${h.repo_link(c.dbrepo.groups_and_repo)} - + ##FORK %if c.dbrepo.fork: - %endif +
+ %endif
- +
${h.urlify_text(c.dbrepo.description)}
- +
@@ -115,7 +115,7 @@ ${_('Email')}: ${c.dbrepo.user.email}
- +
@@ -127,7 +127,7 @@
- +
@@ -136,14 +136,14 @@ %if c.show_stats:
%else: - ${_('Statistics are disabled for this repository')} + ${_('Statistics are disabled for this repository')} %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): ${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-btn")} %endif - %endif + %endif
- +
@@ -155,7 +155,7 @@ ${_('Downloads are disabled for this repository')} %if h.HasPermissionAll('hg.admin')('enable downloads on from summary'): ${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-btn")} - %endif + %endif %else: ${h.select('download_options',c.rhodecode_repo.get_changeset().raw_id,c.download_options)} ${h.link_to('Download as zip',h.url('files_archive_home',repo_name=c.dbrepo.repo_name,fname='tip.zip'),class_="archive_icon ui-btn")} @@ -164,33 +164,33 @@ %endif
-
-
+
+ -%if c.show_stats: +%if c.show_stats:
${_('Commit activity by day / author')}
- +
%if c.no_data: ${c.no_data_msg} %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): ${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-btn")} - %endif + %endif %else: ${_('Loaded in')} ${c.stats_percentage} % %endif -
+
- +
@@ -198,10 +198,10 @@
- + %endif -
+
-
+
<%include file='../shortlog/shortlog_data.html'/> @@ -219,10 +219,10 @@
%if c.readme_data: -
+
${c.readme_data|n} @@ -239,7 +239,7 @@ YUE.on(clone_url,'click',function(e){ } else{ YUD.addClass(clone_url,'selected'); - YUD.get(clone_url).select(); + YUD.get(clone_url).select(); } }) @@ -247,18 +247,18 @@ YUE.on('clone_by_name','click',function( // show url by name and hide name button YUD.setStyle('clone_url','display',''); YUD.setStyle('clone_by_name','display','none'); - + // hide url by id and show name button YUD.setStyle('clone_by_id','display',''); - YUD.setStyle('clone_url_id','display','none'); - + YUD.setStyle('clone_url_id','display','none'); + }) YUE.on('clone_by_id','click',function(e){ - + // show url by id and hide id button YUD.setStyle('clone_by_id','display','none'); YUD.setStyle('clone_url_id','display',''); - + // hide url by name and show id button YUD.setStyle('clone_by_name','display',''); YUD.setStyle('clone_url','display','none'); @@ -273,14 +273,14 @@ var tmpl_links = {}; YUE.on(['download_options','archive_subrepos'],'change',function(e){ var sm = YUD.get('download_options'); var new_cs = sm.options[sm.selectedIndex]; - + for(k in tmpl_links){ var s = YUD.get(k+'_link'); if(s){ var title_tmpl = "${_('Download %s as %s') % ('__CS_NAME__','__CS_EXT__')}"; title_tmpl= title_tmpl.replace('__CS_NAME__',new_cs.text); title_tmpl = title_tmpl.replace('__CS_EXT__',k); - + var url = tmpl_links[k].replace('__CS__',new_cs.value); var subrepos = YUD.get('archive_subrepos').checked; url = url.replace('__SUB__',subrepos); @@ -298,7 +298,7 @@ var no_data = true; for (k in data){ total += data[k].count; no_data = false; -} +} var tbl = document.createElement('table'); tbl.setAttribute('class','trending_language_tbl'); var cnt = 0; @@ -322,20 +322,20 @@ for (k in data){ td2.setAttribute('style','padding-right:14px !important'); var trending_language = document.createElement('div'); var nr_files = value+" ${_('files')}"; - + trending_language.title = k+" "+nr_files; - + if (percentage>22){ - trending_language.innerHTML = ""+percentage+"% "+nr_files+ ""; + trending_language.innerHTML = ""+percentage+"% "+nr_files+ ""; } else{ trending_language.innerHTML = ""+percentage+"%"; } - + trending_language.setAttribute("class", 'trending_language top-right-rounded-corner bottom-right-rounded-corner'); trending_language.style.width=percentage+"%"; td2.appendChild(trending_language); - + tr.appendChild(td1); tr.appendChild(td2); tbl.appendChild(tr); @@ -343,17 +343,17 @@ for (k in data){ var show_more = document.createElement('tr'); var td = document.createElement('td'); lnk = document.createElement('a'); - + lnk.href='#'; lnk.innerHTML = "${_('show more')}"; lnk.id='code_stats_show_more'; td.appendChild(lnk); - + show_more.appendChild(td); show_more.appendChild(document.createElement('td')); tbl.appendChild(show_more); } - + } YUD.get('lang_stats').appendChild(tbl); @@ -365,7 +365,7 @@ YUE.on('code_stats_show_more','click',fu YUD.setStyle(YUD.get('code_stats_show_more'), 'display','none'); }); - + %endif - +