Skip to content

Commit

Permalink
Merge pull request #7 from IUBLibTech/iulrdc-15_header_in_dashboard
Browse files Browse the repository at this point in the history
Fix header display in dashboard layout
  • Loading branch information
dlpierce authored Sep 20, 2024
2 parents 8674541 + 806841c commit c9c5800
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/dashboard.tweaks.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body.dashboard {
padding-top: 0 !important;
background-color: white !important;
}
38 changes: 38 additions & 0 deletions app/views/layouts/hyrax/dashboard.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="<%= I18n.locale.to_s %>" prefix="og:http://ogp.me/ns#">
<head>
<%= render partial: 'layouts/head_tag_content' %>
<%= content_for(:head) %>
</head>

<body class="dashboard">
<div class="skip-to-content">
<%= link_to "Skip to Content", "#skip-to-content" %>
</div>
<%= render '/masthead', placement_class: nil %>
<%= content_for(:navbar) %>
<div id="content-wrapper" role="main">
<div class="sidebar maximized">
<%= render 'hyrax/dashboard/sidebar' %>
</div>
<div class="main-content maximized<%= " admin-stats" if request.fullpath.include? '/admin/stats' %>">
<%= render_breadcrumbs builder: Hyrax.config.breadcrumb_builder %>
<%= render '/flash_msg' %>
<% if content_for?(:page_header) %>
<div class="row">
<div class="col-12 main-header">
<%= yield(:page_header) %>
</div>
</div>
<% end %>

<a name="skip-to-content" id="skip-to-content"></a>
<%= render 'shared/read_only' if Flipflop.read_only? %>
<%= content_for?(:content) ? yield(:content) : yield %>

</div>

</div><!-- /#content-wrapper -->
<%= render 'shared/modal' %>
</body>
</html>

0 comments on commit c9c5800

Please sign in to comment.