summaryrefslogtreecommitdiffstats
path: root/pyload/web
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web')
-rw-r--r--pyload/web/package.json2
-rw-r--r--pyload/web/pyload_app.py36
2 files changed, 19 insertions, 19 deletions
diff --git a/pyload/web/package.json b/pyload/web/package.json
index 4ea7ce484..4b5ce8788 100644
--- a/pyload/web/package.json
+++ b/pyload/web/package.json
@@ -18,7 +18,7 @@
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-contrib-requirejs": "~0.4.1",
- "grunt-contrib-imagemin": "~0.1.3",
+ "grunt-contrib-imagemin": "~0.4.0",
"grunt-contrib-watch": "~0.4.0",
"grunt-contrib-compress": "~0.5.0",
"grunt-rev": "~0.1.0",
diff --git a/pyload/web/pyload_app.py b/pyload/web/pyload_app.py
index 70ada0b53..32b288e57 100644
--- a/pyload/web/pyload_app.py
+++ b/pyload/web/pyload_app.py
@@ -1,21 +1,21 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-"""
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: RaNaN
-"""
+
+###############################################################################
+# Copyright(c) 2008-2013 pyLoad Team
+# http://www.pyload.org
+#
+# This file is part of pyLoad.
+# pyLoad is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# Subjected to the terms and conditions in LICENSE
+#
+# @author: RaNaN
+###############################################################################
+
import time
from os.path import join, exists
@@ -35,8 +35,8 @@ GZIPPED = {}
@route('/icons/<path:path>')
def serve_icon(path):
- # TODO
- return redirect('/images/icon.png')
+ # TODO: send real file, no redirects
+ return redirect(PREFIX if PREFIX else '/' + '../images/icon.png')
# return static_file(path, root=join("tmp", "icons"))