Show the Help link only when a help_url is set

This commit is contained in:
Patrick Gansterer 2017-08-19 17:08:07 +02:00
parent 2b1056687a
commit 6a110ca429
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@
%li= link_to t('.logout'), logout_path
%li{class: ('disabled' if FoodsoftConfig[:homepage].blank?)}
= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage]
%li= link_to t('.help'), FoodsoftConfig[:help_url]
- if FoodsoftConfig[:help_url]
%li= link_to t('.help'), FoodsoftConfig[:help_url]
%li= link_to t('.feedback.title'), new_feedback_path, title: t('.feedback.desc')
.clearfix