refactor: remove unused secr/console app (#6508)
This commit is contained in:
parent
bea4459d0c
commit
16c876b24d
|
@ -1,27 +0,0 @@
|
|||
# Copyright The IETF Trust 2013-2020, All Rights Reserved
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
"""
|
||||
This file demonstrates two different styles of tests (one doctest and one
|
||||
unittest). These will both pass when you run "manage.py test".
|
||||
|
||||
Replace these with more appropriate tests for your application.
|
||||
"""
|
||||
|
||||
from ietf.utils.test_utils import TestCase
|
||||
|
||||
class SimpleTest(TestCase):
|
||||
def test_basic_addition(self):
|
||||
"""
|
||||
Tests that 1 + 1 always equals 2.
|
||||
"""
|
||||
self.assertEqual(1 + 1, 2)
|
||||
|
||||
__test__ = {"doctest": """
|
||||
Another way to test that 1 + 1 is equal to 2.
|
||||
|
||||
>>> 1 + 1 == 2
|
||||
True
|
||||
"""}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
|
||||
from ietf.secr.console import views
|
||||
from ietf.utils.urls import url
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.main),
|
||||
]
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
from django.shortcuts import render
|
||||
|
||||
from ietf.doc.models import DocEvent
|
||||
from ietf.ietfauth.utils import role_required
|
||||
|
||||
@role_required('Secretariat')
|
||||
def main(request):
|
||||
'''
|
||||
Main view for the Console
|
||||
'''
|
||||
|
||||
latest_docevent = DocEvent.objects.all().order_by('-time')[0]
|
||||
|
||||
return render(request, 'console/main.html', {
|
||||
'latest_docevent': latest_docevent},
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
{% extends "base_site.html" %}
|
||||
|
||||
{% block title %}Console{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}{{ block.super }}
|
||||
» Console
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="module">
|
||||
<h2>Console</h2>
|
||||
|
||||
<table class="full-width amstable" id="announce-table">
|
||||
<tbody>
|
||||
<tr><th scope="row">Latest DocEvent</th><td>{{ latest_docevent }}</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div> <!-- module -->
|
||||
|
||||
{% endblock %}
|
|
@ -14,7 +14,6 @@
|
|||
<ul>
|
||||
<li> <a href="{% url 'ietf.secr.announcement.views.main' %}"><b>Announcement</b></a></li>
|
||||
<li> <a href="{% url 'ietf.secr.telechat.views.main' %}"><b>Telechat</b></a></li>
|
||||
<li> <a href="{% url 'ietf.secr.console.views.main' %}"><b>Console</b></a></li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
@ -5,7 +5,6 @@ urlpatterns = [
|
|||
re_path(r'^$', TemplateView.as_view(template_name='main.html')),
|
||||
re_path(r'^announcement/', include('ietf.secr.announcement.urls')),
|
||||
re_path(r'^areas/', include('ietf.secr.areas.urls')),
|
||||
re_path(r'^console/', include('ietf.secr.console.urls')),
|
||||
re_path(r'^meetings/', include('ietf.secr.meetings.urls')),
|
||||
re_path(r'^rolodex/', include('ietf.secr.rolodex.urls')),
|
||||
re_path(r'^sreq/', include('ietf.secr.sreq.urls')),
|
||||
|
|
Loading…
Reference in a new issue