mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-28 17:04:57 -04:00
col-xs-N -> col-N, col-md-offset-N -> offset-md-N, row-fluid -> row, btn-block -> w-100, btn-xs -> btn-sm, form-group -> mb-3 (Bootstrap 5 dropped form-group), and btn-default (Bootstrap 3) -> btn-outline-secondary. The three helpers that combined btn-default with btn-secondary keep just btn-secondary. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
18 lines
437 B
Plaintext
18 lines
437 B
Plaintext
- content_for :title, t('.title')
|
|
|
|
- if can? :create, Forum
|
|
%p
|
|
= link_to "New forum", new_forum_path, class: 'btn btn-outline-secondary'
|
|
|
|
- @forums.each do |forum|
|
|
%h2= forum
|
|
%p= forum.description
|
|
%p
|
|
= localize_plural(forum.posts, Post)
|
|
|
|
|
= link_to "Visit forum", forum
|
|
|
|
|
= link_to "Post", new_post_path(forum_id: forum.id)
|
|
= render partial: "posts/summary", locals: { posts: forum.posts, howmany: 4 }
|
|
|