Skip to content

Commit

Permalink
Add correct breadcrumb for org pages
Browse files Browse the repository at this point in the history
Include org name and make `Feedback` a link
  • Loading branch information
fofr committed May 26, 2015
1 parent 99bb86f commit 8c29d60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/anonymous_feedback/organisations/show.html.erb
Expand Up @@ -2,7 +2,7 @@
<%= content_for :sub_header, "Feedback for" %>
<%= content_for :header, @organisation_title %>
<% breadcrumb :feedex %>
<% breadcrumb :organisation, @organisation_title %>

<table class="table table-bordered table-sortable" data-module="filterable-table">
<thead>
Expand Down
5 changes: 5 additions & 0 deletions config/breadcrumbs.rb
Expand Up @@ -12,6 +12,11 @@
parent :root
end

crumb :organisation do |organisation_name|
link organisation_name, anonymous_feedback_organisation_path
parent :feedex
end

crumb :anonymous_feedback_by_path do |path|
link "Feedback for “#{path}”"
parent :feedex
Expand Down

0 comments on commit 8c29d60

Please sign in to comment.