23 lines
949 B
Text
23 lines
949 B
Text
.sidebar
|
|
.input-group
|
|
input.form-control type="text" placeholder="search"
|
|
span.input-group-btn
|
|
button.btn.btn-default type="button"
|
|
span.glyphicon.glyphicon-search aria-hidden="true"
|
|
|
|
- if policy(:post).new?
|
|
- if @subcreddit && @subcreddit.id
|
|
= link_to 'Submit a new link', new_subcreddit_post_path(@subcreddit), class: 'button btn btn-primary btn-block'
|
|
= link_to 'Submit a new text post', new_subcreddit_post_path(@subcreddit), class: 'button btn btn-primary btn-block'
|
|
- if policy(:subcreddit).new?
|
|
= link_to 'Create your own subcreddit', new_subcreddit_path, class: 'button btn btn-primary btn-block'
|
|
|
|
- if @subcreddit && @subcreddit.id && policy(@subcreddit).edit?
|
|
.title Moderation Tools
|
|
.box
|
|
ul
|
|
li= link_to 'subcreddit settings', edit_subcreddit_path(@subcreddit)
|
|
.title Moderators
|
|
.box
|
|
ul
|
|
li= link_to @subcreddit.owner_username, @subcreddit.owner
|