diff --git a/app/views/moderation/_actions.haml b/app/views/moderation/_actions.haml deleted file mode 100644 index eac8d11d..00000000 --- a/app/views/moderation/_actions.haml +++ /dev/null @@ -1,2 +0,0 @@ -%a.btn.btn-default.btn-block{ href: moderation_priority_path(user.id) } - View reports relating to user diff --git a/app/views/moderation/_moderationbox.haml b/app/views/moderation/_moderationbox.haml index 4d1e5629..5624ab94 100644 --- a/app/views/moderation/_moderationbox.haml +++ b/app/views/moderation/_moderationbox.haml @@ -28,8 +28,6 @@ - if report.target.respond_to?(:user) && report.target.user %a.btn.btn-primary{ href: show_user_profile_path(report.target.user.screen_name) } = t('views.moderation.moderationbox.view', content: t('views.general.user')) - %a.btn.btn-primary{ href: moderation_priority_path(report.target.user.id) } - Reports .col-md-4.col-sm-4.col-xs-4.text-right %button.btn.btn-default.btn-sm{ type: :button, name: 'mod-delete-report', data: { id: report.id } } %i.fa.fa-trash-o diff --git a/app/views/moderation/_userbox.haml b/app/views/moderation/_userbox.haml deleted file mode 100644 index 7685622b..00000000 --- a/app/views/moderation/_userbox.haml +++ /dev/null @@ -1,21 +0,0 @@ -.card.h-100.userbox - %img.userbox__header{ src: user.profile_header.url(:mobile) } - .card-body - %img.userbox__avatar{ src: user.profile_picture.url(:small) } - %a.profile__name{ href: show_user_profile_path(user.screen_name) } - - unless user.profile.display_name.blank? - .profile__display-name - = user.profile.display_name - .profile__screen-name - = user.screen_name - .row - .col-md-12.col-sm-12.col-xs-12 - - if count.positive? - %h4.entry-text.text-center#asked-count - = count - = 'Report'.pluralize(count) - %br - %br - - else - %br - = render 'actions', user: user diff --git a/app/views/moderation/priority.haml b/app/views/moderation/priority.haml deleted file mode 100644 index 16ff1274..00000000 --- a/app/views/moderation/priority.haml +++ /dev/null @@ -1,10 +0,0 @@ -%h2 - - if @host.nil? - Users sorted by reports - - else - Users with the same IP -#users - .row.row-cols-1.row-cols-sm-2.row-cols-md-3 - - @users.each do |u, c| - .col.pb-3 - = render 'moderation/userbox', user: u, count: (c || 0) diff --git a/app/views/navigation/_moderation.haml b/app/views/navigation/_moderation.haml index 8a70ef05..007766cc 100644 --- a/app/views/navigation/_moderation.haml +++ b/app/views/navigation/_moderation.haml @@ -10,4 +10,3 @@ = nav_entry t('views.general.comment').pluralize(2), moderation_path('comment') = nav_entry t('views.general.user').pluralize(2), moderation_path('user') = nav_entry t('views.general.question').pluralize(2), moderation_path('question') - = nav_entry 'Priority', moderation_priority_path diff --git a/app/views/tabs/_moderation.haml b/app/views/tabs/_moderation.haml index 9e2670ae..a0ae3666 100644 --- a/app/views/tabs/_moderation.haml +++ b/app/views/tabs/_moderation.haml @@ -5,6 +5,5 @@ = list_group_item t('views.general.comment').pluralize(2), moderation_path('comment') = list_group_item t('views.general.user').pluralize(2), moderation_path('user') = list_group_item t('views.general.question').pluralize(2), moderation_path('question') - = list_group_item 'Priority', moderation_priority_path .d-none.d-sm-block= render 'shared/links'