-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow crowdfund issues #1597
Closed
Closed
Allow crowdfund issues #1597
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9338faf
allow crowdfund issues
jvmaia 9082e33
allow crowdfund issues
jvmaia 9b22161
fix lint
jvmaia 4ea1a4c
run automatic linter
jvmaia e1f7cf1
remove duplicated import
jvmaia b2fe984
fix lint
jvmaia 4822cc4
fix lint[2]
jvmaia 7e311ff
add semicolon
jvmaia 6b59bb3
improve do_bounty function
jvmaia 9dc7a12
fixes issue with is_funder and change_payout_amount
owocki 98016f7
fix document.changePayoutAmount & do_bounty calls
jvmaia 6aa7e69
fix email notification
jvmaia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
from django.shortcuts import redirect | ||
from django.template.loader import render_to_string | ||
from django.template.response import TemplateResponse | ||
from django.urls import reverse | ||
from django.utils import timezone | ||
from django.utils.translation import gettext as _ | ||
|
||
|
@@ -588,6 +589,16 @@ def render_new_bounty_roundup(to_email): | |
return response_html, response_txt, subject | ||
|
||
|
||
def render_change_payout_amount(bounty, value): | ||
subject = 'Change payout amount' | ||
form_link = reverse('request_change_payout', kwargs={'value': value, 'pk': bounty.id, 'network': bounty.network}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. F841 local variable 'form_link' is assigned to but never used |
||
|
||
response_text = """There is someone trying to increase the bounty on {value} on your issue, | ||
can you change the payout amount of the bounty? The form to do it: {form_link}. You can | ||
increase the payout amount in the value {value}.""" | ||
|
||
return response_text, subject | ||
|
||
# DJANGO REQUESTS | ||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't you need to update
show_increase_bounty
too?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it needed? what I change here is the argument from
enabled = increase_bounty_enabled;
toenabled = true;
, theshow_increase_bounty
is fine.