Gab Social. All are welcome.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
%tr
|
||||
%td= verification_request.id
|
||||
%td= verification_request.created_at
|
||||
%td
|
||||
= link_to verification_request.account.username, admin_account_url(verification_request.account.id)
|
||||
%td
|
||||
= table_link_to 'download', t('verifications.moderation.view_proof'), verification_request.image.url, target: "_blank"
|
||||
= table_link_to 'checkmark', t('verifications.moderation.approve'), settings_verifications_approve_url(verification_request.id)
|
||||
15
app/views/settings/verifications/moderation/index.html.haml
Normal file
15
app/views/settings/verifications/moderation/index.html.haml
Normal file
@@ -0,0 +1,15 @@
|
||||
- content_for :page_title do
|
||||
= t('verifications.moderation.title')
|
||||
|
||||
%hr.spacer/
|
||||
|
||||
.table-wrapper
|
||||
%table.table
|
||||
%thead
|
||||
%tr
|
||||
%th= t('verifications.moderation.id')
|
||||
%th= t('verifications.moderation.date')
|
||||
%th= t('verifications.moderation.account')
|
||||
%th
|
||||
%tbody
|
||||
= render partial: 'settings/verifications/moderation/verification_request', collection: @verification_requests, as: :verification_request
|
||||
27
app/views/settings/verifications/requests/index.html.haml
Normal file
27
app/views/settings/verifications/requests/index.html.haml
Normal file
@@ -0,0 +1,27 @@
|
||||
- content_for :page_title do
|
||||
= t('verifications.requests.title')
|
||||
|
||||
- if @current_account.is_verified?
|
||||
.alert.alert-info
|
||||
= t('verifications.requests.already_verified_html')
|
||||
- elsif @account_verification_request.persisted?
|
||||
.alert.alert-success
|
||||
= t('verifications.requests.already_requested')
|
||||
- elsif not @current_account.is_pro?
|
||||
.alert.alert-info
|
||||
= t('verifications.requests.only_allowed_for_pro')
|
||||
- else
|
||||
= simple_form_for @account_verification_request, url: settings_verifications_requests_path do |f|
|
||||
= t('verifications.requests.explanation_html')
|
||||
|
||||
%br
|
||||
|
||||
= render 'shared/error_messages', object: @account_verification_request
|
||||
|
||||
= f.hidden_field :account
|
||||
|
||||
.fields-group
|
||||
= f.input :image, wrapper: :with_label, input_html: { accept: 'image/png' }, hint: t('verifications.requests.image_hint')
|
||||
|
||||
.actions
|
||||
= f.button :button, t('verifications.requests.submit'), type: :submit
|
||||
Reference in New Issue
Block a user