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

Button

parent bcd6e73a
No related branches found
No related tags found
No related merge requests found
<%
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 %>
......@@ -152,6 +152,7 @@ en:
admin:
communication:
blocks:
add: Add block
alerts:
file_is_too_big: File is too big!
categories:
......
......@@ -152,6 +152,7 @@ fr:
admin:
communication:
blocks:
add: Ajouter un bloc
alerts:
file_is_too_big: Le fichier est trop lourd !
categories:
......
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