aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-12-25 17:44:04 +0100
committerHarald Eilertsen <haraldei@anduin.net>2013-12-25 17:44:04 +0100
commit65566d1134c544933d7bea1f7bfa1f50bd9f531f (patch)
treec6e7877649a243fed4253b994c0eb925e1c7c3cc /app/views
parent83397f964d06c5aff991ccb81bf2bbe69b397a90 (diff)
downloadhmnoweb-65566d1134c544933d7bea1f7bfa1f50bd9f531f.tar.gz
hmnoweb-65566d1134c544933d7bea1f7bfa1f50bd9f531f.tar.bz2
hmnoweb-65566d1134c544933d7bea1f7bfa1f50bd9f531f.zip
Add tests for sidebar helper.
Also fixes DOM id of sidebar modules with spaces in their title.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/sidebar_modules/_sidebar_module.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/sidebar_modules/_sidebar_module.html.erb b/app/views/sidebar_modules/_sidebar_module.html.erb
index c7a24e9..2fb989c 100644
--- a/app/views/sidebar_modules/_sidebar_module.html.erb
+++ b/app/views/sidebar_modules/_sidebar_module.html.erb
@@ -1,4 +1,4 @@
-<div id="sidebar_module_<%= sidebar_module.title %>" class="sidebar_module">
+<div id="sidebar_module_<%= sidebar_module.title.parameterize %>" class="sidebar_module">
<h1><%= sidebar_module.title %></h1>
<div><%= content_for "sidebar_module_#{sidebar_module.title}_body" %></div>
</div>