diff --git a/app/views/admin/communication/blocks/_list.html.erb b/app/views/admin/communication/blocks/_list.html.erb index c43ca6f0de33c6f1e2e6871660c5b8f7805d4ca3..856b5fdc9089a1da4942f664d80d35c5e4149908 100644 --- a/app/views/admin/communication/blocks/_list.html.erb +++ b/app/views/admin/communication/blocks/_list.html.erb @@ -1,6 +1,6 @@ <% action = '' -action += link_to t('add'), +action += link_to t('admin.communication.blocks.add'), new_admin_communication_block_path(about_id: about.id, about_type: about.class.name), class: button_classes if can? :create, Communication::Block %> @@ -33,6 +33,9 @@ action += link_to t('add'), <% end %> </tbody> </table> + <% if about.blocks.count > 9 %> + <%= raw action %> + <% end %> </div> <% end %> <% end %> diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 7d36a67f1e28dff599f7b68591d1097e6d56857f..5882e7ef89c8d4438d974a49406d52d7dec0b627 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -152,6 +152,7 @@ en: admin: communication: blocks: + add: Add block alerts: file_is_too_big: File is too big! categories: diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 48d61f5d903652224feae0d1c7fff8edbdbddc0c..06742087e3317c21c41e4d2dd07babe81ad45f54 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -152,6 +152,7 @@ fr: admin: communication: blocks: + add: Ajouter un bloc alerts: file_is_too_big: Le fichier est trop lourd ! categories: