button to get to timeline

This commit is contained in:
Brenda Wallace
2019-07-07 22:08:42 +12:00
parent 050dfda77e
commit 528e4c2c85
2 changed files with 9 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
module IconsHelper
include FontAwesome::Sass::Rails::ViewHelpers
def timeline_icon
icon('far', 'calendar')
end
def garden_icon
image_icon 'home'
end

View File

@@ -3,6 +3,11 @@
= link_to member_gardens_path(member_slug: current_member.slug),
class: 'btn btn-default', 'data-toggle': "tooltip", 'data-placement': "bottom", title: t('buttons.my_gardens') do
= garden_icon
= link_to timeline_index_path,
class: 'btn btn-default', 'data-toggle': "tooltip", 'data-placement': "bottom", title: t('buttons.timeline') do
= timeline_icon
= link_to new_planting_path,
class: 'btn btn-default', 'data-toggle': "tooltip", 'data-placement': "bottom", title: t('buttons.new_planting') do
= planting_icon