From b0461340dec1921f99f28dd42e462291bc705c31 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 20 Apr 2010 11:28:45 -0300 Subject: [PATCH] Disabling temporarily the publish event feature --- app/views/cms/publish.rhtml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/app/views/cms/publish.rhtml b/app/views/cms/publish.rhtml index 0f2d6cc..d163a27 100644 --- a/app/views/cms/publish.rhtml +++ b/app/views/cms/publish.rhtml @@ -14,16 +14,24 @@ <% end %> -<% form_tag do%> - <%= hidden_field_tag :back_to, @back_to %> - <% @groups.each do |group| %> - <%= labelled_check_box group.name, 'marked_groups[][group_id]', group.id, @marked_groups.include?(group) %>
- <%= labelled_text_field _('Title') + ': ', 'marked_groups[][name]', @article.name, :style => 'width: 100%' %> -
- <% end %> - <% button_bar do %> - <%= submit_button 'spread', _('Publish') %> + +<% if @article.type != "Event" %> + <% form_tag do%> + <%= hidden_field_tag :back_to, @back_to %> + <% @groups.each do |group| %> + <%= labelled_check_box group.name, 'marked_groups[][group_id]', group.id, @marked_groups.include?(group) %>
+ <%= labelled_text_field _('Title') + ': ', 'marked_groups[][name]', @article.name, :style => 'width: 100%' %> +
+ <% end %> + + <% button_bar do %> + <%= submit_button 'spread', _('Publish') %> + <% end %> <% end %> +<% else %> +
+ <%= _("This option is temporarily disabled.") %> +
<% end %> -- libgit2 0.21.2