From c150885524ab36efbbd1df3187565dfecc08e9bd Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 14 Feb 2023 18:49:23 +0100 Subject: [PATCH] layout --- app/assets/stylesheets/admin/pure/blocks.sass | 4 +++- app/views/admin/communication/blocks/_list.html.erb | 13 ++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/admin/pure/blocks.sass b/app/assets/stylesheets/admin/pure/blocks.sass index 8b02bcf75..462e9560f 100644 --- a/app/assets/stylesheets/admin/pure/blocks.sass +++ b/app/assets/stylesheets/admin/pure/blocks.sass @@ -3,6 +3,8 @@ &__handle width: 20px &__image - width: 150px + width: 170px + img + width: 150px &__buttons width: 170px \ No newline at end of file diff --git a/app/views/admin/communication/blocks/_list.html.erb b/app/views/admin/communication/blocks/_list.html.erb index 346144498..482f2d6fd 100644 --- a/app/views/admin/communication/blocks/_list.html.erb +++ b/app/views/admin/communication/blocks/_list.html.erb @@ -8,6 +8,14 @@ action += link_to t('admin.communication.blocks.add'), <% if about.blocks.any? %> <div class="table-responsive"> <table class="<%= table_classes %>"> + <thead> + <tr> + <th></th> + <th><%= Communication::Block.human_attribute_name :title %></th> + <th><%= Communication::Block.human_attribute_name :template %></th> + <th></th> + </tr> + </thead> <tbody data-sortable data-sort-url="<%= reorder_admin_communication_blocks_path %>"> <% about.blocks.ordered.each do |block| %> <tr data-id="<%= block.id %>" class="<%= 'draft' unless block.published? %>"> @@ -19,9 +27,8 @@ action += link_to t('admin.communication.blocks.add'), <span class="small"><%= block.template_kind_i18n %></span> <%= render 'admin/application/a11y/status', about: block %> </td> - <td class="p-0 blocks__list__image"> - <%= image_tag "communication/blocks/templates/#{block.template_kind}.jpg", - height: "100px", alt: '', style:"max-height: 75px" %> + <td class="blocks__list__image"> + <%= image_tag "communication/blocks/templates/#{block.template_kind}.jpg", alt: '' %> </td> <td class="blocks__list__buttons"> <div class="btn-group"> -- GitLab