diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2013-12-23 17:07:37 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2013-12-23 17:07:37 +0100 |
commit | 3fb85eff8510ef7d5505924805cabde0edcebef3 (patch) | |
tree | caef55a987f44de3d900d18159b9e78964e4ca99 /app/views | |
parent | e6c75a021441316ff1a1e0c9f2e9d5b027412a32 (diff) | |
download | hmnoweb-3fb85eff8510ef7d5505924805cabde0edcebef3.tar.gz hmnoweb-3fb85eff8510ef7d5505924805cabde0edcebef3.tar.bz2 hmnoweb-3fb85eff8510ef7d5505924805cabde0edcebef3.zip |
Move markup from decorator to template.
Note to self, use model decorators to massage model data, but leave
the markup to the views where it belong.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/common/_sidebar_module.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/common/_sidebar_module.html.erb b/app/views/common/_sidebar_module.html.erb index 41f51e7..73554b7 100644 --- a/app/views/common/_sidebar_module.html.erb +++ b/app/views/common/_sidebar_module.html.erb @@ -1,9 +1,9 @@ <% modules.keys.each do |c| -%> <div class="sidebar_content"> <h1><%= c %></h1> - <%- modules[c].each do |entry| %> - <%= entry.title %> - <%= entry.body %> + <%- modules[c].each do |item| %> + <h2><%= link_to(item.title, item.friendly_id) %></h2> + <div><%= item.body %></div> <% end %> </div> <% end -%> |