5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 16:26:21 +00:00
panel/app/views/components/_btn_base.haml

9 lines
225 B
Text
Raw Permalink Normal View History

-# Componente Botón general Moderación
- local_assigns[:method] ||= 'patch'
- local_assigns[:class] = "btn #{local_assigns[:class]}"
- local_assigns.delete(:text)
= button_to(path, **local_assigns.compact) do
= text