mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 21:36:21 +00:00
mostrar espacio utilizado
This commit is contained in:
parent
c47b4f179c
commit
9286670424
5 changed files with 7 additions and 1 deletions
|
@ -31,6 +31,7 @@ class DeployJob < ApplicationJob
|
||||||
deploy_local: {
|
deploy_local: {
|
||||||
status: deploy_locally,
|
status: deploy_locally,
|
||||||
seconds: deploy_local.build_stats.last.seconds,
|
seconds: deploy_local.build_stats.last.seconds,
|
||||||
|
size: deploy_local.build_stats.last.size,
|
||||||
url: deploy_local.url
|
url: deploy_local.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,6 +70,7 @@ class DeployJob < ApplicationJob
|
||||||
@deployed[d.type.underscore.to_sym] = {
|
@deployed[d.type.underscore.to_sym] = {
|
||||||
status: d.deploy,
|
status: d.deploy,
|
||||||
seconds: d.build_stats.last.seconds,
|
seconds: d.build_stats.last.seconds,
|
||||||
|
size: d.build_stats.last.size,
|
||||||
url: d.url
|
url: d.url
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
%th= t('.th.status')
|
%th= t('.th.status')
|
||||||
%th= t('.th.url')
|
%th= t('.th.url')
|
||||||
%th= t('.th.seconds')
|
%th= t('.th.seconds')
|
||||||
|
%th= t('.th.size')
|
||||||
%tbody
|
%tbody
|
||||||
- @deploys.each_pair do |deploy, value|
|
- @deploys.each_pair do |deploy, value|
|
||||||
%tr
|
%tr
|
||||||
|
@ -18,5 +19,6 @@
|
||||||
%td= link_to value[:url], value[:url]
|
%td= link_to value[:url], value[:url]
|
||||||
%td
|
%td
|
||||||
%time{ datetime: "PT#{value[:seconds]}S" }= distance_of_time_in_words value[:seconds].seconds
|
%time{ datetime: "PT#{value[:seconds]}S" }= distance_of_time_in_words value[:seconds].seconds
|
||||||
|
%td= number_to_human_size value[:size], precision: 2
|
||||||
|
|
||||||
= sanitize_markdown t('.help'), tags: %w[p a strong em]
|
= sanitize_markdown t('.help'), tags: %w[p a strong em]
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
- table << [t('.th.type'), t('.th.status'), t('.th.url'), t('.th.seconds')]
|
- table << [t('.th.type'), t('.th.status'), t('.th.url'), t('.th.seconds')]
|
||||||
- table.add_separator
|
- table.add_separator
|
||||||
- @deploys.each_pair do |deploy, value|
|
- @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) ]
|
- 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)]
|
||||||
\
|
\
|
||||||
= t('.help')
|
= t('.help')
|
||||||
|
|
|
@ -77,6 +77,7 @@ en:
|
||||||
type: Type
|
type: Type
|
||||||
status: Status
|
status: Status
|
||||||
seconds: Duration
|
seconds: Duration
|
||||||
|
size: Space used
|
||||||
url: Address
|
url: Address
|
||||||
deploy_local:
|
deploy_local:
|
||||||
title: Build the site
|
title: Build the site
|
||||||
|
|
|
@ -77,6 +77,7 @@ es:
|
||||||
type: Tipo
|
type: Tipo
|
||||||
status: Estado
|
status: Estado
|
||||||
seconds: Duración
|
seconds: Duración
|
||||||
|
size: Espacio ocupado
|
||||||
url: Dirección
|
url: Dirección
|
||||||
deploy_local:
|
deploy_local:
|
||||||
title: Generar el sitio
|
title: Generar el sitio
|
||||||
|
|
Loading…
Reference in a new issue