##// END OF EJS Templates
makefile: also cleanup .orig files
makefile: also cleanup .orig files

File last commit:

r3315:3f904fe0 default
r3476:6f67137b default
Show More
files_source.mako
130 lines | 6.1 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%namespace name="sourceblock" file="/codeblocks/source.mako"/>
<div id="codeblock" class="codeblock">
<div class="codeblock-header">
<div class="stats">
files: handle long paths in nicer UI.
r3136 <span class="stats-filename">
styling: updated old icons based on the new definitions....
r1939 <strong>
<i class="icon-file-text"></i>
files: remove rigth-to-left override character for display in files....
r2162 ${c.file.unicode_path_safe}
styling: updated old icons based on the new definitions....
r1939 </strong>
</span>
files: handle long paths in nicer UI.
r3136 <span class="item last"><i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${c.f_path}" title="${_('Copy the full path')}"></i></span>
<br/>
largefiles: enabled download of largefiles for git and mercurial from web interface....
r1577 % if c.lf_node:
<span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span>
% endif
files: handle long paths in nicer UI.
r3136
<span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span>
templating: use .mako as extensions for template files.
r1282 <span> | ${h.format_byte_size_binary(c.file.size)}</span>
<span> | ${c.file.mimetype} </span>
clipboard: added dummy placeholders for copying commits/paths via clipboard.js
r1935 <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span>
files: handle long paths in nicer UI.
r3136
templating: use .mako as extensions for template files.
r1282 </div>
<div class="buttons">
<a id="file_history_overview" href="#">
${_('History')}
</a>
changelog: ported to pyramid views.
r1931 <a id="file_history_overview_full" style="display: none" href="${h.route_path('repo_changelog_file',repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path)}">
templating: use .mako as extensions for template files.
r1282 ${_('Show Full History')}
</a> |
%if c.annotate:
files: ported repository files controllers to pyramid views.
r1927 ${h.link_to(_('Source'), h.route_path('repo_files', repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
templating: use .mako as extensions for template files.
r1282 %else:
files: ported repository files controllers to pyramid views.
r1927 ${h.link_to(_('Annotation'), h.route_path('repo_files:annotated',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
templating: use .mako as extensions for template files.
r1282 %endif
files: ported repository files controllers to pyramid views.
r1927 | ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
largefiles: enabled download of largefiles for git and mercurial from web interface....
r1577 |
% if c.lf_node:
files: ported repository files controllers to pyramid views.
r1927 <a href="${h.route_path('repo_file_download',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path, _query=dict(lf=1))}">
largefiles: enabled download of largefiles for git and mercurial from web interface....
r1577 ${_('Download largefile')}
</a>
% else:
files: ported repository files controllers to pyramid views.
r1927 <a href="${h.route_path('repo_file_download',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path)}">
largefiles: enabled download of largefiles for git and mercurial from web interface....
r1577 ${_('Download')}
</a>
% endif
templating: use .mako as extensions for template files.
r1282
%if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
|
%if c.on_branch_head and c.branch_or_raw_id and not c.file.is_binary:
files: ported repository files controllers to pyramid views.
r1927 <a href="${h.route_path('repo_files_edit_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit')}">
${_('Edit on Branch:{}').format(c.branch_name)}
templating: use .mako as extensions for template files.
r1282 </a>
files: ported repository files controllers to pyramid views.
r1927 | <a class="btn-danger btn-link" href="${h.route_path('repo_files_remove_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit')}">${_('Delete')}
templating: use .mako as extensions for template files.
r1282 </a>
%elif c.on_branch_head and c.branch_or_raw_id and c.file.is_binary:
${h.link_to(_('Edit'), '#', class_="btn btn-link disabled tooltip", title=_('Editing binary files not allowed'))}
files: ported repository files controllers to pyramid views.
r1927 | ${h.link_to(_('Delete'), h.route_path('repo_files_remove_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit'),class_="btn-danger btn-link")}
templating: use .mako as extensions for template files.
r1282 %else:
${h.link_to(_('Edit'), '#', class_="btn btn-link disabled tooltip", title=_('Editing files allowed only when on branch head commit'))}
| ${h.link_to(_('Delete'), '#', class_="btn btn-danger btn-link disabled tooltip", title=_('Deleting files allowed only when on branch head commit'))}
%endif
%endif
</div>
</div>
<div id="file_history_container"></div>
<div class="code-body">
largefiles: enabled download of largefiles for git and mercurial from web interface....
r1577 %if c.file.is_binary:
files: render images inside the file view....
r1580 <% rendered_binary = h.render_binary(c.repo_name, c.file)%>
% if rendered_binary:
${rendered_binary}
% else:
<div>
${_('Binary file (%s)') % c.file.mimetype}
</div>
% endif
largefiles: enabled download of largefiles for git and mercurial from web interface....
r1577 %else:
files: ported repository files controllers to pyramid views.
r1927 % if c.file.size < c.visual.cut_off_limit_file:
templating: use .mako as extensions for template files.
r1282 %if c.renderer and not c.annotate:
repositories: rewrote whole admin section to pyramid....
r2014 ## pick relative url based on renderer
markup: make relative links pint to raw files for images and to standard files as links....
r2003 <%
relative_urls = {
'raw': h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path),
'standard': h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path),
}
%>
${h.render(c.file.content, renderer=c.renderer, relative_urls=relative_urls)}
templating: use .mako as extensions for template files.
r1282 %else:
<table class="cb codehilite">
%if c.annotate:
<% color_hasher = h.color_hasher() %>
%for annotation, lines in c.annotated_lines:
${sourceblock.render_annotation_lines(annotation, lines, color_hasher)}
%endfor
%else:
%for line_num, tokens in enumerate(c.lines, 1):
${sourceblock.render_line(line_num, tokens)}
%endfor
%endif
</table>
%endif
%else:
files: ported repository files controllers to pyramid views.
r1927 ${_('File size {} is bigger then allowed limit {}. ').format(h.format_byte_size_binary(c.file.size), h.format_byte_size_binary(c.visual.cut_off_limit_file))} ${h.link_to(_('Show as raw'),
h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
templating: use .mako as extensions for template files.
r1282 %endif
%endif
</div>
dan
files: added option to use highlight marker to show keywords inside file source.
r3315 </div>
<script type="text/javascript">
% if request.GET.get('mark'):
$(function(){
$(".codehilite").mark(
"${request.GET.get('mark')}",
{
"className": 'match',
"accuracy": "complementary",
"ignorePunctuation": ":._(){}[]!'+=".split(""),
"each": function(el) {
// and also highlight lines !
$($(el).closest('tr')).find('td.cb-lineno').addClass('cb-line-selected');
}
}
);
});
% endif
</script>