summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-14 01:22:11 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-14 01:22:11 +0200
commit19b865108c26cf18c26697fee080844de94fb522 (patch)
tree33af772574dacaa43d5ab0f79a2abc64a7bd9fa5 /app/views/nodes
parent45d422f6582ac2ebf455a8c8168738db54a76582 (diff)
Scope admin form conventions with a class
.admin_layout replaces the #admin_layout. All css rules and javascript queries were changed along and rules simplified where the opportunity arose.
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/edit.html.erb2
-rw-r--r--app/views/nodes/show.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index d19fdd95..269e0e49 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -1,6 +1,6 @@
1<h1><%= title_for_node(@node) %></h1> 1<h1><%= title_for_node(@node) %></h1>
2 2
3<div id="admin_layout"> 3<div class="admin_layout">
4 <div class="node_action_bar"> 4 <div class="node_action_bar">
5 <%= button_to t(".unlock_back"), unlock_node_path(@node), method: :put, 5 <%= button_to t(".unlock_back"), unlock_node_path(@node), method: :put,
6 form: { class: 'button_to state_changing' }, 6 form: { class: 'button_to state_changing' },
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index af55d699..cf1d79c1 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -1,6 +1,6 @@
1<% locked_by_other = @node.locked? && @node.lock_owner != current_user %> 1<% locked_by_other = @node.locked? && @node.lock_owner != current_user %>
2<% may_change_live = current_user.may_change_live?(@node) %> 2<% may_change_live = current_user.may_change_live?(@node) %>
3<div id="admin_layout" class="show_node"> 3<div class="admin_layout show_node">
4 <h1><%= title_for_node(@node) %> <small>(<%= I18n.default_locale.to_s.upcase %>)</small></h1> 4 <h1><%= title_for_node(@node) %> <small>(<%= I18n.default_locale.to_s.upcase %>)</small></h1>
5 5
6 <div class="layout_row"> 6 <div class="layout_row">