Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2d524db7
Commit
2d524db7
authored
Aug 16, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve packages#show UI
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
267839c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
22 deletions
+33
-22
ee/app/views/projects/packages/packages/show.html.haml
ee/app/views/projects/packages/packages/show.html.haml
+33
-22
No files found.
ee/app/views/projects/packages/packages/show.html.haml
View file @
2d524db7
...
...
@@ -15,46 +15,57 @@
.col-md-6
.card
.card-header
=
_
(
'Package info:
'
)
%strong
=
_
(
'Package information
'
)
%ul
.content-list
%li
%span
.light
=
_
(
'Name
:
'
)
%s
trong
=
_
(
'Name'
)
%s
pan
.pull-right
=
@package
.
name
%li
%span
.light
=
_
(
'Version
:
'
)
%s
trong
=
_
(
'Version'
)
%s
pan
.pull-right
=
@package
.
version
%li
%span
.light
=
_
(
'Created on
:
'
)
%s
trong
=
_
(
'Created on'
)
%s
pan
.pull-right
=
@package
.
created_at
.
to_s
(
:medium
)
.col-md-6
-
if
@maven_metadatum
.card
.card-header
=
_
(
'Maven Package info:
'
)
%strong
=
_
(
'Maven Metadata
'
)
%ul
.content-list
%li
%span
.light
=
_
(
'Group ID
:
'
)
%s
trong
=
_
(
'Group ID'
)
%s
pan
.pull-right
=
@maven_metadatum
.
app_group
%li
%span
.light
=
_
(
'Artifact ID
:
'
)
%s
trong
=
_
(
'Artifact ID'
)
%s
pan
.pull-right
=
@maven_metadatum
.
app_name
.col-md-6
.card
.card-header
=
_
(
'Package files:'
)
%ul
.content-list
-
@package_files
.
each
do
|
package_file
|
%li
=
package_file
.
file
.
identifier
.text-muted
=
_
(
'Added'
)
=
time_ago_with_tooltip
(
package_file
.
created_at
)
%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
%td
=
number_to_human_size
(
package_file
.
size
,
precision:
2
)
%td
=
time_ago_with_tooltip
(
package_file
.
created_at
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment