##// END OF EJS Templates
pull-requests: add merge check that detects WIP marker in title. This will prevent merges in such case....
pull-requests: add merge check that detects WIP marker in title. This will prevent merges in such case. Usually WIP in title means unfinished task that needs still some work. This pattern is present in Gitlab/Github and is already quite common.

File last commit:

r4097:60c6e373 default
r4099:c12e69d0 default
Show More
files_browser.mako
84 lines | 3.5 KiB | application/x-mako | MakoHtmlLexer
<div id="codeblock" class="browserblock">
<div class="browser-header">
<div class="browser-nav">
<div class="info_box">
<div class="info_box_elem previous">
<a id="prev_commit_link" data-commit-id="${c.prev_commit.raw_id}" class=" ${('disabled' if c.url_prev == '#' else '')}" href="${c.url_prev}" title="${_('Previous commit')}"><i class="icon-left"></i></a>
</div>
${h.hidden('refs_filter')}
<div class="info_box_elem next">
<a id="next_commit_link" data-commit-id="${c.next_commit.raw_id}" class=" ${('disabled' if c.url_next == '#' else '')}" href="${c.url_next}" title="${_('Next commit')}"><i class="icon-right"></i></a>
</div>
</div>
% if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
<div>
<a class="btn btn-primary new-file" href="${h.route_path('repo_files_upload_file',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path)}">
${_('Upload File')}
</a>
<a class="btn btn-primary new-file" href="${h.route_path('repo_files_add_file',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path)}">
${_('Add File')}
</a>
</div>
% endif
% if c.enable_downloads:
<% at_path = '{}'.format(request.GET.get('at') or c.commit.raw_id[:6]) %>
<div class="btn btn-default new-file">
% if c.f_path == '/':
<a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname='{}.zip'.format(c.commit.raw_id))}">
${_('Download full tree ZIP')}
</a>
% else:
<a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname='{}.zip'.format(c.commit.raw_id), _query={'at_path':c.f_path})}">
${_('Download this tree ZIP')}
</a>
% endif
</div>
% endif
<div class="files-quick-filter">
<ul class="files-filter-box">
<li class="files-filter-box-path">
<i class="icon-search"></i>
</li>
<li class="files-filter-box-input">
<input onkeydown="NodeFilter.initFilter(event)" class="init" type="text" placeholder="Quick filter" name="filter" size="25" id="node_filter" autocomplete="off">
</li>
</ul>
</div>
</div>
</div>
## file tree is computed from caches, and filled in
<div id="file-tree">
${c.file_tree |n}
</div>
%if c.readme_data:
<div id="readme" class="anchor">
<div class="box">
<div class="readme-title" title="${h.tooltip(_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1]))}">
<div>
<i class="icon-file-text"></i>
<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>
</div>
</div>
<div class="readme codeblock">
<div class="readme_box">
${c.readme_data|n}
</div>
</div>
</div>
</div>
%endif
</div>