Sha256: 14abb7434d6a21d54fc3364d9439bfcb37967a5bf32e8e5def501d6c0c82b60b

Contents?: true

Size: 317 Bytes

Versions: 8

Compression:

Stored size: 317 Bytes

Contents

<% if current_user %>
  <%= simple_form_for [@post.becomes(Storytime::Post), Storytime::Comment.new] do |f| %>
    <%= f.input :content %>
    <%= f.button :submit %>
  <% end %>
<% else %>
  <div class="alert alert-info" role="alert">
    <%= link_to "Sign in", Storytime.login_path %> to comment.
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storytime-2.1.6 app/views/storytime/comments/_form.html.erb
storytime-2.1.5 app/views/storytime/comments/_form.html.erb
storytime-2.1.4 app/views/storytime/comments/_form.html.erb
storytime-2.1.3 app/views/storytime/comments/_form.html.erb
storytime-2.1.2 app/views/storytime/comments/_form.html.erb
storytime-2.1.1 app/views/storytime/comments/_form.html.erb
storytime-2.1.0 app/views/storytime/comments/_form.html.erb
storytime-2.0.0 app/views/storytime/comments/_form.html.erb