We were using `overflow: scroll` as a workaround with a problem we had with the equalizer. But now we never need an extra vertical scroll bar, and we only need an extra horizontal scroll bar on small screens. Since the dashboard was using the class `admin-content` as well, we need to apply to the dashboard the same changes we've done in the admin section. I've extracted them into a mixin.
66 lines
2.4 KiB
Plaintext
66 lines
2.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<%= render "layouts/tracking_data" %>
|
|
<%= render "layouts/meta_tags" %>
|
|
<title><%= content_for?(:title) ? yield(:title) : setting["org_name"] %></title>
|
|
<%= content_for :canonical %>
|
|
<%= stylesheet_link_tag "application" %>
|
|
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
|
<%= csrf_meta_tags %>
|
|
<%= favicon_link_tag "favicon.ico" %>
|
|
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
|
|
rel: "icon apple-touch-icon",
|
|
sizes: "200x200",
|
|
type: "image/png" %>
|
|
<%= content_for :social_media_meta_tags %>
|
|
|
|
<%= raw setting["per_page_code_head"] %>
|
|
</head>
|
|
<body class="proposal-dashboard">
|
|
<%= raw setting["per_page_code_body"] %>
|
|
|
|
<h1 class="show-for-sr"><%= setting["org_name"] %></h1>
|
|
|
|
<div class="off-canvas-wrapper">
|
|
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
|
|
<div class="off-canvas position-left" id="offCanvas" data-off-canvas>
|
|
<div class="show-for-small-only">
|
|
<div class="dashboard-sidebar">
|
|
<%= render "dashboard/menu" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="off-canvas-content" data-off-canvas-content>
|
|
<%= render "layouts/header", with_subnavigation: false %>
|
|
|
|
<div class="dashboard-menu-and-content no-margin-top">
|
|
<div id="side_menu" class="hide-for-small-only">
|
|
<div class="dashboard-sidebar">
|
|
<%= render "dashboard/menu" %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="admin-content">
|
|
<div class="show-for-small-only">
|
|
<button type="button" class="button hollow expanded" data-toggle="offCanvas">
|
|
<%= t("admin.menu.admin") %>
|
|
</button>
|
|
</div>
|
|
|
|
<%= render "layouts/flash" %>
|
|
<%= render "layouts/dashboard/proposal_totals" %>
|
|
<%= render "layouts/dashboard/proposal_header" %>
|
|
<%= yield %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|