summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helpers.rb')
-rw-r--r--lib/helpers.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb
index 91ce9fb..99180e8 100644
--- a/lib/helpers.rb
+++ b/lib/helpers.rb
@@ -18,6 +18,17 @@ helpers do
nil
end
+ def render_column(id)
+ content = ''
+
+ ServiceRegistry.instance.columns[id].each do |category|
+ content << "<h3>%s</h3>\n" % category
+ content << services_info(ServiceRegistry.instance.categories[category][:services])
+ end
+
+ content
+ end
+
def services_info(services)
content = '<div class="list-group">'