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
2aa2f521
Commit
2aa2f521
authored
Aug 06, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Style/EmptyLinesAroundModuleBody cop
parent
aa49c20e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
.rubocop.yml
.rubocop.yml
+1
-1
app/helpers/avatars_helper.rb
app/helpers/avatars_helper.rb
+0
-2
lib/banzai/filter/video_link_filter.rb
lib/banzai/filter/video_link_filter.rb
+0
-2
No files found.
.rubocop.yml
View file @
2aa2f521
...
...
@@ -157,7 +157,7 @@ Style/EmptyLinesAroundClassBody:
# Keeps track of empty lines around module bodies.
Style/EmptyLinesAroundModuleBody
:
Enabled
:
fals
e
Enabled
:
tru
e
# Keeps track of empty lines around method bodies.
Style/EmptyLinesAroundMethodBody
:
...
...
app/helpers/avatars_helper.rb
View file @
2aa2f521
module
AvatarsHelper
def
author_avatar
(
commit_or_event
,
options
=
{})
user_avatar
(
options
.
merge
({
user:
commit_or_event
.
author
,
...
...
@@ -26,5 +25,4 @@ module AvatarsHelper
mail_to
(
options
[
:user_email
],
avatar
)
end
end
end
lib/banzai/filter/video_link_filter.rb
View file @
2aa2f521
module
Banzai
module
Filter
# Find every image that isn't already wrapped in an `a` tag, and that has
# a `src` attribute ending with a video extension, add a new video node and
# a "Download" link in the case the video cannot be played.
...
...
@@ -54,6 +53,5 @@ module Banzai
container
end
end
end
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