Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
8f43898a
Unverified
Commit
8f43898a
authored
Jul 31, 2020
by
luap42
Committed by
GitHub
Jul 31, 2020
Browse files
Options
Downloads
Patches
Plain Diff
I love you too, Rubocop
parent
e4fdd080
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/votes_controller.rb
+2
-2
2 additions, 2 deletions
app/controllers/votes_controller.rb
with
2 additions
and
2 deletions
app/controllers/votes_controller.rb
+
2
−
2
View file @
8f43898a
...
@@ -14,8 +14,8 @@ class VotesController < ApplicationController
...
@@ -14,8 +14,8 @@ class VotesController < ApplicationController
max_votes_per_day
=
SiteSetting
[
'FreeVotes'
]
+
(
@current_user
.
reputation
-
SiteSetting
[
'NewUserInitialRep'
])
max_votes_per_day
=
SiteSetting
[
'FreeVotes'
]
+
(
@current_user
.
reputation
-
SiteSetting
[
'NewUserInitialRep'
])
if
recent_votes
>=
max_votes_per_day
if
recent_votes
>=
max_votes_per_day
vote_limit_msg
=
'You have used your daily vote limit of '
+
recent_votes
.
to_s
+
'votes. Gain more reputation
or
'
\
vote_limit_msg
=
'You have used your daily vote limit of '
+
recent_votes
.
to_s
+
'votes. Gain more reputation'
\
' come back tomorrow to continue voting.'
'
or
come back tomorrow to continue voting.'
if
max_votes_per_day
<=
0
if
max_votes_per_day
<=
0
vote_limit_msg
=
'You need to gain some reputation on this site before you can start voting.'
vote_limit_msg
=
'You need to gain some reputation on this site before you can start voting.'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment