Skip to content

Commit 69ab778

Browse files
committed
button logout added to sidebar
1 parent 430f231 commit 69ab778

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

app/assets/stylesheets/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.navigation {
2+
display: flex;
3+
flex-direction: column;
4+
justify-content: space-between;
5+
}

app/views/admin/application/_navigation.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ for all resources in the admin dashboard,
77
as defined by the routes in the `admin/` namespace
88
%>
99

10-
<nav class="navigation" style="display: flex; flex-direction: column; justify-content: space-between;">
10+
<nav class="navigation">
1111
<div>
1212
<%= link_to(t("administrate.navigation.back_to_app"), root_url, class: "button button--alt button--nav") if defined?(root_url) %>
1313

app/views/layouts/application.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@
1212

1313
<body>
1414
<%= yield %>
15-
1615
</body>
1716
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Administrate::Engine.add_stylesheet("custom.css")

config/initializers/assets.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212
# application.js, application.css, and all non-JS/CSS in the app/assets
1313
# folder are already added.
1414
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
15+
16+
Rails.application.config.assets.precompile += %w[custom.css]

0 commit comments

Comments
 (0)