diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2013-12-23 20:53:14 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2013-12-23 20:53:14 +0100 |
commit | 8ced2d803e2e71b3804a02ce68315ca509f8df54 (patch) | |
tree | df12396fd4d7ebd23c83309bacf411a580c9f823 /app/views | |
parent | a6c3b6f6bb3aa603dd25d47f15f26e53d3427a5b (diff) | |
download | hmnoweb-8ced2d803e2e71b3804a02ce68315ca509f8df54.tar.gz hmnoweb-8ced2d803e2e71b3804a02ce68315ca509f8df54.tar.bz2 hmnoweb-8ced2d803e2e71b3804a02ce68315ca509f8df54.zip |
Only render sidebar modules if present.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/common/_sidebar_module.html.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/common/_sidebar_module.html.erb b/app/views/common/_sidebar_module.html.erb index c5bc5c9..07eba16 100644 --- a/app/views/common/_sidebar_module.html.erb +++ b/app/views/common/_sidebar_module.html.erb @@ -1,3 +1,4 @@ +<% unless modules.nil? %> <% modules.keys.each do |c| -%> <div class="sidebar_content"> <h1><%= c %></h1> @@ -8,4 +9,4 @@ <% end %> </div> <% end -%> - +<% end -%> |