Add default favicon and logo

This commit is contained in:
riggraz
2019-09-23 17:06:32 +02:00
parent 95ffd32420
commit e70d3bbda6
8 changed files with 19 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -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' %>)

View File

@@ -18,6 +18,10 @@
font-weight: 700;
}
.logo img {
width: 48px;
}
.boardsNav {
.nav-item {
@extend

View File

@@ -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>

View File

@@ -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>