Commit 776acf40ee44fda47db64f086cf6868be4cdf9a7
1 parent
f987dd1c
Exists in
master
and in
29 other branches
ActionItem9: generating default stuff in the header of the page
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@135 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
20 additions
and
0 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -142,4 +142,24 @@ module ApplicationHelper |
142 | 142 | help(content, :textile, &block) |
143 | 143 | end |
144 | 144 | |
145 | + # TODO: do something more useful here | |
146 | + # TODO: test this helper | |
147 | + # TODO: add an icon? | |
148 | + def virtual_community_identification | |
149 | + content_tag('div', @virtual_community.name, :id => 'virtual_community_identification') | |
150 | + end | |
151 | + | |
152 | + # TODO: add the actual links | |
153 | + # TODO: test this helper | |
154 | + def user_links | |
155 | + links = [ | |
156 | + [ _('My accont'), { :controller => 'account' } ], | |
157 | + [ _('My profile'), { :controller => 'ble'} ], | |
158 | + [ _('My groups'), { :controller => 'bli'} ], | |
159 | + ].map do |link| | |
160 | + link_to link[0], link[1] | |
161 | + end.join(' ') | |
162 | + content_tag('div', links, :id => 'user_links') | |
163 | + end | |
164 | + | |
145 | 165 | end | ... | ... |