rails_modal_manager 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/rails_modal_manager/_header.html.erb +30 -30
- data/lib/rails_modal_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d03fb7db1ba740c753b18ba28d4f107a3cf64df060224b92f34cd1973132bcca
|
|
4
|
+
data.tar.gz: e61d85e7cf871e4ee369c53928f8b71914894bc2223640dcb4d678a03ac5dda9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c875b4bc4e68bd5aec361e19197005a73c98e8b5febf416c9eb2eb1ea0ad28bfac283d570d91bb1069d9b9bbcc48ab12a92b1d3d1ff0bfa52e4ff411c51765de
|
|
7
|
+
data.tar.gz: 7bb93c94b22eeae957922a018a3c2b5d16a81eaeadf9aa89047d62499f746e890beaaa3a8dad39c0084cfe64367aeb0c60667bdd73a1d7dd276b82eaacc7cd18
|
|
@@ -96,6 +96,36 @@
|
|
|
96
96
|
</button>
|
|
97
97
|
<% end %>
|
|
98
98
|
|
|
99
|
+
<%# Custom header buttons (before size controls) %>
|
|
100
|
+
<% header_buttons.each do |btn| %>
|
|
101
|
+
<%
|
|
102
|
+
btn_id = btn[:id]
|
|
103
|
+
btn_icon = btn[:icon]
|
|
104
|
+
btn_icon_svg = btn[:icon_svg] || (btn_icon && header_button_icons[btn_icon])
|
|
105
|
+
btn_label = btn[:label]
|
|
106
|
+
btn_title = btn[:title] || ""
|
|
107
|
+
btn_variant = btn[:variant] || "default"
|
|
108
|
+
btn_onclick = btn[:onclick]
|
|
109
|
+
btn_data_action = btn[:data_action]
|
|
110
|
+
btn_class = "rmm-header-btn rmm-header-btn-custom"
|
|
111
|
+
btn_class += " rmm-header-btn-#{btn_variant}" if btn_variant != "default"
|
|
112
|
+
btn_class += " rmm-header-btn-text" if btn_label.present?
|
|
113
|
+
%>
|
|
114
|
+
<button type="button"
|
|
115
|
+
<% if btn_id.present? %>id="<%= btn_id %>"<% end %>
|
|
116
|
+
class="<%= btn_class %>"
|
|
117
|
+
<% if btn_onclick.present? %>onclick="<%= btn_onclick %>"<% end %>
|
|
118
|
+
<% if btn_data_action.present? %>data-action="<%= btn_data_action %>"<% end %>
|
|
119
|
+
title="<%= btn_title %>">
|
|
120
|
+
<% if btn_icon_svg.present? %>
|
|
121
|
+
<%= btn_icon_svg.html_safe %>
|
|
122
|
+
<% end %>
|
|
123
|
+
<% if btn_label.present? %>
|
|
124
|
+
<span class="rmm-header-btn-label"><%= btn_label %></span>
|
|
125
|
+
<% end %>
|
|
126
|
+
</button>
|
|
127
|
+
<% end %>
|
|
128
|
+
|
|
99
129
|
<% if show_size_controls %>
|
|
100
130
|
<%# Default size button - restores to original size %>
|
|
101
131
|
<button type="button"
|
|
@@ -128,36 +158,6 @@
|
|
|
128
158
|
</button>
|
|
129
159
|
<% end %>
|
|
130
160
|
|
|
131
|
-
<%# Custom header buttons %>
|
|
132
|
-
<% header_buttons.each do |btn| %>
|
|
133
|
-
<%
|
|
134
|
-
btn_id = btn[:id]
|
|
135
|
-
btn_icon = btn[:icon]
|
|
136
|
-
btn_icon_svg = btn[:icon_svg] || (btn_icon && header_button_icons[btn_icon])
|
|
137
|
-
btn_label = btn[:label]
|
|
138
|
-
btn_title = btn[:title] || ""
|
|
139
|
-
btn_variant = btn[:variant] || "default"
|
|
140
|
-
btn_onclick = btn[:onclick]
|
|
141
|
-
btn_data_action = btn[:data_action]
|
|
142
|
-
btn_class = "rmm-header-btn rmm-header-btn-custom"
|
|
143
|
-
btn_class += " rmm-header-btn-#{btn_variant}" if btn_variant != "default"
|
|
144
|
-
btn_class += " rmm-header-btn-text" if btn_label.present?
|
|
145
|
-
%>
|
|
146
|
-
<button type="button"
|
|
147
|
-
<% if btn_id.present? %>id="<%= btn_id %>"<% end %>
|
|
148
|
-
class="<%= btn_class %>"
|
|
149
|
-
<% if btn_onclick.present? %>onclick="<%= btn_onclick %>"<% end %>
|
|
150
|
-
<% if btn_data_action.present? %>data-action="<%= btn_data_action %>"<% end %>
|
|
151
|
-
title="<%= btn_title %>">
|
|
152
|
-
<% if btn_icon_svg.present? %>
|
|
153
|
-
<%= btn_icon_svg.html_safe %>
|
|
154
|
-
<% end %>
|
|
155
|
-
<% if btn_label.present? %>
|
|
156
|
-
<span class="rmm-header-btn-label"><%= btn_label %></span>
|
|
157
|
-
<% end %>
|
|
158
|
-
</button>
|
|
159
|
-
<% end %>
|
|
160
|
-
|
|
161
161
|
<% if closable %>
|
|
162
162
|
<button type="button"
|
|
163
163
|
class="rmm-header-btn rmm-close-btn"
|