#1477 PedroTeixido's patch
This commit is contained in:
parent
6a1985255f
commit
e66f8c4f88
@ -99,7 +99,7 @@
|
||||
<%= render partial: 'dmsf/sidebar' %>
|
||||
|
||||
<% project_or_folder = @folder? @folder : @project %>
|
||||
<% if project_or_folder&.watchers.present? %>
|
||||
<% if project_or_folder&.watchers.present? && User.current.allowed_to?(:view_dmsf_folder_watchers, @project) %>
|
||||
<div id="watchers">
|
||||
<% if @folder %>
|
||||
<%= render partial: 'watchers/watchers', locals: { watched: @folder } %>
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
<% end %>
|
||||
<span class="pagination"><%= pagination_links_full @revision_pages, @revision_count %></span>
|
||||
|
||||
<% if @file.watchers.present? %>
|
||||
<% if @file.watchers.present? && User.current.allowed_to?(:view_dmsf_file_watchers, @project) %>
|
||||
<% content_for :sidebar do %>
|
||||
<div id="watchers">
|
||||
<%= render partial: 'watchers/watchers', locals: { watched: @file } %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user