diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 04:53:56 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 04:53:56 +0200 |
| commit | 3ae22916cd5fd0f63ffacc7a9e1aa97d311b83e6 (patch) | |
| tree | 05fa25472040295c9a318e17a03d9496cf91d825 /app/views/events/index.html.erb | |
| parent | 332ffbeed90cf07342925b82ed3fda1762346be2 (diff) | |
Fix button height mismatch between bordered and pill button styles, extend table styling to assets/users/events
Fix button height mismatch, extend table styling to assets/users/events
a.action_button (bordered) and the state_changing/destructive/computation
pills (borderless) rendered at different heights, since each pill variant
set its own padding at higher specificity than the shared rule meant to
equalize them. Padding and border-radius now live only in one shared
rule; also restores the #page_editor prefix on a.action_button, needed
to outrank the #page_editor a wavy-underline rule.
table.assets_table, table.user_table, and table.events_table now share
table.node_table's border-collapse/header/hover treatment. tr
min-height is dropped -- browsers don't honor height on <tr> -- in
favor of cell padding, kept at zero for node_table (spacing already
comes from its h4/p content) and set to 8px for the plain-text tables.
Diffstat (limited to 'app/views/events/index.html.erb')
| -rw-r--r-- | app/views/events/index.html.erb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 3143a7b1..c3e0e5ae 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <h1>Listing events</h1> | 1 | <h1>Listing events</h1> |
| 2 | 2 | ||
| 3 | <table class="events_table"> | 3 | <table class="events_table"> |
| 4 | <tr> | 4 | <tr class="header"> |
| 5 | <th>Title</th> | 5 | <th>Title</th> |
| 6 | <th>Start time</th> | 6 | <th>Start time</th> |
| 7 | <th>End time</th> | 7 | <th>End time</th> |
| @@ -9,23 +9,21 @@ | |||
| 9 | <th>Allday</th> | 9 | <th>Allday</th> |
| 10 | <th>Url</th> | 10 | <th>Url</th> |
| 11 | <th>Node</th> | 11 | <th>Node</th> |
| 12 | <th>Action</th> | 12 | <th></th> |
| 13 | </tr> | 13 | </tr> |
| 14 | 14 | ||
| 15 | <% @events.each do |event| %> | 15 | <% @events.each do |event| %> |
| 16 | <tr> | 16 | <tr> |
| 17 | <td><%=h event.display_title %></td> | 17 | <td><%= link_to event.display_title, event %></td> |
| 18 | <td><%=h event.start_time %></td> | 18 | <td><%=h event.start_time %></td> |
| 19 | <td><%=h event.end_time %></td> | 19 | <td><%=h event.end_time %></td> |
| 20 | <td><%=h event.rrule %></td> | 20 | <td><%=h event.rrule %></td> |
| 21 | <td><%=h event.allday %></td> | 21 | <td><%=h event.allday %></td> |
| 22 | <td><%=h event.url %></td> | 22 | <td><%=h event.url %></td> |
| 23 | <td><%= event.node ? link_to(event.node_id, node_path(event.node)) : '' %></td> | 23 | <td><%= event.node ? link_to(event.node_id, node_path(event.node)) : '' %></td> |
| 24 | <td><%= link_to 'show', event %> | <%= link_to 'edit', edit_event_path(event) %> | <%= button_to 'destroy', event, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } %></td> | 24 | <td><%= link_to 'edit', edit_event_path(event) %></td> |
| 25 | </tr> | 25 | </tr> |
| 26 | <% end %> | 26 | <% end %> |
| 27 | </table> | 27 | </table> |
| 28 | 28 | ||
| 29 | <br /> | 29 | <%= link_to 'New event', new_event_path, class: 'action_button' %> |
| 30 | |||
| 31 | <%= link_to 'New event', new_event_path %> | ||
