##// END OF EJS Templates
First step in two-part process to rename directories to kallithea....
First step in two-part process to rename directories to kallithea. This first step is to change all references in the files where they refer to the old directory name.

File last commit:

r4147:1c8f8187 rhodecode-2.2.5-gpl
r4186:7e5f8c12 kallithea-2.2.5-r...
Show More
summary.html
401 lines | 14.5 KiB | text/html | HtmlLexer
renamed project to rhodecode
r547 <%inherit file="/base/base.html"/>
<%def name="title()">
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 ${_('%s Summary') % c.repo_name}
%if c.rhodecode_name:
&middot; ${c.rhodecode_name}
%endif
renamed project to rhodecode
r547 </%def>
<%def name="breadcrumbs_links()">
Leonardo
Fixing missing icons....
r3532 ${_('Summary')}
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116
## locking icon
%if c.rhodecode_db_repo.enable_locking:
%if c.rhodecode_db_repo.locked[0]:
<span class="locking_locked tooltip" title="${_('Repository locked by %s') % h.person_by_id(c.rhodecode_db_repo.locked[0])}"></span>
%else:
<span class="locking_unlocked tooltip" title="${_('Repository unlocked')}"></span>
%endif
%endif
##FORK
%if c.rhodecode_db_repo.fork:
<span>
- <i class="icon-code-fork"></i> ${_('Fork of')} "<a href="${h.url('summary_home',repo_name=c.rhodecode_db_repo.fork.repo_name)}">${c.rhodecode_db_repo.fork.repo_name}</a>"
</span>
%endif
##REMOTE
%if c.rhodecode_db_repo.clone_uri:
<span>
- <i class="icon-code-fork"></i> ${_('Clone from')} "<a href="${h.url(str(h.hide_credentials(c.rhodecode_db_repo.clone_uri)))}">${h.hide_credentials(c.rhodecode_db_repo.clone_uri)}</a>"
<span>
%endif
renamed project to rhodecode
r547 </%def>
<%def name="page_nav()">
Mads Kiilerich
use valid options for the top menu: repositories, journal, search and admin
r3603 ${self.menu('repositories')}
renamed project to rhodecode
r547 </%def>
added discoverable rss/atom links in pages
r2413 <%def name="head_extra()">
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <link href="${h.url('atom_feed_home',repo_name=c.rhodecode_db_repo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" />
<link href="${h.url('rss_feed_home',repo_name=c.rhodecode_db_repo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" />
Mads Kiilerich
summary: redirect from repo URLs with #branchname to changelog with this branch...
r3655
<script>
redirect_hash_branch = function(){
var branch = window.location.hash.replace(/^#(.*)/, '$1');
codecleaner
r3656 if (branch){
window.location = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}"
.replace('__BRANCH__',branch);
}
Mads Kiilerich
summary: redirect from repo URLs with #branchname to changelog with this branch...
r3655 }
redirect_hash_branch();
window.onhashchange = function() {
codecleaner
r3656 redirect_hash_branch();
Mads Kiilerich
summary: redirect from repo URLs with #branchname to changelog with this branch...
r3655 };
</script>
added discoverable rss/atom links in pages
r2413 </%def>
renamed project to rhodecode
r547 <%def name="main()">
Mads Kiilerich
templates: drop context_bar, use repo_context_bar directly
r3988 ${self.repo_context_bar('summary')}
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 <%
summary = lambda n:{False:'summary-short'}.get(n)
%>
<div class="box">
renamed project to rhodecode
r547 <!-- box / title -->
<div class="title">
${self.breadcrumbs()}
</div>
<!-- end box / title -->
Mads Kiilerich
html: don't use tabs
r3197 <div class="form">
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 <div id="summary" class="fields">
<div class="field">
<div class="label-summary">
<label>${_('Clone url')}:</label>
</div>
<div class="input ${summary(c.show_stats)}">
<input style="width:80%" type="text" id="clone_url" readonly="readonly" value="${c.clone_repo_url}"/>
<input style="display:none;width:80%" type="text" id="clone_url_id" readonly="readonly" value="${c.clone_repo_url_id}"/>
<div style="display:none" id="clone_by_name" class="btn btn-small clone">${_('Show by Name')}</div>
<div id="clone_by_id" class="btn btn-small clone">${_('Show by ID')}</div>
</div>
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 </div>
White-space cleanup
r1888
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 <div class="field">
<div class="label-summary">
<label>${_('Description')}:</label>
</div>
%if c.visual.stylify_metatags:
<div class="input ${summary(c.show_stats)} desc">${h.urlify_text(h.desc_stylize(c.rhodecode_db_repo.description))}</div>
%else:
<div class="input ${summary(c.show_stats)} desc">${h.urlify_text(c.rhodecode_db_repo.description)}</div>
%endif
</div>
White-space cleanup
r1888
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 <div class="field">
Mads Kiilerich
html: don't use tabs
r3197 <div class="label-summary">
<label>${_('Trending files')}:</label>
</div>
<div class="input ${summary(c.show_stats)}">
optimized summary page for disabled stats
r1719 %if c.show_stats:
Mads Kiilerich
html: don't use tabs
r3197 <div id="lang_stats"></div>
optimized summary page for disabled stats
r1719 %else:
White-space cleanup
r1888 ${_('Statistics are disabled for this repository')}
optimized summary page for disabled stats
r1719 %if h.HasPermissionAll('hg.admin')('enable stats on from summary'):
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name, anchor='repo_enable_statistics'),class_="btn btn-mini")}
- fixes celery sqlalchemy session issues for async forking...
r1728 %endif
White-space cleanup
r1888 %endif
Mads Kiilerich
html: don't use tabs
r3197 </div>
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 </div>
White-space cleanup
r1888
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 <div class="field">
Mads Kiilerich
html: don't use tabs
r3197 <div class="label-summary">
<label>${_('Download')}:</label>
</div>
<div class="input ${summary(c.show_stats)}">
%if len(c.rhodecode_repo.revisions) == 0:
${_('There are no downloads yet')}
Mads Kiilerich
follow Python conventions for boolean values...
r3625 %elif not c.enable_downloads:
Mads Kiilerich
html: don't use tabs
r3197 ${_('Downloads are disabled for this repository')}
optimized summary page for disabled stats
r1719 %if h.HasPermissionAll('hg.admin')('enable downloads on from summary'):
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name, anchor='repo_enable_downloads'),class_="btn btn-mini")}
White-space cleanup
r1888 %endif
Mads Kiilerich
html: don't use tabs
r3197 %else:
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <span id="${'zip_link'}">
<a class="btn btn-small" href="${h.url('files_archive_home',repo_name=c.rhodecode_db_repo.repo_name,fname='tip.zip')}"><i class="icon-archive"></i> ${_('Download as zip')}</a>
</span>
${h.hidden('download_options')}
fixes #214 added support for downloading subrepos in download menu.
r1450 <span style="vertical-align: bottom">
download button looks nicer displayed first
r3763 <input id="archive_subrepos" type="checkbox" name="subrepos" />
<label for="archive_subrepos" class="tooltip" title="${h.tooltip(_('Check this to download archive with subrepos'))}" >${_('with subrepos')}</label>
fixes #214 added support for downloading subrepos in download menu.
r1450 </span>
Mads Kiilerich
html: don't use tabs
r3197 %endif
</div>
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 </div>
leonardo
Addding context bar to more repo related pages....
r3529 </div>
<div id="summary-menu-stats">
<ul>
<li>
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <a title="${_('Owner')} ${c.rhodecode_db_repo.user.email}">
<i class="icon-user"></i> ${c.rhodecode_db_repo.user.username}
<div class="gravatar" style="float: right; margin: 0px 0px 0px 0px" title="${c.rhodecode_db_repo.user.name} ${c.rhodecode_db_repo.user.lastname}">
<img alt="gravatar" src="${h.gravatar_url(c.rhodecode_db_repo.user.email, 18)}"/>
</div>
leonardo
Addding context bar to more repo related pages....
r3529 </a>
</li>
<li>
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
<i class="icon-heart"></i> ${_('Followers')}
<span class="stats-bullet" id="current_followers_count">${c.repository_followers}</span>
</a>
</li>
<li>
<a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
<i class="icon-code-fork"></i> ${_('Forks')}
<span class="stats-bullet">${c.repository_forks}</span>
leonardo
Addding context bar to more repo related pages....
r3529 </a>
</li>
small ui fixes for summary info block
r3560
swap repo-size with settings in summary. It somehow...
r3664 %if c.rhodecode_user.username != 'default':
<li class="repo_size">
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <a href="#" onclick="javascript:showRepoSize('repo_size_2','${c.rhodecode_db_repo.repo_name}','${str(h.get_token())}')"><i class="icon-archive"></i> ${_('Repository Size')}</a>
<span class="stats-bullet" id="repo_size_2"></span>
leonardo
Addding context bar to more repo related pages....
r3529 </li>
small ui fixes for summary info block
r3560 %endif
<li>
%if c.rhodecode_user.username != 'default':
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <a href="${h.url('atom_feed_home',repo_name=c.rhodecode_db_repo.repo_name,api_key=c.rhodecode_user.api_key)}"><i class="icon-rss-sign"></i> ${_('Feed')}</a>
small ui fixes for summary info block
r3560 %else:
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <a href="${h.url('atom_feed_home',repo_name=c.rhodecode_db_repo.repo_name)}"><i class="icon-rss-sign"></i> ${_('Feed')}</a>
small ui fixes for summary info block
r3560 %endif
</li>
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 %if c.show_stats:
<li>
<a title="${_('Statistics')}" href="${h.url('repo_stats_home',repo_name=c.repo_name)}">
<i class="icon-bar-chart"></i> ${_('Statistics')}
</a>
</li>
leonardo
Addding context bar to more repo related pages....
r3529 %endif
</ul>
</div>
Mads Kiilerich
html: don't use tabs
r3197 </div>
renamed project to rhodecode
r547 </div>
optimized summary page for disabled stats
r1719
White-space cleanup
r1888
Mads Kiilerich
old style: show the full link box on summary page - no overlap or truncation
r4147 <div class="box">
renamed project to rhodecode
r547 <div class="title">
added quickstart page for new repos
r1736 <div class="breadcrumbs">
%if c.repo_changesets:
Mads Kiilerich
summary: "shortlog" is not a word ... and the changelog is always better
r3285 ${h.link_to(_('Latest changes'),h.url('changelog_home',repo_name=c.repo_name))}
added quickstart page for new repos
r1736 %else:
${_('Quick start')}
%endif
</div>
White-space cleanup
r1888 </div>
renamed project to rhodecode
r547 <div class="table">
removed shortlog from main menu, as duplicated functionality of changelog,...
r637 <div id="shortlog_data">
Removed shortlog aka lightweight changelog....
r3764 <%include file='../changelog/changelog_summary_data.html'/>
removed shortlog from main menu, as duplicated functionality of changelog,...
r637 </div>
implements #215 Repository view uses a README (text/markdown + rst)
r1605 </div>
</div>
%if c.readme_data:
small anchor cleanup...
r2990 <div id="readme" class="anchor">
<div class="box" style="background-color: #FAFAFA">
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 <div class="title" title="${_('Readme file from revision %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1])}">
added readme permalink
r2606 <div class="breadcrumbs">
<a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a>
</div>
White-space cleanup
r1888 </div>
small anchor cleanup...
r2990 <div class="readme">
implements #215 Repository view uses a README (text/markdown + rst)
r1605 <div class="readme_box">
${c.readme_data|n}
</div>
renamed project to rhodecode
r547 </div>
</div>
small anchor cleanup...
r2990 </div>
implements #215 Repository view uses a README (text/markdown + rst)
r1605 %endif
<script type="text/javascript">
optimized summary page for disabled stats
r1719 var clone_url = 'clone_url';
YUE.on(clone_url,'click',function(e){
if(YUD.hasClass(clone_url,'selected')){
return
}
else{
YUD.addClass(clone_url,'selected');
White-space cleanup
r1888 YUD.get(clone_url).select();
optimized summary page for disabled stats
r1719 }
})
implements #285: Implemented non changeable urls for clone url, and web views
r1813 YUE.on('clone_by_name','click',function(e){
// show url by name and hide name button
YUD.setStyle('clone_url','display','');
YUD.setStyle('clone_by_name','display','none');
White-space cleanup
r1888
implements #285: Implemented non changeable urls for clone url, and web views
r1813 // hide url by id and show name button
YUD.setStyle('clone_by_id','display','');
White-space cleanup
r1888 YUD.setStyle('clone_url_id','display','none');
implements #285: Implemented non changeable urls for clone url, and web views
r1813 })
YUE.on('clone_by_id','click',function(e){
White-space cleanup
r1888
Mads Kiilerich
html: don't use tabs
r3197 // show url by id and hide id button
YUD.setStyle('clone_by_id','display','none');
implements #285: Implemented non changeable urls for clone url, and web views
r1813 YUD.setStyle('clone_url_id','display','');
White-space cleanup
r1888
implements #285: Implemented non changeable urls for clone url, and web views
r1813 // hide url by name and show id button
Mads Kiilerich
html: don't use tabs
r3197 YUD.setStyle('clone_by_name','display','');
YUD.setStyle('clone_url','display','none');
implements #285: Implemented non changeable urls for clone url, and web views
r1813 })
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 $(document).ready(function(){
var cache = {}
$("#download_options").select2({
placeholder: _TM['Select changeset'],
dropdownAutoWidth: true,
query: function(query){
var key = 'cache';
var cached = cache[key] ;
if(cached) {
var data = {results: []};
//filter results
$.each(cached.results, function(){
var section = this.text;
var children = [];
$.each(this.children, function(){
if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
children.push({'id': this.id, 'text': this.text})
}
})
data.results.push({'text': section, 'children': children})
});
query.callback(data);
}else{
$.ajax({
url: pyroutes.url('repo_refs_data', {'repo_name': '${c.repo_name}'}),
data: {},
dataType: 'json',
type: 'GET',
success: function(data) {
cache[key] = data;
query.callback({results: data.results});
}
})
}
},
});
// on change of download options
$('#download_options').change(function(e){
var new_cs = e.added
White-space cleanup
r1888
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 for(k in tmpl_links){
var s = $('#'+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);
title_tmpl = '<i class="icon-archive"></i> '+ title_tmpl;
var url = tmpl_links[k].replace('__CS__',new_cs.id);
var subrepos = $('#archive_subrepos').is(':checked');
url = url.replace('__SUB__',subrepos);
url = url.replace('__NAME__',title_tmpl);
White-space cleanup
r1888
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 s.html(url)
}
Summary page downloads limited to zip....
r1751 }
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 });
var tmpl_links = {};
%for cnt,archive in enumerate(c.rhodecode_repo._get_archives()):
tmpl_links["${archive['type']}"] = '${h.link_to('__NAME__', h.url('files_archive_home',repo_name=c.rhodecode_db_repo.repo_name, fname='__CS__'+archive['extension'],subrepos='__SUB__'),class_='btn btn-small')}';
%endfor
})
optimized summary page for disabled stats
r1719 </script>
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116
optimized summary page for disabled stats
r1719 %if c.show_stats:
<script type="text/javascript">
var data = ${c.trending_languages|n};
var total = 0;
var no_data = true;
var tbl = document.createElement('table');
tbl.setAttribute('class','trending_language_tbl');
var cnt = 0;
fixes issue #271...
r1890 for (var i=0;i<data.length;i++){
Mads Kiilerich
html: don't use tabs
r3197 total+= data[i][1].count;
fixed percentage in stats...
r1940 }
for (var i=0;i<data.length;i++){
optimized summary page for disabled stats
r1719 cnt += 1;
fixes issue #271...
r1890 no_data = false;
code garden
r1908
optimized summary page for disabled stats
r1719 var hide = cnt>2;
var tr = document.createElement('tr');
if (hide){
tr.setAttribute('style','display:none');
tr.setAttribute('class','stats_hidden');
}
fixes issue #271...
r1890 var k = data[i][0];
var obj = data[i][1];
var percentage = Math.round((obj.count/total*100),2);
code garden
r1908
optimized summary page for disabled stats
r1719 var td1 = document.createElement('td');
td1.width = 150;
var trending_language_label = document.createElement('div');
fixes issue #271...
r1890 trending_language_label.innerHTML = obj.desc+" ("+k+")";
optimized summary page for disabled stats
r1719 td1.appendChild(trending_language_label);
implements #215 Repository view uses a README (text/markdown + rst)
r1605
optimized summary page for disabled stats
r1719 var td2 = document.createElement('td');
td2.setAttribute('style','padding-right:14px !important');
var trending_language = document.createElement('div');
fixes issue #271...
r1890 var nr_files = obj.count+" ${_('files')}";
White-space cleanup
r1888
optimized summary page for disabled stats
r1719 trending_language.title = k+" "+nr_files;
White-space cleanup
r1888
optimized summary page for disabled stats
r1719 if (percentage>22){
White-space cleanup
r1888 trending_language.innerHTML = "<b style='font-size:0.8em'>"+percentage+"% "+nr_files+ "</b>";
optimized summary page for disabled stats
r1719 }
else{
trending_language.innerHTML = "<b style='font-size:0.8em'>"+percentage+"%</b>";
}
White-space cleanup
r1888
optimized summary page for disabled stats
r1719 trending_language.setAttribute("class", 'trending_language top-right-rounded-corner bottom-right-rounded-corner');
trending_language.style.width=percentage+"%";
td2.appendChild(trending_language);
White-space cleanup
r1888
optimized summary page for disabled stats
r1719 tr.appendChild(td1);
tr.appendChild(td2);
tbl.appendChild(tr);
if(cnt == 3){
var show_more = document.createElement('tr');
var td = document.createElement('td');
lnk = document.createElement('a');
White-space cleanup
r1888
optimized summary page for disabled stats
r1719 lnk.href='#';
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 lnk.innerHTML = "${_('Show more')}";
optimized summary page for disabled stats
r1719 lnk.id='code_stats_show_more';
td.appendChild(lnk);
White-space cleanup
r1888
optimized summary page for disabled stats
r1719 show_more.appendChild(td);
show_more.appendChild(document.createElement('td'));
tbl.appendChild(show_more);
}
White-space cleanup
r1888
optimized summary page for disabled stats
r1719 }
YUD.get('lang_stats').appendChild(tbl);
YUE.on('code_stats_show_more','click',function(){
l = YUD.getElementsByClassName('stats_hidden')
for (e in l){
YUD.setStyle(l[e],'display','');
};
YUD.setStyle(YUD.get('code_stats_show_more'),
'display','none');
});
White-space cleanup
r1888 </script>
optimized summary page for disabled stats
r1719 %endif
renamed project to rhodecode
r547
White-space cleanup
r1888 </%def>