Adds new styles for pages

This commit is contained in:
Alberto Garcia Cabeza
2015-09-03 14:15:01 +02:00
parent 8559833cc0
commit 3255995ea1
5 changed files with 73 additions and 48 deletions

View File

@@ -11,8 +11,16 @@ module ApplicationHelper
request.path == '/'
end
def transparency_page?
request.path == '/transparency'
end
def opendata_page?
request.path == '/opendata'
end
def header_css
home_page? ? '' : 'results'
home_page? || transparency_page? || opendata_page? ? '' : 'results'
end
# if current path is /debates current_path_with_query_params(foo: 'bar') returns /debates?foo=bar