Show the Help link only when a help_url is set
This commit is contained in:
parent
2b1056687a
commit
6a110ca429
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
||||||
%li= link_to t('.logout'), logout_path
|
%li= link_to t('.logout'), logout_path
|
||||||
%li{class: ('disabled' if FoodsoftConfig[:homepage].blank?)}
|
%li{class: ('disabled' if FoodsoftConfig[:homepage].blank?)}
|
||||||
= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage]
|
= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage]
|
||||||
|
- if FoodsoftConfig[:help_url]
|
||||||
%li= link_to t('.help'), FoodsoftConfig[:help_url]
|
%li= link_to t('.help'), FoodsoftConfig[:help_url]
|
||||||
%li= link_to t('.feedback.title'), new_feedback_path, title: t('.feedback.desc')
|
%li= link_to t('.feedback.title'), new_feedback_path, title: t('.feedback.desc')
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
Loading…
Reference in a new issue