BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0b401f2e
Commit
0b401f2e
authored
Aug 20, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of whoopsy daisies.
parent
e9972efc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
attachment_uploader.rb
lib/gitlab/email/attachment_uploader.rb
+1
-1
receiver.rb
lib/gitlab/email/receiver.rb
+3
-1
No files found.
lib/gitlab/email/attachment_uploader.rb
View file @
0b401f2e
module
Gitlab
module
Gitlab
module
Email
module
Email
module
AttachmentUploader
class
AttachmentUploader
attr_accessor
:message
attr_accessor
:message
def
initialize
(
message
)
def
initialize
(
message
)
...
...
lib/gitlab/email/receiver.rb
View file @
0b401f2e
...
@@ -76,7 +76,7 @@ module Gitlab
...
@@ -76,7 +76,7 @@ module Gitlab
end
end
def
add_attachments
(
reply
)
def
add_attachments
(
reply
)
attachments
=
AttachmentUploader
.
new
(
message
).
execute
(
project
)
attachments
=
Email
::
AttachmentUploader
.
new
(
message
).
execute
(
sent_notification
.
project
)
attachments
.
each
do
|
link
|
attachments
.
each
do
|
link
|
text
=
"[
#{
link
[
:alt
]
}
](
#{
link
[
:url
]
}
)"
text
=
"[
#{
link
[
:alt
]
}
](
#{
link
[
:url
]
}
)"
...
@@ -84,6 +84,8 @@ module Gitlab
...
@@ -84,6 +84,8 @@ module Gitlab
reply
<<
"
\n\n
#{
text
}
"
reply
<<
"
\n\n
#{
text
}
"
end
end
reply
end
end
def
create_note
(
reply
)
def
create_note
(
reply
)
...
...
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