Instance helper to replace site title helper (#2038)
* Move site title helper to instance helper (name change only) * Remove newline in <title> tag * Add site_hostname helper method to wrap up local_domain value * Use site_hostname helper in places that need local_domain value
Showing
- app/helpers/instance_helper.rb 11 additions, 0 deletionsapp/helpers/instance_helper.rb
- app/mailers/application_mailer.rb 1 addition, 0 deletionsapp/mailers/application_mailer.rb
- app/mailers/user_mailer.rb 2 additions, 0 deletionsapp/mailers/user_mailer.rb
- app/views/about/more.html.haml 2 additions, 2 deletionsapp/views/about/more.html.haml
- app/views/about/show.html.haml 3 additions, 3 deletionsapp/views/about/show.html.haml
- app/views/about/terms.en.html.haml 1 addition, 1 deletionapp/views/about/terms.en.html.haml
- app/views/about/terms.no.html.haml 1 addition, 1 deletionapp/views/about/terms.no.html.haml
- app/views/accounts/show.html.haml 2 additions, 2 deletionsapp/views/accounts/show.html.haml
- app/views/api/oembed/show.json.rabl 1 addition, 1 deletionapp/views/api/oembed/show.json.rabl
- app/views/api/v1/instances/show.rabl 1 addition, 1 deletionapp/views/api/v1/instances/show.rabl
- app/views/home/initial_state.json.rabl 1 addition, 1 deletionapp/views/home/initial_state.json.rabl
- app/views/layouts/application.html.haml 1 addition, 1 deletionapp/views/layouts/application.html.haml
- app/views/layouts/mailer.text.erb 1 addition, 1 deletionapp/views/layouts/mailer.text.erb
- app/views/layouts/public.html.haml 1 addition, 1 deletionapp/views/layouts/public.html.haml
- app/views/shared/_landing_strip.html.haml 1 addition, 1 deletionapp/views/shared/_landing_strip.html.haml
- app/views/stream_entries/show.html.haml 1 addition, 1 deletionapp/views/stream_entries/show.html.haml
- spec/helpers/instance_helper_spec.rb 33 additions, 0 deletionsspec/helpers/instance_helper_spec.rb
- spec/helpers/site_title_helper_spec.rb 0 additions, 15 deletionsspec/helpers/site_title_helper_spec.rb
Loading
Please register or sign in to comment