Skip to content
Permalink
Browse files

Use setting title to display in the shared header

  • Loading branch information...
GustavoCaso committed Feb 17, 2018
1 parent 790f972 commit a8551c8e5c88611ecfe46716d8c3bec49b252e88
Showing with 8 additions and 3 deletions.
  1. +1 −2 apps/web/templates/shared/_header.html.slim
  2. +7 −1 apps/web/views/application_layout.rb
@@ -1,4 +1,4 @@
h2 Hanami contributors
h2 = title

.contributors_range
ul.nav.nav-pills
@@ -16,4 +16,3 @@ h2 Hanami contributors
a href='http://hanamirb.org' target='_blank' Main site
li role="presentation"
a href='https://github.com/hanami/contributors' target='_blank' Source

@@ -4,7 +4,7 @@ class ApplicationLayout
include Web::Layout

def title
'Hanami contributors'
settings && settings[:title]
end

def all_time_page_class
@@ -30,6 +30,12 @@ def this_year_page_class
def faq_page_class
nil
end

private

def settings
@settings ||= SettingRepository.new.for_display
end
end
end
end

0 comments on commit a8551c8

Please sign in to comment.
You can’t perform that action at this time.