mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add default favicon and logo
This commit is contained in:
BIN
app/javascript/images/favicon.png
Normal file
BIN
app/javascript/images/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
app/javascript/images/logo.png
Normal file
BIN
app/javascript/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
@@ -10,6 +10,8 @@ require("channels")
|
||||
|
||||
require("./bootstrap_custom")
|
||||
require("../stylesheets/main")
|
||||
require("../images/favicon.png")
|
||||
require("../images/logo.png")
|
||||
|
||||
// Uncomment to copy all static images under ../images to the output folder and reference
|
||||
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.boardsNav {
|
||||
.nav-item {
|
||||
@extend
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
<nav class="navbar navbar-expand-md navbar-light">
|
||||
<div class="container">
|
||||
<%=
|
||||
if Rails.application.show_logo?
|
||||
link_to image_tag(asset_pack_path('media/images/logo.png')), root_path, class: 'logo navbar-brand'
|
||||
end
|
||||
%>
|
||||
<%= link_to Rails.application.name, root_path, class: 'navbar-brand' %>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
|
||||
<%= favicon_link_tag asset_pack_path('media/images/favicon.png') %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user