##// END OF EJS Templates
permissions: allow users to update settings for repository groups they still own, or have admin perms, when they don't change their name....
permissions: allow users to update settings for repository groups they still own, or have admin perms, when they don't change their name. - this before gave no-permission errors as the parent group access was checked - since the group parent permission should be checked at creation, or name change this commit fixes such case

File last commit:

r4412:a05a39ec default
r4421:73f70a03 default
Show More
summary.mako
119 lines | 3.4 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 id="repo-summary" class="summary">
${components.summary_detail(breadcrumbs_links=self.breadcrumbs_links(), show_downloads=True)}
</div><!--end repo-summary-->
Liviu
Repo summary box changes
r3620 <div class="box">
%if not c.repo_commits:
<div class="empty-repo">
<div class="title">
<h3>${_('Quick start')}</h3>
</div>
Liviu
fixed settings clearfix overwritter css
r3644 <div class="clear-fix"></div>
Liviu
Repo summary box changes
r3620 </div>
%endif
<div class="table">
<div id="shortlog_data">
<%include file='summary_commits.mako'/>
</div>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
%if c.readme_data:
<div id="readme" class="anchor">
Liviu
Repo summary box changes
r3620 <div class="box">
ui: make readme header nicer
r4097
landing-refs: create helpers for landing ref to make clear indication about type/name
r4370 <div class="readme-title" title="${h.tooltip(_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_ref_type, c.rhodecode_db_repo.landing_ref_name))}">
ui: make readme header nicer
r4097 <div>
<i class="icon-file-text"></i>
landing-refs: create helpers for landing ref to make clear indication about type/name
r4370 <a href="${h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.rhodecode_db_repo.landing_ref_name,f_path=c.readme_file)}">
files: fixed rendering of readme files under non-ascii paths.
r3747 ${c.readme_file}
</a>
ui: make readme header nicer
r4097 </div>
templating: use .mako as extensions for template files.
r1282 </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(){
users: use new session store for temporary settings for users....
r3088
var showCloneField = function(clone_url_format){
ui: allow selecting and specifing ssh clone url....
r2497 $.each(['http', 'http_id', 'ssh'], function (idx, val) {
users: use new session store for temporary settings for users....
r3088 if(val === clone_url_format){
ui: allow selecting and specifing ssh clone url....
r2497 $('#clone_option_' + val).show();
users: use new session store for temporary settings for users....
r3088 $('#clone_option').val(val)
ui: allow selecting and specifing ssh clone url....
r2497 } else {
$('#clone_option_' + val).hide();
}
});
users: use new session store for temporary settings for users....
r3088 };
// default taken from session
showCloneField(templateContext.session_attrs.clone_url_format);
$('#clone_option').on('change', function(e) {
var selected = $(this).val();
storeUserSessionAttr('rc_user_session_attr.clone_url_format', selected);
showCloneField(selected)
templating: use .mako as extensions for template files.
r1282 });
var initialCommitData = {
id: null,
download: make use of default landing revision for downloads too.
r4412 text: '${c.rhodecode_db_repo.landing_ref_name}',
type: '${c.rhodecode_db_repo.landing_ref_type}',
templating: use .mako as extensions for template files.
r1282 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
download: make use of default landing revision for downloads too.
r4412 var ico = '<i class="icon-download"></i>';
$('#archive_link').html(ico+' {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)
});
summary: don't load size on container expand, only on manual action....
r3334 // calculate size of repository
calculateSize = function () {
templating: use .mako as extensions for template files.
r1282
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
};
summary: don't load size on container expand, only on manual action....
r3334 showRepoSize('repo_size_container', templateContext.repo_name, templateContext.repo_landing_commit, callback);
templating: use .mako as extensions for template files.
r1282
summary: don't load size on container expand, only on manual action....
r3334 }
templating: use .mako as extensions for template files.
r1282
})
</script>
</%def>