Commit ed3d7c4b0b0eab1a7737fdbdf7ce6c450ec92ceb
1 parent
fa0dbbec
Exists in
master
and in
29 other branches
Adding css class to forum post columns a td element
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/helpers/forum_helper.rb
| ... | ... | @@ -29,9 +29,9 @@ module ForumHelper |
| 29 | 29 | css_add << 'not-published' if !art.published? |
| 30 | 30 | css_add << position |
| 31 | 31 | content << content_tag('tr', |
| 32 | - content_tag('td', link_to(art.title, art.url)) + | |
| 33 | - content_tag('td', link_to(art.comments.count, art.url.merge(:anchor => 'comments_list'))) + | |
| 34 | - content_tag('td', last_topic_update(art)), | |
| 32 | + content_tag('td', link_to(art.title, art.url), :class => "forum-post-title") + | |
| 33 | + content_tag('td', link_to(art.comments.count, art.url.merge(:anchor => 'comments_list')), :class => "forum-post-answers") + | |
| 34 | + content_tag('td', last_topic_update(art), :class => "forum-post-last-answer"), | |
| 35 | 35 | :class => 'forum-post ' + css_add.join(' '), |
| 36 | 36 | :id => "post-#{art.id}" |
| 37 | 37 | ) | ... | ... |