<%inherit file="/base/base.html"/>

<%def name="title()">
    ${c.repo_name} ${_('Files')} - ${c.rhodecode_name}
</%def>

<%def name="breadcrumbs_links()">
    ${h.link_to(u'Home',h.url('/'))}
    &raquo;
    ${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))}
    &raquo;
    ${_('files')}
    %if c.file:
        @ r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)}
    %endif
</%def>

<%def name="page_nav()">
    ${self.menu('files')}
</%def>

<%def name="main()">
<div class="box">
    <!-- box / title -->
    <div class="title">
        ${self.breadcrumbs()}
	    <ul class="links">
		    <li>
		      <span style="text-transform: uppercase;"><a href="#">${_('branch')}: ${c.changeset.branch}</a></span>
	        </li>
	    </ul>
    </div>
    <div class="table">
		<div id="files_data">
			<%include file='files_ypjax.html'/>
		</div>
    </div>
</div>
<script type="text/javascript">
var YPJAX_TITLE = "${c.repo_name} ${_('Files')} - ${c.rhodecode_name}";
var current_url = "${h.url.current()}";
var node_list_url = '${h.url("files_home",repo_name=c.repo_name,revision=c.changeset.raw_id,f_path='__FPATH__')}';
var url_base = '${h.url("files_nodelist_home",repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.file.path)}';
var truncated_lbl = "${_('search truncated')}";
var nomatch_lbl = "${_('no matching files')}";
fileBrowserListeners(current_url, node_list_url, url_base, truncated_lbl, nomatch_lbl);
</script>
</%def>
