-
-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - add slack settings tab on user's settings page - send same messages to user's slack as to gitcoin's slack Fixes: #259 * Update models.py * Fix indent on docstring * Fix docstrings * no len, switch to fstring * better description for slack integration Fixes: #259 * translate button value * added placeholder for slack channel input box * remove migration, needs to be regenerated * remove need to own repo to get slack notifications * Update bad reverse * Make url names unique
- Loading branch information
1 parent
c3e0441
commit c959cf2
Showing
7 changed files
with
187 additions
and
29 deletions.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends 'settings/settings.html' %} | ||
{% load i18n static %} | ||
{% block settings_content %} | ||
<form id="settings" method="POST"> | ||
<div class="form-group"> | ||
<h5>{% trans "Slack Integration" %}</h5> | ||
<p> | ||
{% blocktrans %} Gitcoin can post updates of bounties statuses of your repositories to your team's slack. | ||
To do this create bot | ||
<a href="https://my.slack.com/apps/A0F7YS25R-bots">here</a> | ||
and provide slack API token in the field below. {% endblocktrans %} | ||
</p> | ||
<label class="form__label" for="token">{% trans "Slack API token" %}</label> | ||
<input type="text" name="token" class="form__input" placeholder='API token' value="{{ profile.slack_token }}"> | ||
</div> | ||
<div class="form-group"> | ||
<label class="form__label" for="repos">{% trans "Github repos to monitor (use full name, like 'gitcoin/web')" %}</label> | ||
<input type="text" name="repos" class="form__input" placeholder='comma, separated, list (gitcoin/web)' value="{{ repos }}"> | ||
</div> | ||
<div class="form-group"> | ||
<label class="form__label" for="channel">{% trans "Slack channel to post to" %}</label> | ||
<input type="text" name="channel" class="form__input" placeholder='#notif-gitcoin' value="{{ profile.slack_channel }}"> | ||
</div> | ||
{% csrf_token %} | ||
<input class='button button--primary' type='submit' name='submit' value="{% trans "Go" %}"> | ||
</form> | ||
</div> | ||
{% endblock %} |