Sha256: 61ae50ecf49514de5ba9bcfcf7a20a3a2a8bd35226a53e0cb15470d2884e262e

Contents?: true

Size: 930 Bytes

Versions: 6

Compression:

Stored size: 930 Bytes

Contents

- content_for :scripts do
  = javascript_include_tag 'jquery.quickSearch.js'
  :javascript
    $( function () {
      FORGE.features.comments.init();
      $('#quick-search').quickSearch({url: '#{forge_comments_path}'});
    });

%h1 Comments

%p.info These are comments that people have left on your items.  You can either approve or delete them.

= render :partial => "forge/shared/section_header", :locals => {:item => Comment, :options => { :show_new => false }}
%ul#item-list
  = render :partial => "comment", :collection => @comments
  .comment-approval
    = link_to "All", "?", :class => ("active" if params[:show].blank?), :id => "first"
    = link_to "Unapproved", "?show=unapproved", :class => ("active" if params[:show] == "unapproved")
    = link_to "Approved", "?show=approved", :class => ("active" if params[:show] == "approved")
= render :partial => "forge/shared/section_footer", :locals => {:items => @comments}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/comments/index.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/comments/index.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/comments/index.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/comments/index.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/comments/index.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/comments/index.html.haml