ref: master
app/views/cms/publish.html.erb
<%= _('Where do you want to publish this article?') %>
<% if !@failed.blank? %><% end %><%=_("There were errors with the following communities: ")%>
<% @failed.each do |error, communities|%> <%= error %>:<% communities.each do |community| %>
<% end %>- <%= community %>
<% end %><% if profile != user %>
- <%= _("Publish this article on your profile") %>
<% end %> <% if user.communities.present? %><%= _('You can publish this article on your profile where your friends and followers will see.') %><%= form_tag do %> <%= hidden_field_tag :back_to, @back_to %> <%= labelled_form_field _('Title'), text_field_tag('name', @article.name) %> <%= button_bar do %> <%= submit_button 'spread', _('Spread this') %> <% end %> <% end %>- <%= _("Publish this article on communities you are part of") %>
<% end %> <% if environment.portal_enabled %><%= _('You can submit this article to one or more communities you are a member of, just search for the community below.') %><%= form_tag :action => 'publish_on_communities', :id => @article.id do %> <%= hidden_field_tag :back_to, @back_to %> <% search_action = url_for(:action => 'search_communities_to_publish') %> <%= token_input_field_tag(:q, 'search-communities-to-publish', search_action, { :hint_text => _('Type in a search for your community'), :zindex => 10000, :focus => false }) %> <%= labelled_form_field _('Title'), text_field_tag('name', @article.name) %> <%= button_bar do %> <%= submit_button 'spread', _('Spread this') %> <% end %> <% end %>- <%= _("Publish your article on portal community") %>
<% end %><%= _('You can suggest this article to the portal community, where it can show up on the homepage.') %><%= form_tag :action => 'publish_on_portal_community', :id => @article.id do %> <%= hidden_field_tag :back_to, @back_to %> <%= labelled_form_field _('Title'), text_field_tag('name', @article.name) %> <%= button_bar do %> <%= submit_button 'spread', _('Spread this') %> <% end %> <% end %>