Removes unused header css method
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<header class="<%= header_css %>">
|
||||
<header>
|
||||
<section class="top-links">
|
||||
<div class="row">
|
||||
<%= render 'shared/locale_switcher' %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<header class="<%= header_css %>">
|
||||
<header>
|
||||
<section class="top-links show-for-medium-up">
|
||||
<div class="row">
|
||||
<%= render "shared/locale_switcher" %>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</head>
|
||||
|
||||
<body class="admin">
|
||||
<header class="<%= header_css %>">
|
||||
<header>
|
||||
<div class="top-links">
|
||||
<div class="row">
|
||||
<%= render 'shared/locale_switcher' %>
|
||||
|
||||
Reference in New Issue
Block a user