5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-05 07:45:46 +00:00
panel/app/views/deploy_mailer/deployed.text.haml

12 lines
504 B
Plaintext
Raw Normal View History

2020-07-18 19:26:54 +00:00
= '# ' + t('.hi')
2019-07-26 00:36:33 +00:00
\
= t('.explanation', fqdn: @deploy_local.site.hostname)
2019-07-26 00:36:33 +00:00
\
= Terminal::Table.new do |table|
2022-04-07 16:34:12 +00:00
- table << [t('.th.type'), t('.th.status'), t('.th.url'), t('.th.seconds'), t('.th.size')]
2019-07-26 00:36:33 +00:00
- table.add_separator
2022-04-06 23:07:14 +00:00
- @deploys.each_pair do |deploy, value|
2022-04-06 23:42:40 +00:00
- table << [t(".#{deploy}.title"), value[:status] ? t(".#{deploy}.success") : t(".#{deploy}.error"), value[:url], distance_of_time_in_words(value[:seconds].seconds), number_to_human_size(value[:size], precision: 2)]
2019-07-26 00:36:33 +00:00
\
= t('.help')