5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 22:46:23 +00:00
panel/app/views/deploy_mailer/deployed.text.haml

12 lines
441 B
Text
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-06 23:07:14 +00:00
- table << [t('.th.type'), t('.th.status'), t('.th.url'), t('.th.seconds')]
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|
- table << [ t(".#{deploy}.title"), value[:status] ? t(".#{deploy}.success") : t(".#{deploy}.error"), value[:url], distance_of_time_in_words(value[:seconds].seconds) ]
2019-07-26 00:36:33 +00:00
\
= t('.help')