Skip to content

Commit e0d86d6

Browse files
committed
Update templates
1 parent 8c7faf9 commit e0d86d6

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

webhooks/templates/webhooks/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<html>
33
<head lang="en">
44
<meta charset="UTF-8">
5-
<title>{% block page_title %}{% endblock %}</title>
5+
<title>{% block title %}{% endblock %}</title>
66
</head>
77
<body>
8-
{% block body_content %}
8+
{% block content %}
99
{% endblock %}
1010
</body>
1111
</html>
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{% extends "base.html" %}
22

3-
{% block body_content %}
4-
<h2>Webhook</h2>
3+
{% block title %}Webhook Detail{% endblock %}
54

6-
<p><strong>Target</strong> Object: {{ webhook.content_object }} ({{ webhook.content_type }})</p>
5+
{% block content %}
6+
<p><strong>Target Object</strong>: {{ webhook.content_object }} ({{ webhook.content_type }})</p>
77
<p><strong>Action:</strong> {{ webhook.get_action_display }}</p>
88
<p><strong>Owner:</strong> {{ webhook.owner }}</p>
99
<p><strong>Filter:</strong> {{ webhook.filter }}</p>
1010
<p><strong>HTTP Method:</strong> {{ webhook.get_method_display }}</p>
1111
<p><strong>Triggered:</strong> {{ webhook.triggered }}</p>
12-
1312
{% endblock %}

webhooks/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class WebHookView(UpdateView):
1313

1414
http_method_names = [u'get', u'post', u'head']
1515
model = WebHook
16-
template_name = 'webhooks/action.html'
16+
template_name = 'webhooks/webhook_detail.html'
1717

1818
@csrf_exempt
1919
def dispatch(self, *args, **kwargs):

0 commit comments

Comments
 (0)