summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2012-01-15 11:12:11 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2012-01-15 11:12:11 +0100
commitdc36e320ef4d90b0bf802c6b54877971e2249d1a (patch)
treefa0f23bc0e0920c77587135cf1e4ab92e0e1275d /templates
parentc2b7abf89ec9747cf8a32c2d1480833fc94fca09 (diff)
downloadkosten-dc36e320ef4d90b0bf802c6b54877971e2249d1a.tar.gz
kosten-dc36e320ef4d90b0bf802c6b54877971e2249d1a.tar.bz2
kosten-dc36e320ef4d90b0bf802c6b54877971e2249d1a.zip
Do not load JS for mobile browsers
Diffstat (limited to 'templates')
-rw-r--r--templates/root.mako10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/root.mako b/templates/root.mako
index b744bbd..19af96e 100644
--- a/templates/root.mako
+++ b/templates/root.mako
@@ -2,10 +2,12 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- <%block name="js">
- <script type="text/javascript" src=${"/static/js/jquery-1.4.2.js" | url}></script>
- <script type="text/javascript" src=${"/static/js/lib.js" | url}></script>
- </%block>
+ % if not w.ctx.is_mobile:
+ <%block name="js">
+ <script type="text/javascript" src=${"/static/js/jquery-1.4.2.js" | url}></script>
+ <script type="text/javascript" src=${"/static/js/lib.js" | url}></script>
+ </%block>
+ % endif
<link rel="shortcut icon" href=${"/static/images/currency.png" | url} type="image/icon">
<title><%block name="title">Kostenverwaltung</%block></title>
<%block name="style">