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
84f37280
Commit
84f37280
authored
Jan 17, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make linters happy
parent
48e31125
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
.rubocop_todo.yml
.rubocop_todo.yml
+2
-2
app/mailers/emails/merge_requests.rb
app/mailers/emails/merge_requests.rb
+1
-1
app/views/notify/approved_merge_request_email.html.haml
app/views/notify/approved_merge_request_email.html.haml
+2
-2
app/views/notify/unapproved_merge_request_email.html.haml
app/views/notify/unapproved_merge_request_email.html.haml
+3
-3
No files found.
.rubocop_todo.yml
View file @
84f37280
...
...
@@ -62,7 +62,7 @@ Lint/UnusedMethodArgument:
# Offense count: 112
# Configuration parameters: CountComments.
Metrics/BlockLength
:
Max
:
303
Enabled
:
false
# Offense count: 4
# Cop supports --auto-correct.
...
...
@@ -125,7 +125,7 @@ RSpec/MessageSpies:
# Offense count: 3278
RSpec/MultipleExpectations
:
Max
:
37
Enabled
:
false
# Offense count: 2287
RSpec/NamedSubject
:
...
...
app/mailers/emails/merge_requests.rb
View file @
84f37280
...
...
@@ -65,7 +65,7 @@ module Emails
setup_merge_request_mail
(
merge_request_id
,
recipient_id
)
@unapproved_by
=
User
.
find
(
unapproved_by_user_id
)
mail_answer_thread
(
@merge_request
,
merge_request_thread_options
(
approved_by_user_id
,
recipient_id
))
mail_answer_thread
(
@merge_request
,
merge_request_thread_options
(
un
approved_by_user_id
,
recipient_id
))
end
def
resolved_all_discussions_email
(
recipient_id
,
merge_request_id
,
resolved_by_user_id
)
...
...
app/views/notify/approved_merge_request_email.html.haml
View file @
84f37280
...
...
@@ -45,7 +45,7 @@
%table
#body
{
border:
"0"
,
cellpadding:
"0"
,
cellspacing:
"0"
,
style:
"background-color:#fafafa;margin:0;padding:0;text-align:center;min-width:640px;width:100%;"
}
%tbody
%tr
.line
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background-color:#6b4fbb;height:4px;font-size:4px;line-height:4px;"
}
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background-color:#6b4fbb;height:4px;font-size:4px;line-height:4px;"
}
%tr
.header
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:25px 0;font-size:13px;line-height:1.6;color:#5c5c5c;"
}
%img
{
alt:
"GitLab"
,
height:
"50"
,
src:
image_url
(
'mailers/ci_pipeline_notif_v1/gitlab-logo.gif'
),
width:
"55"
}
/
...
...
@@ -75,7 +75,7 @@
%tbody
%tr
{
style:
'width:100%;'
}
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;color:#8c8c8c;font-weight:300;padding:14px 0;margin:0;text-align:center;"
}
%img
{
src:
image_url
(
'mailers/approval/icon-merge-request-gray.gif'
),
style:
"height:18px;width:18px;margin-bottom:-4px;"
}
%img
{
src:
image_url
(
'mailers/approval/icon-merge-request-gray.gif'
),
style:
"height:18px;width:18px;margin-bottom:-4px;"
,
alt:
"Merge request icon"
}
%span
{
style:
"font-weight: bold;color:#333333;"
}
Merge request
%a
{
href:
merge_request_url
(
@merge_request
),
style:
"font-weight: bold;color:#3777b0;text-decoration:none"
}
#{
@merge_request
.
to_reference
}
%span
was approved by
...
...
app/views/notify/unapproved_merge_request_email.html.haml
View file @
84f37280
...
...
@@ -45,7 +45,7 @@
%table
#body
{
border:
"0"
,
cellpadding:
"0"
,
cellspacing:
"0"
,
style:
"background-color:#fafafa;margin:0;padding:0;text-align:center;min-width:640px;width:100%;"
}
%tbody
%tr
.line
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background-color:#6b4fbb;height:4px;font-size:4px;line-height:4px;"
}
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background-color:#6b4fbb;height:4px;font-size:4px;line-height:4px;"
}
%tr
.header
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:25px 0;font-size:13px;line-height:1.6;color:#5c5c5c;"
}
%img
{
alt:
"GitLab"
,
height:
"50"
,
src:
image_url
(
'mailers/ci_pipeline_notif_v1/gitlab-logo.gif'
),
width:
"55"
}
/
...
...
@@ -63,7 +63,7 @@
%tbody
%tr
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:middle;color:#ffffff;text-align:center;padding-right:5px;"
}
%img
{
height:
"13"
,
src:
image_url
(
'mailers/approval/icon-x-orange-inverted.gif'
),
style:
"display:block;"
,
width:
"13"
}
/
%img
{
alt:
"✗"
,
height:
"13"
,
src:
image_url
(
'mailers/approval/icon-x-orange-inverted.gif'
),
style:
"display:block;"
,
width:
"13"
}
/
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:middle;color:#ffffff;text-align:center;"
}
%span
Merge request was unapproved (
#{
@merge_request
.
approvals
.
count
}
/
#{
@merge_request
.
approvals_required
}
)
%tr
.spacer
...
...
@@ -75,7 +75,7 @@
%tbody
%tr
{
style:
'width:100%;'
}
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;color:#8c8c8c;font-weight:300;padding:14px 0;margin:0;text-align:center;"
}
%img
{
src:
image_url
(
'mailers/approval/icon-merge-request-gray.gif'
),
style:
"height:18px;width:18px;margin-bottom:-4px;"
}
%img
{
src:
image_url
(
'mailers/approval/icon-merge-request-gray.gif'
),
style:
"height:18px;width:18px;margin-bottom:-4px;"
,
alt:
"Merge request icon"
}
%span
{
style:
"font-weight: bold;color:#333333;"
}
Merge request
%a
{
href:
merge_request_url
(
@merge_request
),
style:
"font-weight: bold;color:#3777b0;text-decoration:none"
}
#{
@merge_request
.
to_reference
}
%span
was unapproved by
...
...
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