adds rel canonical on show views

This commit is contained in:
decabeza
2017-05-17 14:10:38 +02:00
parent 4787ee5716
commit d49b6e5aa4
6 changed files with 22 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_group_url(filter: @current_filter) %>
<% end %>
<div class="expanded budget no-margin-top">
<div class="row">
<div class="small-12 medium-9 column padding">

View File

@@ -4,6 +4,9 @@
search_path: budget_investments_path(budget_id: @budget.id, page: 1),
i18n_namespace: "budgets.investments.index.search_form" %>
<% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_investments_url(@budget, heading_id: @heading.id, filter: @current_filter) %>
<% end %>
<main id="budget-investments-main">

View File

@@ -1,4 +1,7 @@
<% provide :title do %><%= @investment.title %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_investment_url %>
<% end %>
<%= render partial: '/budgets/investments/investment_show', locals: {
investment: @investment,

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_url(@budget, filter: @current_filter) %>
<% end %>
<div class="expanded budget no-margin-top">
<div class="row" data-equalizer data-equalizer-on="medium">
<div class="small-12 medium-9 column padding" data-equalizer-watch>