# -*- encoding : utf-8 -*-
# Wiki UFC
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see
Este campo aceita as linguagens Markdown, Latex e HTML. " + link_to('Saiba mais.', '#', :id => 'show_markup_help') + spinner('help') + "
" end def markup_help return " " end def gravatar_url_for(email, size=80) "http://www.gravatar.com/avatar.php?gravatar_id=#{Digest::MD5.hexdigest(email)}&size=#{size}&default=#{App.default_avatar}_#{size}.png" end def action_icon(action_name, description, options = {}, html_options = {}) html_options.merge!({:class => 'icon', :alt => description, :title => description}) link_to(image_tag("action/#{action_name}.gif", :title => description), options, html_options) end def format_period(period) return "20#{period[0..1]}.#{period[2..2]}" end end