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] - if params[:year]
%header.calendar-header.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 %em.fa.fa-backward
= params[:year] = 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 %em.fa.fa-forward
:ruby :ruby
set_meta_tags( set_meta_tags(

View File

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