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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
aae674c3
Commit
aae674c3
authored
Dec 21, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve CI build artifacts browser view
parent
5a1faf61
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
app/views/projects/artifacts/_tree_directory.html.haml
app/views/projects/artifacts/_tree_directory.html.haml
+1
-0
app/views/projects/artifacts/_tree_file.html.haml
app/views/projects/artifacts/_tree_file.html.haml
+3
-0
app/views/projects/artifacts/browse.html.haml
app/views/projects/artifacts/browse.html.haml
+17
-3
No files found.
app/views/projects/artifacts/_tree_directory.html.haml
View file @
aae674c3
...
...
@@ -3,3 +3,4 @@
=
tree_icon
(
'folder'
,
'755'
,
directory
.
basename
)
%span
.str-truncated
=
link_to
directory
.
basename
,
browse_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
@build
,
path:
directory
.
path
)
%td
app/views/projects/artifacts/_tree_file.html.haml
View file @
aae674c3
...
...
@@ -3,3 +3,6 @@
=
tree_icon
(
'file'
,
'664'
,
file
.
basename
)
%span
.str-truncated
=
file
.
basename
%td
=
link_to
''
,
class:
'btn btn-xs btn-default'
do
=
icon
(
'download'
)
app/views/projects/artifacts/browse.html.haml
View file @
aae674c3
-
page_title
"
#{
@build
.
name
}
(#
#{
@build
.
id
}
)"
,
'Build artifacts'
-
header_title
project_title
(
@project
,
"Build artifacts"
,
namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
))
%table
.table.table-hover
=
render
partial:
'tree_directory'
,
collection:
@path
.
directories
,
as: :directory
=
render
partial:
'tree_file'
,
collection:
@path
.
files
,
as: :file
#tree-holder
.tree-holder
.gray-content-block.top-block.clearfix
.pull-right
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
@build
),
class:
'btn btn-default'
,
method: :get
do
=
icon
(
'download'
)
Download artifacts archive
%div
.tree-content-holder
.table-holder
%table
.table.tree-table.table-striped
%thead
%tr
%th
Name
%th
Download
=
render
partial:
'tree_directory'
,
collection:
@path
.
directories
,
as: :directory
=
render
partial:
'tree_file'
,
collection:
@path
.
files
,
as: :file
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