Removed tag attribute which are no longer useful
This commit is contained in:
parent
876f325633
commit
31c619a8b4
@ -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(
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user