Removes unused header css method

This commit is contained in:
Alberto Garcia Cabeza
2015-12-15 17:04:03 +01:00
parent a48574e99a
commit e40f411ecc
4 changed files with 3 additions and 7 deletions

View File

@@ -11,10 +11,6 @@ module ApplicationHelper
request.path == '/opendata'
end
def header_css
home_page? || opendata_page? ? '' : 'results'
end
# if current path is /debates current_path_with_query_params(foo: 'bar') returns /debates?foo=bar
# notice: if query_params have a param which also exist in current path, it "overrides" (query_params is merged last)
def current_path_with_query_params(query_parameters)

View File

@@ -1,4 +1,4 @@
<header class="<%= header_css %>">
<header>
<section class="top-links">
<div class="row">
<%= render 'shared/locale_switcher' %>

View File

@@ -1,4 +1,4 @@
<header class="<%= header_css %>">
<header>
<section class="top-links show-for-medium-up">
<div class="row">
<%= render "shared/locale_switcher" %>

View File

@@ -16,7 +16,7 @@
</head>
<body class="admin">
<header class="<%= header_css %>">
<header>
<div class="top-links">
<div class="row">
<%= render 'shared/locale_switcher' %>