From 528e4c2c85b84aa8635a2755be22c33dd4c71214 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 7 Jul 2019 22:08:42 +1200 Subject: [PATCH] button to get to timeline --- app/helpers/icons_helper.rb | 4 ++++ app/views/shared/_global_actions.html.haml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index 7422a44e6..0aa7e46ec 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -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 diff --git a/app/views/shared/_global_actions.html.haml b/app/views/shared/_global_actions.html.haml index a2a60d3a8..99f05dfe0 100644 --- a/app/views/shared/_global_actions.html.haml +++ b/app/views/shared/_global_actions.html.haml @@ -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