5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 03:26:22 +00:00
panel/app/views/deploys/_deploy_hidden_service.haml

25 lines
768 B
Text
Raw Permalink Normal View History

2020-07-18 19:26:54 +00:00
-# Generar un hidden service
.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', public_url: deploy.object.site.url),
tags: %w[p strong em a]
- begin
2020-07-18 19:26:54 +00:00
= sanitize_markdown t('.help_2', url: deploy.object.url),
tags: %w[p strong em a]
- rescue ArgumentError
2020-07-18 19:26:54 +00:00
%hr/