Permalink
Browse files

moved front page to separate django view so it can be accessed by unt…

…rusted users
  • Loading branch information...
1 parent 79848f3 commit 03bc79851343234602876a5ea6c2dcc7e71e9347 @trey0 trey0 committed Nov 1, 2012
Showing with 10 additions and 4 deletions.
  1. +4 −1 geocamTiePoint/static/geocamTiePoint/js/backbone/views.js
  2. +6 −3 geocamTiePoint/urls.py
@@ -63,6 +63,7 @@ $(function($) {
'</div>',
});
+/*
app.views.HomeView = app.views.View.extend({
template: '<div style="width: 800px; text-align: center;">'+
'<p style="text-align: left;">MapFasten helps you quickly align an image or PDF with a map, '+
@@ -72,7 +73,7 @@ $(function($) {
'<img src="' + settings.STATIC_URL + '/mapFasten/icons/mapFastenDiagram.png" width="400" height="297"/>' +
'</div>',
});
-
+*/
app.views.ListOverlaysView = app.views.View.extend({
template:
'<a class="btn btn-primary" href="#overlays/new">New Overlay</a>' +
@@ -129,6 +130,8 @@ $(function($) {
});
+ app.views.HomeView = app.views.ListOverlaysView;
+
/*
* OverlayView: id-accepting base class for views that deal with a
* single Overlay.
View
@@ -12,7 +12,10 @@
'geocamTiePoint.views',
## New Workflow ##
- url(r'^$', 'backbone',
+ #url(r'^$', 'backbone',
+ # {}, 'geocamTiePoint_backbone'),
+
+ url(r'^b/$', 'backbone',
{}, 'geocamTiePoint_backbone'),
url(r'^overlays/new\.json$', 'overlayNewJSON',
@@ -79,8 +82,8 @@
{}, 'geocamTiePoint_overlayIdImageFileName'),
## New Client ##
- url(r'^backbone/', 'backbone',
- {}, 'geocamTiePoint_backbone'),
+ #url(r'^backbone/', 'backbone',
+ # {}, 'geocamTiePoint_backbone'),
## JSON API ##
url(r'^overlay/(?P<key>\d+).json$', 'overlayIdJson',

0 comments on commit 03bc798

Please sign in to comment.