summaryrefslogtreecommitdiff
path: root/app/views/projects/artifacts/_tree_file.html.haml
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-08 12:35:49 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-14 12:48:15 +0100
commit387b27813d1d496c015f4f174812b4761c32648d (patch)
tree59061040f651df04895060bfc48d9b5f36ee5f34 /app/views/projects/artifacts/_tree_file.html.haml
parent09c82c6fdc494de0d64cb58b4b61a86104ff1131 (diff)
downloadgitlab-ce-387b27813d1d496c015f4f174812b4761c32648d.tar.gz
Change format of artifacts metadata from text to binary 0.0.1
This changes the format of metadata to handle paths, that may contain whitespace characters, new line characters and non-UTF-8 characters. Now those paths along with metadata in JSON format are stored as length-prefixed strings (uint32 prefix). Metadata file has a custom format: 1. First string field is metadata version field (string) 2. Second string field is metadata errors field (JSON strong) 3. All subsequent fields is pair of path (string) and path metadata in JSON format. Path's metadata contains all fields that where possible to extract from ZIP archive like date of modification, CRC, compressed size, uncompressed size and comment.
Diffstat (limited to 'app/views/projects/artifacts/_tree_file.html.haml')
-rw-r--r--app/views/projects/artifacts/_tree_file.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/artifacts/_tree_file.html.haml b/app/views/projects/artifacts/_tree_file.html.haml
index 0059f845841..11ced45fe14 100644
--- a/app/views/projects/artifacts/_tree_file.html.haml
+++ b/app/views/projects/artifacts/_tree_file.html.haml
@@ -4,7 +4,7 @@
%span.str-truncated
= file.name
%td
- = number_to_human_size(file.metadata[:uncompressed_size], precision: 2)
+ = number_to_human_size(file.metadata[:size], precision: 2)
%td
= link_to '', class: 'btn btn-xs btn-default' do
= icon('download')