mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add default favicon and logo
This commit is contained in:
@@ -6,4 +6,6 @@ POSTGRES_PASSWORD=yourpasswordhere
|
|||||||
APP_NAME="You App Name Here"
|
APP_NAME="You App Name Here"
|
||||||
|
|
||||||
EMAIL_CONFIRMATION=0
|
EMAIL_CONFIRMATION=0
|
||||||
|
|
||||||
|
SHOW_LOGO=1
|
||||||
POSTS_PER_PAGE=15
|
POSTS_PER_PAGE=15
|
||||||
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("./bootstrap_custom")
|
||||||
require("../stylesheets/main")
|
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
|
// 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' %>)
|
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
||||||
|
|||||||
@@ -18,6 +18,10 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo img {
|
||||||
|
width: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
.boardsNav {
|
.boardsNav {
|
||||||
.nav-item {
|
.nav-item {
|
||||||
@extend
|
@extend
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<nav class="navbar navbar-expand-md navbar-light">
|
<nav class="navbar navbar-expand-md navbar-light">
|
||||||
<div class="container">
|
<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' %>
|
<%= 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">
|
<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>
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||||
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||||
|
|
||||||
|
<%= favicon_link_tag asset_pack_path('media/images/favicon.png') %>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ module App
|
|||||||
ENV["EMAIL_CONFIRMATION"] == "1"
|
ENV["EMAIL_CONFIRMATION"] == "1"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def show_logo?
|
||||||
|
ENV["SHOW_LOGO"] == "1"
|
||||||
|
end
|
||||||
|
|
||||||
def posts_per_page
|
def posts_per_page
|
||||||
ENV["POSTS_PER_PAGE"].to_i
|
ENV["POSTS_PER_PAGE"].to_i
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user