Port admin to new layout
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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) %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user