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>
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
- content_for :title, @forum.name
|
|
- content_for :opengraph do
|
|
- if @forum.description
|
|
= tag("meta", property: "og:description", content: og_description(@forum.description))
|
|
= tag("meta", property: "og:title", content: @forum.name)
|
|
= tag("meta", property: "og:type", content: "website")
|
|
= tag("meta", property: "og:url", content: request.original_url)
|
|
= tag("meta", property: "og:site_name", content: ENV['GROWSTUFF_SITE_NAME'])
|
|
|
|
%h1= @forum.name
|
|
|
|
%p#notice= notice
|
|
|
|
%p.forum-meta
|
|
This forum is run by
|
|
= link_to @forum.owner, @forum.owner
|
|
|
|
%div
|
|
:markdown
|
|
#{ strip_tags markdownify(@forum.description) }
|
|
|
|
- if can? :edit, @forum
|
|
= link_to "Edit", edit_forum_path(@forum), class: 'btn btn-outline-secondary btn-sm'
|
|
- if can? :delete, @forum
|
|
= link_to 'Delete', @forum, method: :delete, data: { confirm: 'Are you sure?' }
|
|
|
|
%h2
|
|
Posts
|
|
= link_to "Post something", new_post_path(forum_id: @forum.id), class: 'btn btn-primary'
|
|
|
|
- if @forum.posts.empty?
|
|
No posts yet.
|
|
- else
|
|
= render partial: "posts/summary", locals: { posts: @forum.posts }
|
|
|
|
|
|
|