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
e6dab425
Commit
e6dab425
authored
Nov 20, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update views for testability purposes
parent
ecf6f8b3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/views/projects/issues/export_csv/_button.html.haml
ee/app/views/projects/issues/export_csv/_button.html.haml
+1
-1
ee/app/views/projects/issues/export_csv/_modal.html.haml
ee/app/views/projects/issues/export_csv/_modal.html.haml
+2
-2
No files found.
ee/app/views/projects/issues/export_csv/_button.html.haml
View file @
e6dab425
-
if
(
current_user
&&
@project
.
feature_available?
(
:export_issues
))
||
show_promotions?
%button
.csv_download_link.btn.has-tooltip
{
title:
_
(
'Export as CSV'
),
data:
{
toggle:
'modal'
,
target:
'.issues-export-modal'
}
}
data:
{
toggle:
'modal'
,
target:
'.issues-export-modal'
,
qa_selector:
'export_as_csv_button'
}
}
=
sprite_icon
(
'export'
)
ee/app/views/projects/issues/export_csv/_modal.html.haml
View file @
e6dab425
-
if
current_user
&&
@project
.
feature_available?
(
:export_issues
)
.issues-export-modal.modal
.modal-dialog
.modal-content
.modal-content
{
data:
{
qa_selector:
'export_issues_modal'
}
}
.modal-header
%h3
=
_
(
'Export issues'
)
...
...
@@ -17,6 +17,6 @@
.modal-text
=
_
(
'The CSV export will be created in the background. Once finished, it will be sent to <strong>%{email}</strong> in an attachment.'
).
html_safe
%
{
email:
@current_user
.
notification_email
}
.modal-footer
=
link_to
_
(
'Export issues'
),
export_csv_project_issues_path
(
@project
,
request
.
query_parameters
),
method: :post
,
class:
'btn btn-success float-left'
,
title:
_
(
'Export issues'
),
data:
{
track_label:
"export_issues_csv"
,
track_event:
"click_button"
,
track_value:
""
}
=
link_to
_
(
'Export issues'
),
export_csv_project_issues_path
(
@project
,
request
.
query_parameters
),
method: :post
,
class:
'btn btn-success float-left'
,
title:
_
(
'Export issues'
),
data:
{
track_label:
"export_issues_csv"
,
track_event:
"click_button"
,
track_value:
""
,
qa_selector:
"export_issues_button"
}
-
elsif
show_promotions?
=
render
'shared/promotions/promote_csv_export'
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