config.site, fix redirect

This commit is contained in:
j 2010-09-14 15:49:04 +02:00
parent 2ad4c5eba0
commit 293f6117ca
3 changed files with 12 additions and 11 deletions

View File

@ -565,7 +565,7 @@ def poster(request, id, size=None):
poster_path = movie.poster.path
else:
if not size: size='large'
return redirect('http:///0xdb.org/%s/poster.%s.jpg' % (movie.movieId, size))
return redirect('http://0xdb.org/%s/poster.%s.jpg' % (movie.movieId, size))
poster_path = os.path.join(settings.STATIC_ROOT, 'png/posterDark.48.png')
return HttpFileResponse(poster_path, content_type='image/jpeg')

View File

@ -3,11 +3,9 @@
***/
var app = new Ox.App({
apiURL: '/api/',
config: '/pandora.json',
init: 'hello',
id: site.id,
name: site.name,
requestURL: '/api/'
}).launch(function(data) {
Ox.print('data', data)
app.config = data.config;
@ -599,7 +597,7 @@ app.constructList = function(view) {
app.$ui.previewDialog.resize(dialogWidth, dialogHeight, function() {
app.$ui.previewImage
.attr({
src: item.poster.url.replace(/jpg/, 'large.jpg'),
src: item.poster.url
})
.one('load', function() {
app.$ui.previewImage
@ -618,7 +616,7 @@ app.constructList = function(view) {
} else {
app.$ui.previewImage = $('<img>')
.attr({
src: item.poster.url.replace(/jpg/, 'large.jpg')
src: item.poster.url
})
.css({
position: 'absolute',
@ -797,7 +795,7 @@ app.constructMainMenu = function() {
],
id: 'mainMenu',
menus: [
{ id: app.options('id') + 'Menu', title: app.options('name'), items: [
{ id: app.config.site.id + 'Menu', title: app.config.site.name, items: [
{ id: 'about', title: 'About' },
{},
{ id: 'home', title: 'Home Screen' },

View File

@ -1,7 +1,4 @@
{
"name": "{{settings.SITENAME}}",
"id": "{{settings.SITEID}}",
"url": "{{settings.URL}}",
"findKeys": [
{"id": "all", "title": "All"},
{"id": "title", "title": "Title", "autocomplete": true},
@ -43,6 +40,11 @@
{"id": "map", "title": "on Map"},
{"id": "calendar", "title": "on Calendar"}
],
"site": {
"name": "{{settings.SITENAME}}",
"id": "{{settings.SITEID}}",
"url": "{{settings.URL}}"
},
"sections": [
{"id": "history", "title": "History"},
{"id": "lists", "title": "My Lists"},
@ -90,7 +92,8 @@
{"id": "files", "title": "Files", "operator": "-", "align": "right", "width": 60},
{"id": "filename", "title": "Filename", "operator": "", "align": "left", "width": 180},
{"id": "published", "title": "Date Published", "operator": "-", "align": "left", "width": 90},
{"id": "modified", "title": "Date Modified", "operator": "-", "align": "left", "width": 90}
{"id": "modified", "title": "Date Modified", "operator": "-", "align": "left", "width": 90},
{"id": "popularity", "title": "Popularity", "operator": "-", "align": "left", "width": 60}
],
"totals": [
{"id": "items"},