{% extends "account/base.html" %}

{% block page_header %}
<div class="page-header">
  <h1>Slack account for team: {{object.team_name}}</h1>
</div>
{% endblock %}

{% block page_content %}

  <div class="panel panel-default">
    <!-- Table -->
    <table class="table table-striped">
      <tbody>
        <tr>
          <th>Team name:</th>
          <td colspan="2">{{object.team_name}}</td>
        </tr>
        <tr>
          <th>Authorized scope:</th>
          <td colspan="2">{{object.scope}}</td>
        </tr>
        <tr>
          <th>Created at:</th>
          <td>{{object.created_at}}</td>
          <td>
            <a href="https://slack.com/oauth/authorize?scope=incoming-webhook,commands,bot&client_id=6206214769.16814552086&amp;redirect_uri={{request.session.authorize_request_uri}}&amp;state={{request.session.authorize_state}}&amp;team={{object.team_id}}">Setup again</a>
          </td>
        </tr>
        <tr>
          <th>Last updated at:</th>
          <td colspan="2">{{object.updated_at}}</td>
        </tr>
        <tr>
          <th>Webhook URL</th>
          <td colspan="2">{{object.incoming_webhook_url}}</td>
        <tr>
        <tr>
          <th>Webhook Channel</th>
          <td colspan="2">{{object.incoming_webhook_channel}}</td>
        </tr>
      </tbody>
    </table>

  </div>
{% endblock %}
