Module: MeetingsHelper
- Defined in:
- app/helpers/meetings_helper.rb
Overview
– copyright OpenProject is a project management system. Copyright © 2011-2013 the OpenProject Foundation (OPF)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.md for more details. ++
Instance Method Summary collapse
- #format_participant_list(participants) ⇒ Object
- #render_meeting_journal(model, journal, options = {}) ⇒ Object
Instance Method Details
#format_participant_list(participants) ⇒ Object
21 22 23 |
# File 'app/helpers/meetings_helper.rb', line 21 def format_participant_list(participants) participants.sort.collect{|p| link_to_user p.user}.join("; ").html_safe end |
#render_meeting_journal(model, journal, options = {}) ⇒ Object
25 26 27 28 29 |
# File 'app/helpers/meetings_helper.rb', line 25 def render_meeting_journal(model, journal, = {}) return "" if journal.initial? journal_content = render_journal_details(journal, :label_updated_time_by, model, ) content_tag "div", journal_content, { :id => "change-#{journal.id}", :class => "journal" } end |