Skip to content
Snippets Groups Projects
Commit 79ec7a7a authored by pabois's avatar pabois
Browse files

sass navbar

parent 2f9ba7a0
No related branches found
No related tags found
No related merge requests found
main.content
padding-bottom: 65px
.sidebar.collapsed + .footer.fixed
left: 0
transition: left .35s ease-in-out
.footer.fixed
bottom: 0
left: 260px
padding: .5rem
position: fixed
right: 0
z-index: 1
table.table-striped
tbody
......
class Server::ApplicationController < ApplicationController
layout 'server/layouts/application'
layout 'admin/layouts/application'
before_action :authenticate_user!, :ensure_user_if_server_admin
......
......@@ -26,6 +26,7 @@
</div>
<div class="wrapper">
<%= render 'admin/application/nav' %>
<%= render 'admin/application/footer' %>
<div class="main">
<%= render 'admin/application/top' %>
<main class="content">
......@@ -37,7 +38,6 @@
<%= yield %>
</div>
</main>
<%= render 'admin/application/footer' %>
</div>
</div>
<%= javascript_include_tag 'admin' %>
......
......@@ -8,7 +8,7 @@
</div>
</div>
<% content_for :buttons do %>
<% content_for :action_bar_right do %>
<%= submit f %>
<% end %>
<% end %>
......@@ -5,6 +5,6 @@
<%= @language.iso_code %>
</p>
<% content_for :buttons do %>
<% content_for :action_bar_right do %>
<%= link_to t('edit'), edit_server_language_path(@language), class: button_classes %>
<% end %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><%= content_for?(:title) ? raw("#{yield(:title)} ∙ Osuny")
: 'Osuny' %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap" rel="stylesheet">
<%= stylesheet_link_tag 'admin', media: 'all' %>
<%= favicon_link_tag 'favicon.png' %>
</head>
<body data-theme="default" data-layout="fluid" data-sidebar-position="left" data-sidebar-behavior="sticky">
<div class="wrapper">
<nav id="sidebar" class="sidebar">
<div class="sidebar-content js-simplebar">
<%= link_to server_root_path, class: 'sidebar-brand' do %>
<%= image_tag 'osuny-white.svg', class: 'img-fluid' %>
<% end %>
<%= render_navigation context: :server %>
</div>
</nav>
<div class="main">
<%= render 'admin/application/top' %>
<main class="content">
<div class="container-fluid p-0">
<h1><%= yield :title %></h1>
<%= yield %>
</div>
</main>
<%= render 'admin/application/footer' %>
</div>
</div>
<%= javascript_include_tag 'admin' %>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment