diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2016-07-29 12:43:43 +0200 |
---|---|---|
committer | Max Breitenfeldt <max.breitenfeldt@gmail.com> | 2016-07-29 11:25:20 +0000 |
commit | 639cd5db77064c275253828780c17ae59551d95c (patch) | |
tree | fca05cf81b3f068ff25c5db46ddd7c27fd1986af /pharos-dashboard/dashboard/urls.py | |
parent | 0f7eae0c112b39c071d41a09ad1caf509b70ac32 (diff) |
import pharos dashboard code
JIRA: RELENG-12
The last commit was missing some JS/CSS dependencies of the site. This
happened because they are in folders that are named 'build' or 'dist'.
This commit adds a bower.json file, that specifies dependencies.
Dependencies can now be installed by running 'bower install' in the
dashboard/static folder.
Change-Id: I054f319c66771f767e97711cb678d79d3bd6bee4
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/dashboard/urls.py')
-rw-r--r-- | pharos-dashboard/dashboard/urls.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pharos-dashboard/dashboard/urls.py b/pharos-dashboard/dashboard/urls.py new file mode 100644 index 0000000..8050eb8 --- /dev/null +++ b/pharos-dashboard/dashboard/urls.py @@ -0,0 +1,35 @@ +from dashboard.views.booking import BookingCalendarView, ResourceBookingsView, DeleteBookingView +from dashboard.views.table_views import CIPodsView, DevelopmentPodsView, JenkinsSlavesView +from django.conf.urls import url, include +from django.contrib.auth import views as auth_views + + +urlpatterns = [ + # registration + url(r'^accounts/login/$', auth_views.login, name='login'), + url(r'^accounts/logout/$', auth_views.logout, name='logout'), + + # Index + url(r'^index/$', CIPodsView.as_view(), name='index'), + url(r'^index/$', CIPodsView.as_view(), name='index'), + url(r'^$', CIPodsView.as_view(), name=""), + + # Tables + url(r'^ci_pods/$', CIPodsView.as_view(), name='ci_pods'), + url(r'^dev_pods/$', DevelopmentPodsView.as_view(), name='dev_pods'), + url(r'^jenkins_slaves/$', JenkinsSlavesView.as_view(), name='jenkins_slaves'), + + # Booking Calendar + url(r'^booking_calendar/$', DevelopmentPodsView.as_view(), + name='booking_calendar'), + url(r'^booking_calendar/(?P<resource_id>[0-9]+)/$', + BookingCalendarView.as_view(), name='booking_calendar'), + url(r'^booking_calendar/(?P<resource_id>[0-9]+)/(?P<booking_id>[0-9]+)/$', + BookingCalendarView.as_view(), name='booking_calendar'), + + # AJAX urls + url(r'^resource/(?P<resource_id>[0-9]+)/bookings/$', + ResourceBookingsView.as_view(), name='resource_bookings'), + url(r'^booking/(?P<booking_id>[0-9]+)/delete$', + DeleteBookingView.as_view(), name='delete_booking'), +] |