mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-06 15:18:22 +00:00
Restored login security to events
This commit is contained in:
@@ -1,14 +1,6 @@
|
|||||||
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
|
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
|
||||||
{% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %}
|
{% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %}
|
||||||
|
|
||||||
{% block extra-head %}
|
|
||||||
|
|
||||||
<link rel="alternate" type="application/json+oembed"
|
|
||||||
href="{{request.scheme}}://{{request.META.HTTP_HOST}}{{event.get_absolute_url}}oembed"
|
|
||||||
title="RIGS Event Embed" />
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% if not request.is_ajax %}
|
{% if not request.is_ajax %}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ urlpatterns = patterns('',
|
|||||||
name='activity_feed'),
|
name='activity_feed'),
|
||||||
|
|
||||||
url(r'^event/(?P<pk>\d+)/$',
|
url(r'^event/(?P<pk>\d+)/$',
|
||||||
rigboard.EventDetail.as_view(),
|
permission_required_with_403('RIGS.view_event')(rigboard.EventDetail.as_view()),
|
||||||
name='event_detail'),
|
name='event_detail'),
|
||||||
url(r'^event/(?P<pk>\d+)/oembed/$',
|
url(r'^event/(?P<pk>\d+)/oembed/$',
|
||||||
rigboard.EventOembed.as_view(),
|
rigboard.EventOembed.as_view(),
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{% block extra-head %}
|
{% block extra-head %}
|
||||||
{% if next %}
|
{% if next %}
|
||||||
<link rel="alternate" type="application/json+oembed"
|
<link rel="alternate" type="application/json+oembed"
|
||||||
href="{{next}}oembed"
|
href="{{request.scheme}}://{{request.META.HTTP_HOST}}{{next}}oembed"
|
||||||
title="RIGS Event Embed" />
|
title="RIGS Event Embed" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user