Sha256: bda470219eb37495499eeb6c203366f3fe3296117d0d6ffcc7de1a3885b5aed0
Contents?: true
Size: 906 Bytes
Versions: 16
Compression:
Stored size: 906 Bytes
Contents
<% if commenting_on.comments_allowed? %> <div id="reply" class="comment_reply_form"> <% if current_user %> <% url = (commenting_on.class == CmsPost ? [commenting_on.cms_blog, commenting_on, :ajax_add_comment] : [commenting_on, :ajax_add_comment] )%> <%= simple_form_for :comment, url: url, wrapper: :bootstrap2 do |f| %> <%= f.input :body, :as => :text, :label => I18n.t('cms.comment_body'), :input_html => {:rows => 10} %> <%= f.submit I18n.t('cms.comment_submit'), class: 'btn btn-primary' %> <% end %> <% else %> <p><%= I18n.t 'cms.comment_login_required' %></p> <%= link_to I18n.t('core.login'), main_app.new_user_session_path, class: 'btn btn-primary', style: 'margin-bottom: 20px' %> <%= link_to I18n.t('core.create_account'), main_app.new_user_registration_path, class: 'btn' %> <% end %> </div> <% end %>
Version data entries
16 entries across 16 versions & 1 rubygems