Self-host slack button graphics

This commit is contained in:
Pēteris Caune 2018-11-12 10:21:21 +02:00
parent 66bc5cd7c2
commit 472c6424e9
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
3 changed files with 8 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -11,13 +11,18 @@
{% if slack_client_id %} {% if slack_client_id %}
<div class="jumbotron"> <div class="jumbotron">
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
<p>If your team uses <a href="http://slack.com/">Slack</a>, you can set <p>If your team uses <a href="https://slack.com/">Slack</a>, you can set
up {% site_name %} to post status updates directly to an appropriate up {% site_name %} to post status updates directly to an appropriate
Slack channel.</p> Slack channel.</p>
<div class="text-center"> <div class="text-center">
<a href="https://slack.com/oauth/authorize?scope=incoming-webhook&client_id={{ slack_client_id }}&state={{ state }}"> <a href="https://slack.com/oauth/authorize?scope=incoming-webhook&client_id={{ slack_client_id }}&state={{ state }}">
<img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/add_to_slack@2x.png 2x" /> <img
alt="Add to Slack"
height="40"
width="139"
src="{% static 'img/integrations/add_to_slack.png' %}"
srcset="{% static 'img/integrations/add_to_slack.png' %} 1x, {% static 'img/integrations/add_to_slack@2x.png' %} 2x" />
</a> </a>
</div> </div>
@ -111,7 +116,7 @@
{% else %} {% else %}
<h1>Slack</h1> <h1>Slack</h1>
<p>If your team uses <a href="http://slack.com/">Slack</a>, you can set <p>If your team uses <a href="https://slack.com/">Slack</a>, you can set
up {% site_name %} to post status updates directly to an appropriate up {% site_name %} to post status updates directly to an appropriate
Slack channel.</p> Slack channel.</p>