Sha256: 7bf6f4b25da1f177fcf4e7ef08c824d915155041bf441c9a2a307e00c766a984

Contents?: true

Size: 633 Bytes

Versions: 58

Compression:

Stored size: 633 Bytes

Contents

%h1 Forums Home

- if can? :create, Forum
  %h2 Open a New Forum
  = form_for Forum.new do |f|
    %ul.form_fields
      %li.field
        Name:
        = f.text_field :name
      %li.action
        = f.submit

= content_for :links do
  %h2 Forums:
  - @forums.each do |forum|
    %li.important_link
      = link_to "#{forum.name} ->", forum
      - if can? :create, Discussion, :forum_id=>forum.id
        = link_to "ReplyTo", new_forum_discussion_path(forum)
      - if can? :manage, forum
        != "|" + link_to("Manage", edit_forum_path(forum))
  %li.important_link= link_to 'New forum', new_forum_path if can? :create, Forum

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
wheels-0.1.30 app/views/forums/index.html.haml
wheels-0.1.28 app/views/forums/index.html.haml
wheels-0.1.27 app/views/forums/index.html.haml
wheels-0.1.25 app/views/forums/index.html.haml
wheels-0.1.24 app/views/forums/index.html.haml
wheels-0.1.23 app/views/forums/index.html.haml
wheels-0.1.22 app/views/forums/index.html.haml
wheels-0.1.21 app/views/forums/index.html.haml
wheels-0.1.20 app/views/forums/index.html.haml
wheels-0.1.19 app/views/forums/index.html.haml
wheels-0.1.18 app/views/forums/index.html.haml
wheels-0.1.17 app/views/forums/index.html.haml
wheels-0.1.16 app/views/forums/index.html.haml
wheels-0.1.15 app/views/forums/index.html.haml
wheels-0.1.14 app/views/forums/index.html.haml
wheels-0.1.13 app/views/forums/index.html.haml
wheels-0.1.12 app/views/forums/index.html.haml
wheels-0.1.10 app/views/forums/index.html.haml
wheels-0.1.9 app/views/forums/index.html.haml
wheels-0.1.8 app/views/forums/index.html.haml