Sha256: 065edaece1953c96e396fbc0063b0d139a544fa3e7e192986858ca9534b674d1

Contents?: true

Size: 793 Bytes

Versions: 45

Compression:

Stored size: 793 Bytes

Contents

%h1 Forum: #{@forum.name}

.titled_box
  .box_title Discussions in this forum
  .box_contents
    %ul
      - for discussion in @forum.discussions.sort{|u,v| u.updated_at <=> v.update_at}
        %li
          = link_to discussion.subject, url_for([@forum, discussion])
          - if can? :create, Discussion, :forum_id => @forum.id
            = link_to "Reply to this topic", new_forum_discussion_forum_message_path(@forum, discussion)
          - if can? :manage, discussion
            = link_to "Manage", edit_forum_discussion_path(@forum, discussion)

= content_for :links do
  - if can? :create, Discussion, :forum_id=>@forum.id
    %li= link_to "New topic in this forum", new_forum_discussion_path(@forum)
  - if can? :manage, @forum
    %li= link_to 'Edit', edit_forum_path(@forum)

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
wheels-0.1.16 app/views/forums/show.html.haml
wheels-0.1.15 app/views/forums/show.html.haml
wheels-0.1.14 app/views/forums/show.html.haml
wheels-0.1.13 app/views/forums/show.html.haml
wheels-0.1.12 app/views/forums/show.html.haml
wheels-0.1.10 app/views/forums/show.html.haml
wheels-0.1.9 app/views/forums/show.html.haml
wheels-0.1.8 app/views/forums/show.html.haml
wheels-0.1.7 app/views/forums/show.html.haml
wheels-0.1.6 app/views/forums/show.html.haml
wheels-0.1.5 app/views/forums/show.html.haml
wheels-0.1.4 app/views/forums/show.html.haml
wheels-0.1.3 app/views/forums/show.html.haml
wheels-0.1.2 app/views/forums/show.html.haml
wheels-0.1.1 app/views/forums/show.html.haml
wheels-0.1.0 app/views/forums/show.html.haml
wheels-0.0.49 app/views/forums/show.html.haml
wheels-0.0.48 app/views/forums/show.html.haml
wheels-0.0.47 app/views/forums/show.html.haml
wheels-0.0.46 app/views/forums/show.html.haml