mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-29 15:56:21 +00:00
18 lines
861 B
Text
18 lines
861 B
Text
-# Detail Cola de Moderación
|
|
|
|
@param :id [String] El ID opcional sirve para mantener el historial de
|
|
cuál estaba abierto y recuperarlo al cargar la página
|
|
@param :summary [String] El resumen
|
|
@param :summary_class [String] Clases para el summary
|
|
|
|
- local_assigns[:summary_class] ||= 'h3'
|
|
- local_assigns[:closed] ||= '▶'.html_safe;
|
|
- local_assigns[:open] ||= '▼'.html_safe;
|
|
|
|
|
|
%details.details.py-2{ id: local_assigns[:id], data: { controller: 'details', action: 'toggle->details#store' }, class: local_assigns[:details_class] }
|
|
%summary.d-flex.flex-row.align-items-center.justify-content-between{ class: local_assigns[:summary_class] }
|
|
%span= summary
|
|
%span.hide-when-open{ class: local_assigns[:open_class] }= local_assigns[:closed]
|
|
%span.show-when-open{ class: local_assigns[:closed_class] }= local_assigns[:open]
|
|
= yield
|