michal/tit

Browse tree · Show commit · Download archive

Blob: templates/watch.html

Raw · Blame

{% extends "base.html" %}
{% block title %}Watch · {{ owner }}/{{ repository }} · tit{% endblock %}
{% block content %}
  <header class="repository-header">
    <h1><a href="/{{ owner }}">{{ owner }}</a>/<a href="/{{ owner }}/{{ repository }}">{{ repository }}</a></h1>
{% include "repository-nav.html" %}
  </header>

  <h2>Watch repository</h2>
{% if watching %}
  <p>You watch activity in this repository.</p>
{% else %}
  <p>You do not watch this repository.</p>
{% endif %}
{% if can_change %}
  <form method="post" action="/{{ owner }}/{{ repository }}/watch">
    <input type="hidden" name="csrf" value="{{ csrf }}">
{% if watching %}
    <button type="submit" name="state" value="unwatch">Stop watching</button>
{% else %}
    <button type="submit" name="state" value="watch">Watch repository</button>
{% endif %}
  </form>
{% else %}
  <p><a href="/login">Log in</a> to change watch preferences.</p>
{% endif %}
{% endblock %}