[llvm-commits] [zorg] r125852 - in /zorg/trunk/llvmlab/llvmlab/ui: app.py static/style.css templates/ templates/index.html

Daniel Dunbar daniel at zuster.org
Fri Feb 18 08:40:14 PST 2011


Author: ddunbar
Date: Fri Feb 18 10:40:14 2011
New Revision: 125852

URL: http://llvm.org/viewvc/llvm-project?rev=125852&view=rev
Log:
llvmlab: Move index page into a template.

Added:
    zorg/trunk/llvmlab/llvmlab/ui/static/style.css
    zorg/trunk/llvmlab/llvmlab/ui/templates/
    zorg/trunk/llvmlab/llvmlab/ui/templates/index.html
Modified:
    zorg/trunk/llvmlab/llvmlab/ui/app.py

Modified: zorg/trunk/llvmlab/llvmlab/ui/app.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/app.py?rev=125852&r1=125851&r2=125852&view=diff
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/app.py (original)
+++ zorg/trunk/llvmlab/llvmlab/ui/app.py Fri Feb 18 10:40:14 2011
@@ -1,12 +1,12 @@
 import flask
-from flask import redirect, url_for
+from flask import redirect, render_template, url_for
 
 # Construct the Flask application.
 app = flask.Flask(__name__)
 
 @app.route('/')
 def index():
-    return "Ceci n'est pas un laboratoire."
+    return render_template("index.html")
 
 @app.route('/favicon.ico')
 def favicon_ico():

Added: zorg/trunk/llvmlab/llvmlab/ui/static/style.css
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/static/style.css?rev=125852&view=auto
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/static/style.css (added)
+++ zorg/trunk/llvmlab/llvmlab/ui/static/style.css Fri Feb 18 10:40:14 2011
@@ -0,0 +1,6 @@
+body {
+    background-color: #F0F3FF;
+    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana,
+                 Helvetica, sans-serif;
+    font-size: small;
+}

Added: zorg/trunk/llvmlab/llvmlab/ui/templates/index.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/templates/index.html?rev=125852&view=auto
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/templates/index.html (added)
+++ zorg/trunk/llvmlab/llvmlab/ui/templates/index.html Fri Feb 18 10:40:14 2011
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+                      "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <title>lab.llvm.org</title>
+  <link rel="stylesheet" href="{{
+     url_for('static', filename='style.css') }}" type="text/css">
+</head>
+<body>
+Ceci n'est pas un laboratoire.
+</body>
+</html>





More information about the llvm-commits mailing list