Sha256: ba7d716c6e6527070538d806a9fef7038003ce970b5cfdee60f25d3d92cf19aa

Contents?: true

Size: 969 Bytes

Versions: 7

Compression:

Stored size: 969 Bytes

Contents

- title "Foros Squeezer"
 
= link_permitted "Nuevo Foro",:new,:forums,new_forum_path

%table{:class=>'wide mytable'}
  %tr
    %th
      Foro
    %th
      Ultimo
    %th
      Temas
    - for forum in @forums
      %tr
        %td
          %strong
            =link_to forum.name, forum
          = link_permitted "Editar",:edit,forum,edit_forum_path(forum)  
          = link_permitted "Borrar",:destroy,forum,forum
          
          %br 
          =h forum.desc
        %td{:class=>'greycolumn'}
          -if forum.topics.last
            -if forum.topics.last.comment.posts.last
              =h time_ago_in_words(forum.topics.last.comment.posts.last.created_at)
              por
              = link_to forum.topics.last.comment.posts.last.user.username, forum.topics.last.comment.posts.last.user
            -else
              sin comentarios            
          -else
            sin comentarios
          
        %td
          = forum.topics.count
 

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/app/views/forums/index.html.haml
squeezer-0.2.0 lib/generators/squeezer/templates/app/views/forums/index.html.haml
squeezer-0.1.11 lib/generators/squeezer/templates/app/views/forums/index.html.haml
squeezer-0.1.7 lib/generators/squeezer/templates/app/views/forums/index.html.haml
squeezer-0.1.6 lib/generators/squeezer/templates/app/views/forums/index.html.haml
squeezer-0.1.5 lib/generators/squeezer/templates/app/views/forums/index.html.haml
squeezer-0.1.4 lib/generators/squeezer/templates/app/views/forums/index.html.haml