Commit d1da8ef7 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett Committed by Luke Bennett

Updated collapsible

parent ff3dc13f
...@@ -99,16 +99,20 @@ ...@@ -99,16 +99,20 @@
} }
.abuse-reports { .abuse-reports {
table-layout: fixed; .btn-group {
.action-buttons a { margin-top: 4px;
white-space: normal;
} }
@media (min-width: $screen-sm-min) { .panel-body {
th { overflow-y: scroll;
width: 15%; max-height: 300px;
&.wide {
width: 55%;
} }
.no-reports {
.emoji-icon {
margin-left: $btn-side-margin;
margin-top: 3px;
}
span {
font-size: 19px;
} }
} }
} }
...@@ -3,10 +3,17 @@ ...@@ -3,10 +3,17 @@
.panel.panel-default .panel.panel-default
.panel-heading{ id: "heading#{ abuse_report_counter }", role: 'tab' } .panel-heading{ id: "heading#{ abuse_report_counter }", role: 'tab' }
%h4.panel-title .panel-title
%a{ role: 'button', href: "#collapse#{ abuse_report_counter }", data: { toggle: 'collapse', parent: '#accordion' }, aria: { expanded: 'true', controls: "collapse#{ abuse_report_counter }" } } - if user
Collapsible Group Item # = link_to user.name, user
= abuse_report_counter.to_s - else
(removed)
-# %a{ role: 'button', href: "#collapse#{ abuse_report_counter }", data: { toggle: 'collapse', parent: '#accordion' }, aria: { expanded: 'true', controls: "collapse#{ abuse_report_counter }" } }
reported by
- if reporter
= link_to reporter.name, reporter
- else
(removed)
.btn-group.pull-right .btn-group.pull-right
- if user - if user
= link_to 'Remove user & report', admin_abuse_report_path(abuse_report, remove_user: true), = link_to 'Remove user & report', admin_abuse_report_path(abuse_report, remove_user: true),
...@@ -20,21 +27,12 @@ ...@@ -20,21 +27,12 @@
.clearfix .clearfix
.panel-collapse.collapse{ id: "collapse#{ abuse_report_counter }", class: (abuse_report_counter == 0 ? 'in' : ''), role: 'tabpanel', aria: { labelledby: "heading#{ abuse_report_counter }" } } .panel-collapse.collapse{ id: "collapse#{ abuse_report_counter }", class: (abuse_report_counter == 0 ? 'in' : ''), role: 'tabpanel', aria: { labelledby: "heading#{ abuse_report_counter }" } }
.panel-body .panel-body
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. = markdown(abuse_report.message.squish!, pipeline: :single_line, author: reporter)
-# %tr -# %tr
-# %td -# %td
-# - if user
-# = link_to user.name, user
-# .light.small
-# Joined #{time_ago_with_tooltip(user.created_at)}
-# - else
-# (removed)
-# %td -# %td
-# - if reporter
-# = link_to reporter.name, reporter
-# - else
-# (removed)
-# .light.small -# .light.small
-# = time_ago_with_tooltip(abuse_report.created_at) -# = time_ago_with_tooltip(abuse_report.created_at)
-# %td -# %td
......
- page_title 'Abuse Reports' - page_title 'Abuse Reports'
%h3.page-title Abuse Reports %h3.page-title Abuse Reports
%hr %hr
-# - if @abuse_reports.present? .abuse-reports
- if false - if @abuse_reports.present?
.panel-group#accordion{ role: 'tablist', aria: { multiselectable: 'true' } } .panel-group#accordion{ role: 'tablist', aria: { multiselectable: 'true' } }
= render @abuse_reports = render @abuse_reports
= paginate @abuse_reports = paginate @abuse_reports
- else - else
.no-reports .no-reports
.pull-left %span.pull-left
There are no abuse reports! There are no abuse reports!
.pull-left .pull-left
= emoji_icon 'tada' = emoji_icon 'tada'
-# .panel.panel-default
-# .panel-heading#headingOne{ role: 'tab' }
-# %h4.panel-title
-# %a{ role: 'button', href: '#collapseOne', data: { toggle: 'collapse', parent: '#accordion' }, aria: { expanded: 'true', controls: 'collapseOne' } }
-# Collapsible Group Item #1
-# .panel-collapse.collapse.in#collapseOne{ role: 'tabpanel', aria: { labelledby: 'headingOne' } }
-# .panel-body
-# Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
-# .panel.panel-default
-# .panel-heading#headingTwo{ role: 'tab' }
-# %h4.panel-title
-# %a.collapsed{ role: 'button', href: '#collapseTwo', data: { toggle: 'collapse', parent: '#accordion' }, aria: { expanded: 'false', controls: 'collapseTwo' } }
-# Collapsible Group Item #2
-# .panel-collapse.collapse#collapseTwo{ role: 'tabpanel', aria: { labelledby: 'headingTwo' } }
-# .panel-body
-# Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment