Browse Source

Self-host slack button graphics

pull/211/head
Pēteris Caune 6 years ago
parent
commit
472c6424e9
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
3 changed files with 8 additions and 3 deletions
  1. BIN
      static/img/integrations/add_to_slack.png
  2. BIN
      static/img/integrations/[email protected]
  3. +8
    -3
      templates/integrations/add_slack.html

BIN
static/img/integrations/add_to_slack.png View File

Before After
Width: 139  |  Height: 40  |  Size: 2.4 KiB

BIN
static/img/integrations/[email protected] View File

Before After
Width: 278  |  Height: 80  |  Size: 5.0 KiB

+ 8
- 3
templates/integrations/add_slack.html 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/[email protected] 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/[email protected]' %} 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>


Loading…
Cancel
Save