#1119 UI better solution
This commit is contained in:
parent
d08d0e00c6
commit
b6b0f9f135
@ -30,9 +30,15 @@
|
|||||||
|
|
||||||
<% html_title l(:dmsf) %>
|
<% html_title l(:dmsf) %>
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<% if @file_manipulation_allowed && !@locked_for_user && !@system_folder %>
|
<% unless @locked_for_user || @system_folder %>
|
||||||
<%= link_to l(:label_attachment_new), multi_dmsf_upload_path(id: @project, folder_id: @folder),
|
<% if @file_manipulation_allowed %>
|
||||||
class: 'icon icon-add' %>
|
<%= link_to l(:label_attachment_new), multi_dmsf_upload_path(id: @project, folder_id: @folder),
|
||||||
|
class: 'icon icon-add' %>
|
||||||
|
<% end %>
|
||||||
|
<% if @folder_manipulation_allowed %>
|
||||||
|
<%= link_to l(:link_create_folder), new_dmsf_path(id: @project, parent_id: @folder),
|
||||||
|
title: l(:link_create_folder), class: 'icon icon-add' %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if defined?(EasyExtensions) %>
|
<% if defined?(EasyExtensions) %>
|
||||||
<%= render partial: 'dmsf_context_menus/main', locals: {
|
<%= render partial: 'dmsf_context_menus/main', locals: {
|
||||||
|
|||||||
@ -59,10 +59,6 @@
|
|||||||
type: 'link_from'), title: l(:title_create_link),
|
type: 'link_from'), title: l(:title_create_link),
|
||||||
class: 'icon icon-link' %>
|
class: 'icon icon-link' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= link_to(l(:link_create_folder),
|
|
||||||
new_dmsf_path(id: project, parent_id: folder),
|
|
||||||
title: l(:link_create_folder),
|
|
||||||
class: 'icon icon-add') unless locked_for_user %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if trash_enabled %>
|
<% if trash_enabled %>
|
||||||
<%= link_to l(:link_trash_bin), trash_dmsf_path(project), title: l(:link_trash_bin), class: 'icon icon-del' %>
|
<%= link_to l(:link_trash_bin), trash_dmsf_path(project), title: l(:link_trash_bin), class: 'icon icon-del' %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user