Port admin to new layout
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-20 11:13:07 -06:00
parent 4f2b35ccb9
commit 2e301c3019
19 changed files with 507 additions and 473 deletions

View File

@@ -1,22 +1,8 @@
<nav id="main-nav">
<div class="wrapper">
<ul class="pages">
<li>
<%= link_to "Dashboard", admin_root_path,
class: @current_section == :dashboard ? "active" : nil %>
</li>
<li>
<%= link_to "Invitations", admin_invitations_path,
class: @current_section == :invitations ? "active" : nil %>
</li>
<li>
<%= link_to "Donations", admin_donations_path,
class: @current_section == :donations ? "active" : nil %>
</li>
<li>
<%= link_to "LDAP Users", admin_ldap_users_path,
class: @current_section == :ldap_users ? "active" : nil %>
</li>
</ul>
</div>
</nav>
<%= link_to "Dashboard", admin_root_path,
class: main_nav_class(@current_section, :dashboard) %>
<%= link_to "Invitations", admin_invitations_path,
class: main_nav_class(@current_section, :invitations) %>
<%= link_to "Donations", admin_donations_path,
class: main_nav_class(@current_section, :contributions) %>
<%= link_to "LDAP Users", admin_ldap_users_path,
class: main_nav_class(@current_section, :ldap_users) %>

View File

@@ -1,2 +1,6 @@
<h2>Access forbidden</h2>
<p>Sorry, you're not allowed to access this page.</p>
<%= render partial: "components/header", locals: { page_title: "403" } %>
<%= render layout: "components/main_simple" do %>
<h2>Access forbidden</h2>
<p>Sorry, you're not allowed to access this page.</p>
<% end %>

View File

@@ -1,2 +1,6 @@
<h2>Not found</h2>
<p>Sorry, this page does not exist.</p>
<%= render partial: "components/header", locals: { page_title: "404" } %>
<%= render layout: "components/main_simple" do %>
<h2>Not found</h2>
<p>Sorry, this page does not exist.</p>
<% end %>

View File

@@ -0,0 +1,6 @@
<%= render partial: "components/header", locals: { page_title: "401" } %>
<%= render layout: "components/main_simple" do %>
<h2>Unauthorized</h2>
<p>This page needs authorization to access.</p>
<% end %>