Change interaction modal in web UI (#26075)

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
Claire 2023-07-27 16:11:17 +02:00 committed by GitHub
parent 1e4ccc655a
commit b4e739ff0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 682 additions and 1091 deletions

View file

@ -1,4 +0,0 @@
.post-follow-actions
%div= link_to t('authorize_follow.post_follow.web'), web_url("@#{@resource.pretty_acct}"), class: 'button button--block'
%div= link_to t('authorize_follow.post_follow.return'), ActivityPub::TagManager.instance.url_for(@resource), class: 'button button--block'
%div= t('authorize_follow.post_follow.close')

View file

@ -1,3 +0,0 @@
.form-container
.flash-message#error_explanation
= t('authorize_follow.error')

View file

@ -1,24 +0,0 @@
- content_for :page_title do
= t('authorize_follow.title', acct: @resource.pretty_acct)
.form-container
.follow-prompt
= render 'application/card', account: @resource
- if current_account.following?(@resource)
.flash-message
%strong
= t('authorize_follow.already_following')
= render 'post_follow_actions'
- elsif current_account.requested?(@resource)
.flash-message
%strong
= t('authorize_follow.already_requested')
= render 'post_follow_actions'
- else
= form_tag authorize_interaction_path, method: :post, class: 'simple_form' do
= hidden_field_tag :action, :follow
= hidden_field_tag :acct, @resource.acct
= button_tag t('authorize_follow.follow'), type: :submit

View file

@ -1,13 +0,0 @@
- content_for :page_title do
= t('authorize_follow.title', acct: @resource.pretty_acct)
.form-container
.follow-prompt
- if @resource.locked?
%h2= t('authorize_follow.follow_request')
- else
%h2= t('authorize_follow.following')
= render 'application/card', account: @resource
= render 'post_follow_actions'

View file

@ -0,0 +1,8 @@
!!! 5
%html
%head
%meta{ charset: 'utf-8' }/
= javascript_pack_tag 'common', crossorigin: 'anonymous'
= yield :header_tags

View file

@ -0,0 +1,4 @@
- content_for :header_tags do
%meta{ name: 'robots', content: 'noindex' }/
= javascript_pack_tag 'remote_interaction_helper', crossorigin: 'anonymous'