diff --git a/app/helpers/admin/application_helper.rb b/app/helpers/admin/application_helper.rb index 5fc9a78765c602c96c9385a75264c611e7a2eed1..7ff7d6eb32f71e7a0f15753cd03d44b892ef5be3 100644 --- a/app/helpers/admin/application_helper.rb +++ b/app/helpers/admin/application_helper.rb @@ -110,15 +110,15 @@ module Admin::ApplicationHelper def icon_for(identifier) icons = { - 'communication.website.menu.item.kind.administrators' => 'fas fa-code', + 'communication.website.menu.item.kind.administrators' => 'fas fa-user', 'communication.website.menu.item.kind.authors' => 'fas fa-user', 'communication.website.menu.item.kind.blank' => 'fas fa-font', 'communication.website.menu.item.kind.news' => 'fas fa-newspaper', 'communication.website.menu.item.kind.news_article' => 'fas fa-newspaper', 'communication.website.menu.item.kind.news_category' => 'fas fa-newspaper', 'communication.website.menu.item.kind.page' => 'fas fa-file', - 'communication.website.menu.item.kind.program' => 'fas fa-code', - 'communication.website.menu.item.kind.programs' => 'fas fa-code', + 'communication.website.menu.item.kind.program' => 'fas fa-graduation-cap', + 'communication.website.menu.item.kind.programs' => 'fas fa-graduation-cap', 'communication.website.menu.item.kind.research_article' => 'fas fa-flask', 'communication.website.menu.item.kind.research_articles' => 'fas fa-flask', 'communication.website.menu.item.kind.research_volumes' => 'fas fa-flask', diff --git a/app/views/admin/communication/website/index_pages/index.html.erb b/app/views/admin/communication/website/index_pages/index.html.erb index 650fbe66fc97455afa77fbe43c860e4e4d5f6bc7..e6daccbb1eb0db064f4e9f95acef967728c938d0 100644 --- a/app/views/admin/communication/website/index_pages/index.html.erb +++ b/app/views/admin/communication/website/index_pages/index.html.erb @@ -2,11 +2,21 @@ <%= render 'admin/communication/websites/sidebar' do %> - <ul> - <% @kinds.each do |key, value| %> - <li><%= link_to t("communication.website.index_pages.default.#{key}.title"), - admin_communication_website_index_path(website_id: @website.id, kind: key) %></li> - <% end %> - </ul> + <div class="row"> + <% @kinds.each do |key, value| %> + <div class="col-md-6 col-lg-4 col-xl-3"> + <div class="card"> + <div class="card-header"> + <h5 class="card-title"><%= t("communication.website.index_pages.default.#{key}.title") %></h5> + </div> + <div class="card-body"> + <%= link_to t("edit"), + admin_communication_website_index_path(website_id: @website.id, kind: key), + class: button_classes('stretched-link') %> + </div> + </div> + </div> + <% end %> + </div> <% end %>