This is Pluto, the webhook server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hook.html 1.3KB

12345678910111213141516171819202122232425
  1. {% extends "base.html" %}
  2. {% block title %}Pluto - Hook {{hook.name}}{% endblock %}
  3. {% block content %}
  4. <p>This is hook {{ hook.rowid }}, named "{{ hook.name }}", presently {% if hook.disabled %}<span class="negative">disabled</span>{% else %}<span class="positive">enabled</span>{% endif %}, presently {% if hook.debugged %}<span class="positive">debugged (<a href="/debuglogs">see entries</a>)</span>{% else %}<span class="negative">not debugged</span>{% endif %}.</p>
  5. <div class="neutbutton edbutton hacks-flr"><a href="/hook/{{ hook.rowid }}/edit">Edit</a></div>
  6. <div class="negbutton rembutton hacks-flr"><a href="/hook/{{ hook.rowid }}/delete">Delete</a></div>
  7. <p>Conditions for activation:</p>
  8. <ul>
  9. {% for cond in g.Condition.for_hook(hook) %}
  10. <li>{{ macros.cond(cond) }}</li>
  11. {% else %}
  12. <li class="nodata">No conditions</li>
  13. {% endfor %}
  14. <li class="posbutton addbutton"><a href="/hook/{{ hook.rowid }}/newcond">Add condition</a></li>
  15. </ul>
  16. <p>Actions upon activation:</p>
  17. <ul>
  18. {% for act in g.Action.for_hook(hook) %}
  19. <li>{{ macros.act(act) }}</li>
  20. {% else %}
  21. <li class="nodata">No actions</li>
  22. {% endfor %}
  23. <li class="posbutton addbutton"><a href="/hook/{{ hook.rowid }}/newact">Add action</a></li>
  24. </ul>
  25. {% endblock %}