summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-14 19:47:26 +0200
committerAzul <azul@leap.se>2014-05-14 19:47:26 +0200
commit702e444e57d7904e429d1628e600d11e2e793a62 (patch)
tree4e0a87bc512a2a37352ce0268ce3bee27c608d7a
parent09798683794a5b74cd9cb8801f15d21e093e68b9 (diff)
check for presence of service_levels
This way the pricing link will not be shown for an empty hash. Which is easier to get into the config file than nil. And we can later verify the configuration to have a hash as the service_levels.
-rw-r--r--app/views/layouts/_footer.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml
index 5909bdd..340d36c 100644
--- a/app/views/layouts/_footer.html.haml
+++ b/app/views/layouts/_footer.html.haml
@@ -6,5 +6,5 @@
= link_to icon('info-sign') + t(:about), about_path
- if lookup_context.exists?('pages/contact')
= link_to icon('comment') + t(:contact), contact_path
- - if APP_CONFIG[:service_levels]
- = link_to icon('shopping-cart') + t(:pricing), pricing_path \ No newline at end of file
+ - if APP_CONFIG[:service_levels].present?
+ = link_to icon('shopping-cart') + t(:pricing), pricing_path