Project

General

Profile

« Previous | Next » 

Revision d0665c24

Added by Amir Fefer almost 6 years ago

Fixes #23920 - add missing header in welcome pages

View differences:

app/helpers/layout_helper.rb
def mount_breadcrumbs(options = {}, &block)
options = BreadcrumbsOptions.new(@page_header, controller, action_name, block_given? ? yield : options)
mount_react_component("BreadcrumbBar", "#breadcrumb", options.bar_props.to_json)
mount_react_component("BreadcrumbBar", "#breadcrumb", options.bar_props.to_json) unless @welcome
end
def breadcrumbs(options = {}, &block)
app/views/layouts/_application_content.html.erb
<div id="main">
<div id="content">
<%= notifications %>
<% unless @welcome %>
<div id="breadcrumb">
<% unless @page_header.blank? %>
<div class="row form-group">
<h1 class="col-md-8">
<%=h @page_header %>
</h1>
</div>
<% end %>
<% if content_for?(:breadcrumbs) %>
<%= yield(:breadcrumbs) %>
<% else %>
<%= mount_breadcrumbs %>
<% end %>
<%= notifications %>
<div id="breadcrumb">
<% unless @page_header.blank? %>
<div class="row form-group">
<h1 class="col-md-8">
<%=h @page_header %>
</h1>
</div>
<% end %>
<% end %>
<% if content_for?(:breadcrumbs) %>
<%= yield(:breadcrumbs) %>
<% else %>
<%= mount_breadcrumbs %>
<% end %>
</div>
<div class="row">
<div class="title_filter <%= searchable? ? " col-md-6 " : "col-md-4 " %>">
<%= render "common/searchbar" if searchable? %>

Also available in: Unified diff