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,18 +6,25 @@ <%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()"> -
+ <% + summary = lambda n:{False:'summary-short'}.get(n) + %> + %if c.show_stats: +
+ %else: +
+ %endif
${self.breadcrumbs()} @@ -25,81 +32,81 @@
- +
-
+
-
+
+
+ %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 +
%if c.rhodecode_user.username != 'default': %if c.following: - + %else: %endif - %endif: - + %endif: ##REPO TYPE - %if c.dbrepo.repo_type =='hg': + %if h.is_hg(c.dbrepo): ${_('Mercurial repository')} %endif - %if c.dbrepo.repo_type =='git': + %if h.is_git(c.dbrepo): ${_('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)} - + ${h.repo_link(c.dbrepo.groups_and_repo)} + ##FORK %if c.dbrepo.fork: %endif ##REMOTE %if c.dbrepo.clone_uri: - %endif +
+ %endif
- - +
-
+
-
${h.urlify_text(c.dbrepo.description)}
+
${h.urlify_text(c.dbrepo.description)}
- - +
-
+
-
+
gravatar
@@ -108,595 +115,584 @@ ${_('Email')}: ${c.dbrepo.user.email}
- +
-
- -
-
- ${'r%s:%s' % (h.get_changeset_safe(c.rhodecode_repo,'tip').revision, - h.get_changeset_safe(c.rhodecode_repo,'tip').short_id)} - - - ${h.age(c.rhodecode_repo.last_change)}
- ${_('by')} ${h.get_changeset_safe(c.rhodecode_repo,'tip').author} - -
-
- -
-
+
-
- +
+ +
${_('Show by ID')}
+ +
- +
-
- +
+
-
-
+
+ %if c.show_stats: +
+ %else: + ${_('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
- +
-
+
-
+
%if len(c.rhodecode_repo.revisions) == 0: ${_('There are no downloads yet')} %elif c.enable_downloads is False: ${_('Downloads 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-button-small")} - %endif + %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 %else: ${h.select('download_options',c.rhodecode_repo.get_changeset().raw_id,c.download_options)} - %for cnt,archive in enumerate(c.rhodecode_repo._get_archives()): - %if cnt >=1: - | - %endif - ${h.link_to(archive['type'], - h.url('files_archive_home',repo_name=c.dbrepo.repo_name, - fname='tip'+archive['extension']),class_="archive_icon")} - %endfor + ${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")} - ${_('with subrepos')} + + %endif
- -
-
- -
-
- %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 -
-
-
+
- -
- +%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-button-small")} - %endif - + ${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-btn")} + %endif %else: - ${_('Loaded in')} ${c.stats_percentage} % + ${_('Stats gathered: ')} ${c.stats_percentage}% %endif -
+
- +
-
+
- - +
+
+
-
- -
-
- -
<%include file='../shortlog/shortlog_data.html'/>
- ##%if c.repo_changesets: - ## ${h.link_to(_('show more'),h.url('changelog_home',repo_name=c.repo_name))} - ##%endif +
+
+ +%if c.readme_data: +
+ +
+
+ ${c.readme_data|n} +
-
-
- -
-
- <%include file='../tags/tags_data.html'/> - %if c.repo_changesets: - ${h.link_to(_('show more'),h.url('tags_home',repo_name=c.repo_name))} - %endif -
-
-
-
- -
-
- <%include file='../branches/branches_data.html'/> - %if c.repo_changesets: - ${h.link_to(_('show more'),h.url('branches_home',repo_name=c.repo_name))} - %endif -
-
+%endif + + +%if c.show_stats: + + +%endif + +