2024-02-29 19:27:48 +00:00
|
|
|
-#
|
|
|
|
Detail Cola de Moderación
|
2024-01-22 17:17:24 +00:00
|
|
|
|
2024-03-04 16:12:22 +00:00
|
|
|
@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'
|
2024-03-08 16:58:10 +00:00
|
|
|
- local_assigns[:closed] ||= '▶'.html_safe;
|
|
|
|
- local_assigns[:open] ||= '▼'.html_safe;
|
2024-03-04 16:12:22 +00:00
|
|
|
|
2024-03-08 16:58:10 +00:00
|
|
|
|
|
|
|
%details.details.py-2{ id: local_assigns[:id], data: { controller: 'details', action: 'toggle->details#store' }, class: local_assigns[:details_class] }
|
2024-03-04 16:12:22 +00:00
|
|
|
%summary.d-flex.flex-row.align-items-center.justify-content-between{ class: local_assigns[:summary_class] }
|
|
|
|
%span= summary
|
2024-03-08 16:58:10 +00:00
|
|
|
%span.hide-when-open{ class: local_assigns[:open_class] }= local_assigns[:closed]
|
|
|
|
%span.show-when-open{ class: local_assigns[:closed_class] }= local_assigns[:open]
|
2024-02-06 15:57:42 +00:00
|
|
|
= yield
|