[EXP] Show all admin settings tabs when javascript is disabled
Otherwise administrators cannot access the settings from other tabs.
This commit is contained in:
committed by
Javi Martín
parent
047cb2b76c
commit
6c4f917e2a
7
app/views/layouts/_no_script.html.erb
Normal file
7
app/views/layouts/_no_script.html.erb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<noscript>
|
||||||
|
<style type="text/css">
|
||||||
|
.admin .tabs-content > .tabs-panel {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</noscript>
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
<html <%= common_html_attributes %>>
|
<html <%= common_html_attributes %>>
|
||||||
<head>
|
<head>
|
||||||
<%= render "layouts/common_head", default_title: "Admin" %>
|
<%= render "layouts/common_head", default_title: "Admin" %>
|
||||||
|
<%= render "layouts/no_script" %>
|
||||||
<%= content_for :head %>
|
<%= content_for :head %>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user