Sha256: dd008fcaa1419e8a2edebeaa15f7b1da4181b2d95dfa1afc54b4072946dcaa72
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
<div class="blogNewComment"> <h2>Post a Comment</h2> <% if !current_user && (!BlogBasic::BlogConf.data['anonymous_comments'] || BlogBasic::BlogConf.data['anonymous_comments'] == false) %> <p>You must be logged in to post a comment.</p> <% else %> <% form_for([@blog_post, blog_comment]) do |f| %> <% if blog_comment.errors.size > 0 %> <div id="errorExplanation"> <h2>The comment could not be saved:</h2> <ul> <% blog_comment.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <% unless current_user %> <p> <%= f.label :name %><br /> <%= f.text_field :name %> </p> <p> <%= f.label :site_url, 'Web Site (optional)' %><br /> <%= f.text_field :site_url %> </p> <p> <%= f.label :email, 'Email (optional)' %><br /> <%= f.text_field :email %> </p> <% end %> <p> <%= f.label :body, 'Comment' %><br /> <%= f.text_area :body, :class => 'blogNewCommentField' %> </p> <p> <%= f.submit 'Post' %> </p> <% end %> <% end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blog_basic-0.1.14 | app/views/blog_basic/blog_comments/_new_blog_comment.html.erb |