Skip to content
Snippets Groups Projects
Commit df6b1316 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'main' into extranet_files

parents 6d0a6c82 afc47b9a
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,11 @@ module Admin::ApplicationHelper
" #{string}"
end
def if_pure(string)
return '' if current_admin_theme != 'pure'
" #{string}"
end
def duplicate_link(object)
return unless can?(:update, object)
link_to t('admin.duplicate'),
......
......@@ -98,6 +98,33 @@
<% end %>
</div>
<% if current_admin_theme == 'pure' %>
<div class="row mt-5 pt-5">
<div class="col-lg-2">
<%= image_tag "admin/university.jpg", class: 'img-fluid'%>
</div>
<div class="col-lg-4">
<%= osuny_panel University.model_name.human do %>
<p><%= t('university.description.text') %></p>
<%= link_to t('show'), admin_university_root_path, class: 'stretched-link' %>
<% end %>
</div>
<div class="col-lg-4">
<ul class="list-unstyled mt-4">
<% University.parts.each do |part| %>
<%
class_name = part.first
path = send part.last
title = class_name.model_name.human(count: 2)
%>
<li>
<%= link_to title, path, class: 'btn btn-sm btn-light mt-3' %>
</li>
<% end %>
</div>
</div>
<% end %>
<% if current_admin_theme == 'appstack' %>
<div class="small mt-5">
<ul class="list-inline">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment