Removed tag attribute which are no longer useful

This commit is contained in:
echarp 2018-10-17 17:47:41 +02:00
parent 876f325633
commit 31c619a8b4
2 changed files with 5 additions and 8 deletions

View File

@ -1,9 +1,9 @@
- if params[:year]
%header.calendar-header.year
= link_to year: params[:year].to_i - 1, tag: params[:tag] do
= link_to year: params[:year].to_i - 1 do
%em.fa.fa-backward
= params[:year]
= link_to year: params[:year].to_i + 1, tag: params[:tag] do
= link_to year: params[:year].to_i + 1 do
%em.fa.fa-forward
:ruby
set_meta_tags(

View File

@ -1,17 +1,14 @@
%header.calendar-header
- if params[:year]
= link_to start_date: start_date.beginning_of_month,
tag: params[:tag] do
= link_to start_date: start_date.beginning_of_month do
= I18n.t('date.month_names')[start_date.month]
= start_date.year
- else
= link_to '<<', start_date: (date_range.first - 1.day).beginning_of_month,
tag: params[:tag]
= link_to '<<', start_date: (date_range.first - 1.day).beginning_of_month
= I18n.t('date.month_names')[start_date.month]
= link_to root_path(year: start_date.year) do
= start_date.year
= link_to '>>', start_date: (date_range.last + 1.day).beginning_of_month,
tag: params[:tag]
= link_to '>>', start_date: (date_range.last + 1.day).beginning_of_month
%table.table.table-striped
%thead