[LNT] r179198 - Fix up some static file references to use url_for.
Daniel Dunbar
daniel at zuster.org
Wed Apr 10 11:27:25 PDT 2013
Author: ddunbar
Date: Wed Apr 10 13:27:25 2013
New Revision: 179198
URL: http://llvm.org/viewvc/llvm-project?rev=179198&view=rev
Log:
Fix up some static file references to use url_for.
- This fixes problems when the WSGI app is mounted at a non-root URL.
Modified:
lnt/trunk/lnt/server/ui/templates/layout.html
Modified: lnt/trunk/lnt/server/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/layout.html?rev=179198&r1=179197&r2=179198&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/layout.html (original)
+++ lnt/trunk/lnt/server/ui/templates/layout.html Wed Apr 10 13:27:25 2013
@@ -1,10 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
- <link href="/static/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
+ <link href="{{ url_for('.static', filename='bootstrap/css/bootstrap.min.css')
+ }}" rel="stylesheet" media="screen">
+ <link href="{{ url_for('.static', filename='bootstrap/css/bootstrap-responsive.min.css')
+ }}" rel="stylesheet">
<script src="http://code.jquery.com/jquery-latest.js"></script>
- <script src="/static/bootstrap/js/bootstrap.min.js"></script>
+ <script src="{{ url_for('.static', filename='bootstrap/js/bootstrap.min.js')
+ }}"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
More information about the llvm-commits
mailing list