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
e8cf6b07
Commit
e8cf6b07
authored
Oct 21, 2016
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed CSV specs and updated styling
parent
6d332057
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
app/views/notify/issues_csv_email.html.haml
app/views/notify/issues_csv_email.html.haml
+1
-1
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+1
-1
spec/features/issues/csv_spec.rb
spec/features/issues/csv_spec.rb
+3
-0
spec/mailers/emails/issues_spec.rb
spec/mailers/emails/issues_spec.rb
+0
-1
No files found.
app/views/notify/issues_csv_email.html.haml
View file @
e8cf6b07
...
...
@@ -54,7 +54,7 @@
%table
.wrapper
{
border:
"0"
,
cellpadding:
"0"
,
cellspacing:
"0"
,
style:
"width:640px;margin:0 auto;border-collapse:separate;border-spacing:0;"
}
%tbody
%tr
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background-color:#ffffff;text-align:left;padding:18px 25px;border:1px solid #ededed;border-radius:3px;overflow:hidden;"
}
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background-color:#ffffff;text-align:left;padding:18px 25px;border:1px solid #ededed;border-radius:3px;overflow:hidden;
font-size:18px;
"
}
Your .csv export of
#{
@issues_count
}
issues from project
%a
{
href:
project_url
(
@project
),
style:
"color:#3777b0;text-decoration:none;"
}
=
@project
.
name
...
...
app/views/projects/issues/index.html.haml
View file @
e8cf6b07
...
...
@@ -22,7 +22,7 @@
-
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'
)
%button
.csv_download_link.btn.append-right-10
{
title:
'Download CSV'
}
%button
.csv_download_link.btn.append-right-10
.has-tooltip
{
title:
'Download CSV'
}
=
icon
(
'download'
)
-
if
can?
current_user
,
:create_issue
,
@project
=
link_to
new_namespace_project_issue_path
(
@project
.
namespace
,
...
...
spec/features/issues/csv_spec.rb
View file @
e8cf6b07
...
...
@@ -13,6 +13,7 @@ describe 'Issues csv', feature: true do
it
"downloads from a project's issue index"
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
click_on
'Download CSV'
click_on
'Request export'
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
include
(
'csv'
)
end
...
...
@@ -22,6 +23,7 @@ describe 'Issues csv', feature: true do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
click_on
'Download CSV'
click_on
'Request export'
expect
(
csv
.
count
).
to
eq
31
end
...
...
@@ -29,6 +31,7 @@ describe 'Issues csv', feature: true do
it
'uses filters from issue index'
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
,
state: :closed
)
click_on
'Download CSV'
click_on
'Request export'
expect
(
csv
.
count
).
to
eq
0
end
...
...
spec/mailers/emails/issues_spec.rb
View file @
e8cf6b07
require
'spec_helper'
require
'email_spec'
require
'mailers/shared/notify'
describe
Notify
do
include
EmailSpec
::
Matchers
...
...
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