cirandas.net

ref: master

plugins/event/views/profile_design/event_plugin/_event_block.html.erb


<%= labelled_form_field _('Limit of items'), text_field(:block, :limit, :size => 4) %>

<% unless @block.owner.kind_of?(Environment) && !@block.owner.portal_community %>
  <%= labelled_check_box(_('Show all environment events'), "block[all_env_events]", "1", @block.all_env_events) %>

  
    <%= if @block.owner.kind_of?(Profile)
          if @block.owner.person?
            _("(Don't check to show only your events)")
          else
            _("(Don't check to show only %s events)") % @profile.name
          end
        elsif environment.portal_community
          _("(Don't check to show only %s events)") % link_to(environment.portal_community.name, environment.portal_community.url)
        end
     %>
  
<% end %>

<%= labelled_check_box(_('Only show future events'), "block[future_only]", "1", @block.future_only) %>

<%= labelled_check_box(_('Display as a calendar'), "block[display_as_calendar]", "1", @block.display_as_calendar) %>

<%= labelled_form_field _('Limit of days to display'), text_field(:block, :date_distance_limit, :size => 4) %>

(<%=_('Only show events in this interval of days.')%>)