file-manager/app/views/admin/file_managers/index.html.erb

39 lines
1.1 KiB
Plaintext

<div class="box-content">
<ul style="display: flex; flex-wrap: wrap;">
<% modules_info = @setting.class.get_models_uploaders
@setting.get_modules_keys.each do |k|
if k == 'all'
info = @setting.class.get_module_info(k)
else
next if modules_info[k].keys.detect{|_model| @setting.modules_saved_info[_model.to_s]}.nil?
info = @setting.class.get_module_info(k)
next if info[:sidebar] && !display_sidebar?(info[:sidebar])
next if info.nil?
end
%>
<li>
<span>
<a href="<%= module_admin_file_manager_path(k) %>" title="<%= info[:title] %>">
<i class="<%= info[:icon_class] %> icon_big"></i>
<%= info[:title] %>
</a>
</span>
</li>
<% end %>
</ul>
</div>
<style type="text/css">
i.icon_big{
font-size: 3em;
display: block;
}
#main-wrap li{
font-size: 1.3em;
list-style: none;
float: left;
margin: 0.8em;
}
#main-wrap a{
color: black;
}
</style>