5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 20:36:21 +00:00
panel/app/views/deploy_mailer/deployed.html.haml

25 lines
725 B
Text
Raw Normal View History

2019-07-26 00:36:33 +00:00
%h1= t('.hi')
= sanitize_markdown t('.explanation', fqdn: @deploy_local.site.hostname),
2019-07-26 00:36:33 +00:00
tags: %w[p a strong em]
%table
%thead
%tr
%th= t('.th.type')
%th= t('.th.status')
2022-04-06 23:07:14 +00:00
%th= t('.th.url')
%th= t('.th.seconds')
2022-04-06 23:42:40 +00:00
%th= t('.th.size')
2019-07-26 00:36:33 +00:00
%tbody
2022-04-06 23:07:14 +00:00
- @deploys.each_pair do |deploy, value|
2019-07-26 00:36:33 +00:00
%tr
%td= t(".#{deploy}.title")
2022-04-06 23:07:14 +00:00
%td= value[:status] ? t(".#{deploy}.success") : t(".#{deploy}.error")
%td= link_to value[:url], value[:url]
%td
%time{ datetime: "PT#{value[:seconds]}S" }= distance_of_time_in_words value[:seconds].seconds
2022-04-06 23:42:40 +00:00
%td= number_to_human_size value[:size], precision: 2
2019-07-26 00:36:33 +00:00
= sanitize_markdown t('.help'), tags: %w[p a strong em]