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
e06037cf
Commit
e06037cf
authored
Oct 05, 2016
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CSV download button to issues#index
parent
7538ae81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+2
-0
spec/features/issues/csv_spec.rb
spec/features/issues/csv_spec.rb
+3
-1
No files found.
app/views/projects/issues/index.html.haml
View file @
e06037cf
...
...
@@ -21,6 +21,8 @@
-
if
current_user
=
link_to
url_for
(
params
.
merge
(
format: :atom
,
private_token:
current_user
.
private_token
)),
class:
'btn append-right-10 has-tooltip'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
=
link_to
namespace_project_issues_path
(
@project
.
namespace
,
@project
,
:csv
),
class:
'btn append-right-10 has-tooltip'
,
title:
'Download CSV'
do
=
icon
(
'download'
)
-
if
can?
current_user
,
:create_issue
,
@project
=
link_to
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
...
...
spec/features/issues/csv_spec.rb
View file @
e06037cf
...
...
@@ -10,7 +10,9 @@ describe 'Issues csv', feature: true do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
,
format: :csv
)
end
it
'downloads as a file'
do
it
"downloads from a project's issue index"
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
click_on
'Download CSV'
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
include
(
'csv'
)
end
...
...
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