mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
these are separate blocks
This commit is contained in:
parent
e313460917
commit
c08ceb5134
1 changed files with 62 additions and 62 deletions
|
@ -29,71 +29,71 @@ h1 = @topic.title
|
||||||
/- else
|
/- else
|
||||||
' Login to subscribe to responses
|
' Login to subscribe to responses
|
||||||
|
|
||||||
/ Display the poll, if any
|
/ Display the poll, if any
|
||||||
/= render partial: 'polls/display', locals: { poll: @topic.poll }
|
/= render partial: 'polls/display', locals: { poll: @topic.poll }
|
||||||
|
|
||||||
/ The actual posts
|
/ The actual posts
|
||||||
.posts-area
|
.posts-area
|
||||||
.post-list
|
.post-list
|
||||||
= for {post, body} <- @posts, !post.destroyed_content do
|
= for {post, body} <- @posts, !post.destroyed_content do
|
||||||
= render PhilomenaWeb.PostView, "_post.html", conn: @conn, post: post, body: body
|
= render PhilomenaWeb.PostView, "_post.html", conn: @conn, post: post, body: body
|
||||||
|
|
||||||
/include ../adverts/_box.html.slim
|
/include ../adverts/_box.html.slim
|
||||||
|
|
||||||
/ Post editability data for JS
|
/ Post editability data for JS
|
||||||
/.js-editable-posts data-editable=editable_communications(@posts).to_json
|
/.js-editable-posts data-editable=editable_communications(@posts).to_json
|
||||||
|
|
||||||
/ Footer section
|
/ Footer section
|
||||||
.block
|
.block
|
||||||
.block__header.block__header--light
|
.block__header.block__header--light
|
||||||
= pagination
|
= pagination
|
||||||
|
|
||||||
/ Post form
|
/ Post form
|
||||||
= if @topic.post_count < 200_000 do
|
= if @topic.post_count < 200_000 do
|
||||||
/= render partial: 'topics/posts/form'
|
/= render partial: 'topics/posts/form'
|
||||||
- else
|
- else
|
||||||
/h3 Okay, we're impressed
|
/h3 Okay, we're impressed
|
||||||
/p You're looking at a thread with over 200,000 posts in it!
|
/p You're looking at a thread with over 200,000 posts in it!
|
||||||
/p For various reasons, we'd like to ask you to start a new topic.
|
/p For various reasons, we'd like to ask you to start a new topic.
|
||||||
|
|
||||||
/ Mod tools
|
/ Mod tools
|
||||||
/- if can? :assist, Topic
|
/- if can? :assist, Topic
|
||||||
/ .block__content
|
/ .block__content
|
||||||
/ input.toggle-box id="administrator_tools" type="checkbox" checked=false
|
/ input.toggle-box id="administrator_tools" type="checkbox" checked=false
|
||||||
/ label for="administrator_tools" Topic Admin Tools
|
/ label for="administrator_tools" Topic Admin Tools
|
||||||
/ .toggle-box-container
|
/ .toggle-box-container
|
||||||
/ .toggle-box-container__content
|
/ .toggle-box-container__content
|
||||||
/ p
|
/ p
|
||||||
/ - if can?(:unlock, @topic) && !@topic.locked_at.nil?
|
/ - if can?(:unlock, @topic) && !@topic.locked_at.nil?
|
||||||
/ => button_to forum_topic_lock_path(@forum, @topic), method: :delete, class: 'button' do
|
/ => button_to forum_topic_lock_path(@forum, @topic), method: :delete, class: 'button' do
|
||||||
/ i.fa.fa-lock>
|
/ i.fa.fa-lock>
|
||||||
/ | Unlock
|
/ | Unlock
|
||||||
/ - if can?(:stick, @topic) && !@topic.sticky
|
/ - if can?(:stick, @topic) && !@topic.sticky
|
||||||
/ => button_to forum_topic_stick_path(@forum, @topic), method: :post, class: 'button' do
|
/ => button_to forum_topic_stick_path(@forum, @topic), method: :post, class: 'button' do
|
||||||
/ i.fa.fa-thumbtack>
|
/ i.fa.fa-thumbtack>
|
||||||
/ | Stick
|
/ | Stick
|
||||||
/ - if can?(:stick, @topic) && @topic.sticky
|
/ - if can?(:stick, @topic) && @topic.sticky
|
||||||
/ => button_to forum_topic_stick_path(@forum, @topic), method: :delete, class: 'button' do
|
/ => button_to forum_topic_stick_path(@forum, @topic), method: :delete, class: 'button' do
|
||||||
/ i.fa.fa-thumbtack>
|
/ i.fa.fa-thumbtack>
|
||||||
/ | Unstick
|
/ | Unstick
|
||||||
/ - if can?(:lock, @topic) && @topic.locked_at.nil?
|
/ - if can?(:lock, @topic) && @topic.locked_at.nil?
|
||||||
/ = form_tag forum_topic_lock_path(@forum, @topic), method: :post, class: 'hform' do
|
/ = form_tag forum_topic_lock_path(@forum, @topic), method: :post, class: 'hform' do
|
||||||
/ .field
|
/ .field
|
||||||
/ => text_field_tag :lock_reason, '', placeholder: 'Lock reason', class: 'input hform__text'
|
/ => text_field_tag :lock_reason, '', placeholder: 'Lock reason', class: 'input hform__text'
|
||||||
/ => button_tag class: 'hform__button button' do
|
/ => button_tag class: 'hform__button button' do
|
||||||
/ i.fa.fa-unlock>
|
/ i.fa.fa-unlock>
|
||||||
/ | Lock
|
/ | Lock
|
||||||
/ - if can? :move, @topic
|
/ - if can? :move, @topic
|
||||||
/ = form_tag forum_topic_move_path(@forum, @topic), method: :post, class: 'hform' do
|
/ = form_tag forum_topic_move_path(@forum, @topic), method: :post, class: 'hform' do
|
||||||
/ .field
|
/ .field
|
||||||
/ => select_tag :target_forum_id, options_from_collection_for_select(Forum.where.not(id: @forum.id).all, :short_name, :name), class: 'input hform__text'
|
/ => select_tag :target_forum_id, options_from_collection_for_select(Forum.where.not(id: @forum.id).all, :short_name, :name), class: 'input hform__text'
|
||||||
/ => button_tag class: 'hform__button button' do
|
/ => button_tag class: 'hform__button button' do
|
||||||
/ i.fa.fa-truck>
|
/ i.fa.fa-truck>
|
||||||
/ | Move
|
/ | Move
|
||||||
/ - if can?(:destroy, @topic) && !@topic.hidden_from_users
|
/ - if can?(:destroy, @topic) && !@topic.hidden_from_users
|
||||||
/ = form_tag forum_topic_hide_path(@forum, @topic), method: :post, class: 'hform' do
|
/ = form_tag forum_topic_hide_path(@forum, @topic), method: :post, class: 'hform' do
|
||||||
/ .field
|
/ .field
|
||||||
/ => text_field_tag :deletion_reason, '', placeholder: 'Deletion reason', required: true, class: 'input hform__text'
|
/ => text_field_tag :deletion_reason, '', placeholder: 'Deletion reason', required: true, class: 'input hform__text'
|
||||||
/ => button_tag class: 'hform__button button' do
|
/ => button_tag class: 'hform__button button' do
|
||||||
/ i.fa.fa-trash>
|
/ i.fa.fa-trash>
|
||||||
/ | Delete
|
/ | Delete
|
||||||
|
|
Loading…
Reference in a new issue