Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navbar title configuration with RAILS_TITLE and RAILS_ICON #106

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/components/layout/navbar_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def navbar

# Generate the navbar-title html block
def navbar_title
safe_join([ icon_text("fas fa-signature", "P"), "artecipo" ])
title = ENV.fetch("RAILS_TITLE", "Partecipo")
safe_join([ icon_text(ENV.fetch("RAILS_ICON", "fas fa-signature"), title.first), title[1..] ])
end

# Gerate the navbar-start html block
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ x-rails_conf: &rails_conf
### RAILS_RESTRICTED, If true entire site require authentication
# RAILS_RESTRICTED: true
RAILS_MASTER_KEY: 5cdcc57160c136623510fa73c7a7587f
### RAILS_ICON, Used for navbar
RAILS_ICON: fas fa-signature
### RAILS_TITLE, used for html head title, email and navbar
RAILS_TITLE: Partecipo
RAILS_DESCRIPTION: Partecipo description
RAILS_HEAD_URL: /head.html
Expand Down
Loading