mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:36:21 +00:00
feat: habilitar/deshabilitar activity pub
This commit is contained in:
parent
8b0b0199f6
commit
9ac404ae06
3 changed files with 45 additions and 0 deletions
21
app/views/deploys/_deploy_social_distributed_press.haml
Normal file
21
app/views/deploys/_deploy_social_distributed_press.haml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
-# Publicar a la web distribuida
|
||||||
|
|
||||||
|
.row
|
||||||
|
.col
|
||||||
|
= deploy.hidden_field :id
|
||||||
|
= deploy.hidden_field :type
|
||||||
|
.custom-control.custom-switch
|
||||||
|
-#
|
||||||
|
El checkbox invierte la lógica de destrucción porque queremos
|
||||||
|
crear el deploy si está activado y destruirlo si está
|
||||||
|
desactivado.
|
||||||
|
= deploy.check_box :_destroy,
|
||||||
|
{ checked: deploy.object.persisted?, class: 'custom-control-input' },
|
||||||
|
'0', '1'
|
||||||
|
= deploy.label :_destroy, class: 'custom-control-label' do
|
||||||
|
%h3= t('.title')
|
||||||
|
= sanitize_markdown t('.help'),
|
||||||
|
tags: %w[p strong em a]
|
||||||
|
|
||||||
|
|
||||||
|
%hr/
|
|
@ -123,6 +123,10 @@ en:
|
||||||
title: Distributed Web
|
title: Distributed Web
|
||||||
success: Success!
|
success: Success!
|
||||||
error: Error
|
error: Error
|
||||||
|
deploy_social_distributed_press:
|
||||||
|
title: Fediverse
|
||||||
|
success: Success!
|
||||||
|
error: Error
|
||||||
deploy_reindex:
|
deploy_reindex:
|
||||||
title: Reindex
|
title: Reindex
|
||||||
success: Success!
|
success: Success!
|
||||||
|
@ -307,6 +311,14 @@ en:
|
||||||
indefinitely.
|
indefinitely.
|
||||||
|
|
||||||
[Learn more](https://sutty.nl/learn-more-about-publish-to-dweb-functionality/)
|
[Learn more](https://sutty.nl/learn-more-about-publish-to-dweb-functionality/)
|
||||||
|
deploy_social_distributed_press:
|
||||||
|
title: 'Publish on the Fediverse'
|
||||||
|
help: |
|
||||||
|
By using the ActivityPub protocol, people on the Fediverse
|
||||||
|
([Mastodon](https://joinmastodon.org/servers),
|
||||||
|
[Pixelfed](https://pixelfed.social/site/about), and
|
||||||
|
[others](https://fediverse.party/)) can follow your site,
|
||||||
|
receive news and interact with them.
|
||||||
stats:
|
stats:
|
||||||
index:
|
index:
|
||||||
title: Statistics
|
title: Statistics
|
||||||
|
|
|
@ -123,6 +123,10 @@ es:
|
||||||
title: Web distribuida
|
title: Web distribuida
|
||||||
success: ¡Éxito!
|
success: ¡Éxito!
|
||||||
error: Hubo un error
|
error: Hubo un error
|
||||||
|
deploy_social_distributed_press:
|
||||||
|
title: Fediverso
|
||||||
|
success: ¡Éxito!
|
||||||
|
error: Hubo un error
|
||||||
deploy_reindex:
|
deploy_reindex:
|
||||||
title: Reindexación
|
title: Reindexación
|
||||||
success: ¡Éxito!
|
success: ¡Éxito!
|
||||||
|
@ -312,6 +316,14 @@ es:
|
||||||
copias de tu contenido indefinidamente.
|
copias de tu contenido indefinidamente.
|
||||||
|
|
||||||
[Saber más](https://sutty.nl/saber-mas-sobre-publicar-a-la-web-distribuida/)
|
[Saber más](https://sutty.nl/saber-mas-sobre-publicar-a-la-web-distribuida/)
|
||||||
|
deploy_social_distributed_press:
|
||||||
|
title: 'Publicar al Fediverso'
|
||||||
|
help: |
|
||||||
|
Utilizando el protocolo ActivityPub, otras personas en el
|
||||||
|
Fediverso ([Mastodon](https://joinmastodon.org/servers),
|
||||||
|
[Pixelfed](https://pixelfed.social/site/about) y
|
||||||
|
[otros](https://fediverse.party/)) pueden seguir a tu sitio,
|
||||||
|
recibir novedades e interactuar con ellas.
|
||||||
stats:
|
stats:
|
||||||
index:
|
index:
|
||||||
title: Estadísticas
|
title: Estadísticas
|
||||||
|
|
Loading…
Reference in a new issue