Sha256: 941cccaeb03645a70f5dda0778ef3ec228694c46a21cfdfd7a6534cdf8594111
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
<% @page_heading = _("Comments for %s (%s)","#{ link_to h(@article.title), :controller => '/admin/content', :action => 'new', :id => @article.id }","#{ link_to _('add a comment'), '#comment' }") %> <% content_for (:tasks) do %> <%= subtab(_('All comments'),'', {:action => :article, :id => @article.id, :ham => 'y', :spam => 'y'} ) %> <%= subtab(_('Limit to ham'), '', {:action => :article, :id => @article.id, :ham => 'y'}) %> <%= subtab(_('Limit to spam'), '', {:action => :article, :id => @article.id, :spam => 'y'}) %> <% end %> <div class="list"> <ol> <% for comment in @comments -%> <li <%= alternate_class %>> <p><strong><%= mail_to h(comment.email), h(comment.author) %></strong> | <%= link_to_unless comment.url.blank?, h(comment.url), comment.url %> | IP: <%=h comment.ip %></p> <%= h(comment.body) %> <p> <%= comment.created_at.strftime("%m/%d/%Y %H:%M") %> – [ <%= link_to_edit _("Edit"), comment %> | <%= link_to _("Delete") , {:action => 'delete', :id => comment.id, :search => params[:search], :page => params[:page] }, :confirm => _("Are you sure?"), :method => :post %> | <%= comment.state %> ] </p> </li> <% end -%> </ol> </div> <hr /> <% form_tag :action => "create" do %> <%= render :partial => "form" %> <%= cancel_or_save %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems