Commit 2d524db7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve packages#show UI

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 267839c8
...@@ -15,46 +15,57 @@ ...@@ -15,46 +15,57 @@
.col-md-6 .col-md-6
.card .card
.card-header .card-header
= _('Package info:') %strong= _('Package information')
%ul.content-list %ul.content-list
%li %li
%span.light %span.light
= _('Name:') = _('Name')
%strong %span.pull-right
= @package.name = @package.name
%li %li
%span.light %span.light
= _('Version:') = _('Version')
%strong %span.pull-right
= @package.version = @package.version
%li %li
%span.light %span.light
= _('Created on:') = _('Created on')
%strong %span.pull-right
= @package.created_at.to_s(:medium) = @package.created_at.to_s(:medium)
.col-md-6
- if @maven_metadatum - if @maven_metadatum
.card .card
.card-header .card-header
= _('Maven Package info:') %strong= _('Maven Metadata')
%ul.content-list %ul.content-list
%li %li
%span.light %span.light
= _('Group ID:') = _('Group ID')
%strong %span.pull-right
= @maven_metadatum.app_group = @maven_metadatum.app_group
%li %li
%span.light %span.light
= _('Artifact ID:') = _('Artifact ID')
%strong %span.pull-right
= @maven_metadatum.app_name = @maven_metadatum.app_name
.col-md-6
.card
.card-header
= _('Package files:')
%ul.content-list
- @package_files.each do |package_file|
%li %li
%span.light
= _('Version')
%span.pull-right
= @maven_metadatum.app_version
%table.table
%thead
%tr
%th Name
%th Size
%th Created
%tbody
- @package_files.each do |package_file|
%tr
%td
= icon('file-o fw')
= package_file.file.identifier = package_file.file.identifier
.text-muted %td
= _('Added') = number_to_human_size(package_file.size, precision: 2)
%td
= time_ago_with_tooltip(package_file.created_at) = time_ago_with_tooltip(package_file.created_at)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment