##// END OF EJS Templates
hide add new file button if user has no permission for it
marcink -
r1486:92f0065b beta
parent child Browse files
Show More
@@ -26,9 +26,11
26 <div id="search_activate_id" class="search_activate">
26 <div id="search_activate_id" class="search_activate">
27 <a id="filter_activate" href="#">${_('search file list')}</a>
27 <a id="filter_activate" href="#">${_('search file list')}</a>
28 </div>
28 </div>
29 <div id="add_node_id" class="add_node">
29 % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
30 <a href="${h.url('files_add_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path)}">${_('add new file')}</a>
30 <div id="add_node_id" class="add_node">
31 </div>
31 <a href="${h.url('files_add_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path)}">${_('add new file')}</a>
32 </div>
33 % endif
32 <div>
34 <div>
33 <div id="node_filter_box_loading" style="display:none">${_('Loading file list...')}</div>
35 <div id="node_filter_box_loading" style="display:none">${_('Loading file list...')}</div>
34 <div id="node_filter_box" style="display:none">
36 <div id="node_filter_box" style="display:none">
General Comments 0
You need to be logged in to leave comments. Login now