##// END OF EJS Templates
caches: use a gevent compatible file-lock mechanism....
caches: use a gevent compatible file-lock mechanism. - because of gevent we can run into a deadlock situation and worker freeze because of each of the workers will try to aquire a lock. - This should help with the issue and gevent.

File last commit:

r2497:9a1b0044 default
r2878:bb23dd31 default
Show More
summary.mako
119 lines | 3.5 KiB | application/x-mako | MakoHtmlLexer
templates: rename base.mako into summary_base.mako. The previous naming...
r2178 <%inherit file="/summary/summary_base.mako"/>
templating: use .mako as extensions for template files.
r1282
<%namespace name="components" file="/summary/components.mako"/>
<%def name="menu_bar_subnav()">
${self.repo_menu(active='summary')}
</%def>
<%def name="main()">
<div class="title">
${self.repo_page_title(c.rhodecode_db_repo)}
<ul class="links icon-only-links block-right">
<li>
%if c.rhodecode_user.username != h.DEFAULT_USER:
dan
repo-feed: moved from pylons controller to pyramid views.
r1899 <a href="${h.route_path('atom_feed_home', repo_name=c.rhodecode_db_repo.repo_name, _query=dict(auth_token=c.rhodecode_user.feed_token))}" title="${_('RSS Feed')}"><i class="icon-rss-sign"></i></a>
templating: use .mako as extensions for template files.
r1282 %else:
dan
repo-feed: moved from pylons controller to pyramid views.
r1899 <a href="${h.route_path('atom_feed_home', repo_name=c.rhodecode_db_repo.repo_name)}" title="${_('RSS Feed')}"><i class="icon-rss-sign"></i></a>
templating: use .mako as extensions for template files.
r1282 %endif
</li>
</ul>
</div>
<div id="repo-summary" class="summary">
${components.summary_detail(breadcrumbs_links=self.breadcrumbs_links(), show_downloads=True)}
${components.summary_stats(gravatar_function=self.gravatar_with_user)}
</div><!--end repo-summary-->
<div class="box" >
%if not c.repo_commits:
<div class="title">
<h3>${_('Quick start')}</h3>
</div>
%endif
<div class="table">
<div id="shortlog_data">
repo-summary: re-implemented summary view as pyramid....
r1785 <%include file='summary_commits.mako'/>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
</div>
%if c.readme_data:
<div id="readme" class="anchor">
<div class="box" >
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <div class="title" title="${h.tooltip(_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1]))}">
templating: use .mako as extensions for template files.
r1282 <h3 class="breadcrumbs">
files: ported repository files controllers to pyramid views.
r1927 <a href="${h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.rhodecode_db_repo.landing_rev[1],f_path=c.readme_file)}">${c.readme_file}</a>
templating: use .mako as extensions for template files.
r1282 </h3>
</div>
<div class="readme codeblock">
summary: disconnect readme rendering data from the comments....
r1731 <div class="readme_box">
templating: use .mako as extensions for template files.
r1282 ${c.readme_data|n}
</div>
</div>
</div>
</div>
%endif
<script type="text/javascript">
$(document).ready(function(){
ui: allow selecting and specifing ssh clone url....
r2497 $('#clone_option').on('change', function(e) {
var selected = $(this).val();
$.each(['http', 'http_id', 'ssh'], function (idx, val) {
if(val === selected){
$('#clone_option_' + val).show();
} else {
$('#clone_option_' + val).hide();
}
});
templating: use .mako as extensions for template files.
r1282 });
var initialCommitData = {
id: null,
text: 'tip',
type: 'tag',
raw_id: null,
files_url: null
};
select2RefSwitcher('#download_options', initialCommitData);
// on change of download options
$('#download_options').on('change', function(e) {
// format of Object {text: "v0.0.3", type: "tag", id: "rev"}
security: fix self xss on repo downloads picker for svn case.
r2234 var ext = '.zip';
templating: use .mako as extensions for template files.
r1282 var selected_cs = e.added;
security: fix self xss on repo downloads picker for svn case.
r2234 var fname = e.added.raw_id + ext;
files: ported repository files controllers to pyramid views.
r1927 var href = pyroutes.url('repo_archivefile', {'repo_name': templateContext.repo_name, 'fname':fname});
templating: use .mako as extensions for template files.
r1282 // set new label
security: fix self xss on repo downloads picker for svn case.
r2234 $('#archive_link').html('<i class="icon-archive"></i> {0}{1}'.format(escapeHtml(e.added.text), ext));
templating: use .mako as extensions for template files.
r1282
// set new url to button,
$('#archive_link').attr('href', href)
});
// load details on summary page expand
$('#summary_details_expand').on('click', function() {
var callback = function (data) {
% if c.show_stats:
repo-summary: re-implemented summary view as pyramid....
r1785 showRepoStats('lang_stats', data);
templating: use .mako as extensions for template files.
r1282 % endif
};
showRepoSize(
'repo_size_container',
templateContext.repo_name,
templateContext.repo_landing_commit,
callback);
})
})
</script>
</%def>