Compare commits
2 commits
cf6921329d
...
2cfcfaf69d
| Author | SHA1 | Date | |
|---|---|---|---|
| 2cfcfaf69d | |||
| 9aef987f95 |
8 changed files with 8 additions and 6 deletions
4
app/controllers/about_controller.rb
Normal file
4
app/controllers/about_controller.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
class AboutController < ApplicationController
|
||||
def terms
|
||||
end
|
||||
end
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
class StaticController < ApplicationController
|
||||
end
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
%link{href: image_path('favicon.png'), rel: 'icon'}
|
||||
= yield :stylesheets
|
||||
= stylesheet_link_tag "application"
|
||||
= render 'static/analytics'
|
||||
= render 'analytics'
|
||||
= yield :meta
|
||||
= open_graph_tags
|
||||
= csrf_meta_tag
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
%body{:class => body_class}
|
||||
#container
|
||||
= yield :before_title
|
||||
= render 'static/announcement'
|
||||
= render 'announcement'
|
||||
- if content_for?(:title) && show_title_header?
|
||||
%h1#title= yield :title
|
||||
= yield :before_flashes
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
%link{href: image_path('favicon.png'), rel: 'icon'}
|
||||
= stylesheet_link_tag 'fonts'
|
||||
= javascript_include_tag 'wardrobe-2020-page', defer: true
|
||||
= render 'static/analytics'
|
||||
= render 'analytics'
|
||||
= open_graph_tags
|
||||
= csrf_meta_tags
|
||||
= impress_2020_meta_tags
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ OpenneoImpressItems::Application.routes.draw do
|
|||
get '/donate' => 'fundraising/campaigns#current', as: :donate
|
||||
|
||||
# Static pages!
|
||||
get '/terms', to: "static#terms", as: :terms
|
||||
get '/terms', to: "about#terms", as: :terms
|
||||
|
||||
# Other useful lil things!
|
||||
get '/sitemap.xml' => 'sitemap#index', :as => :sitemap, :format => :xml
|
||||
|
|
|
|||
Loading…
Reference in a new issue