[llvm-commits] [zorg] r125853 - in /zorg/trunk/llvmlab/llvmlab/ui: static/style.css templates/index.html templates/layout.html
Daniel Dunbar
daniel at zuster.org
Fri Feb 18 08:40:18 PST 2011
Author: ddunbar
Date: Fri Feb 18 10:40:18 2011
New Revision: 125853
URL: http://llvm.org/viewvc/llvm-project?rev=125853&view=rev
Log:
llvmlab: Factor out top-level layout template.
Added:
zorg/trunk/llvmlab/llvmlab/ui/templates/layout.html
Modified:
zorg/trunk/llvmlab/llvmlab/ui/static/style.css
zorg/trunk/llvmlab/llvmlab/ui/templates/index.html
Modified: zorg/trunk/llvmlab/llvmlab/ui/static/style.css
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/static/style.css?rev=125853&r1=125852&r2=125853&view=diff
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/static/style.css (original)
+++ zorg/trunk/llvmlab/llvmlab/ui/static/style.css Fri Feb 18 10:40:18 2011
@@ -4,3 +4,33 @@
Helvetica, sans-serif;
font-size: small;
}
+
+div.body {
+ color: #000;
+ margin: 20px;
+}
+div.body a {
+ color: #333;
+}
+
+div.header {
+ background-color: #50505A;
+ color: #FFF;
+ font-size: 125%;
+ padding: 10px 10px;
+ text-align: left;
+}
+div.header a {
+ color: #FFF;
+}
+
+div.footer {
+ background-color: #50505A;
+ color: #FFF;
+ font-size: 75%;
+ padding: 10px 10px;
+ text-align: right;
+}
+div.footer a {
+ color: #FFF;
+}
Modified: zorg/trunk/llvmlab/llvmlab/ui/templates/index.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/templates/index.html?rev=125853&r1=125852&r2=125853&view=diff
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/templates/index.html (original)
+++ zorg/trunk/llvmlab/llvmlab/ui/templates/index.html Fri Feb 18 10:40:18 2011
@@ -1,12 +1,7 @@
-<!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>
+{% extends "layout.html" %}
+{% block title %}home{% endblock %}
+{% block body %}
+
Ceci n'est pas un laboratoire.
-</body>
-</html>
+
+{% endblock %}
Added: zorg/trunk/llvmlab/llvmlab/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/templates/layout.html?rev=125853&view=auto
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/templates/layout.html (added)
+++ zorg/trunk/llvmlab/llvmlab/ui/templates/layout.html Fri Feb 18 10:40:18 2011
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <title>{{ self.title() }}</title>
+ <link rel="stylesheet" type="text/css"{#
+ #} href="{{ url_for('static', filename='style.css') }}">
+</head>
+<body>
+ <div class="header">
+ <a href="{{ url_for('index') }}">{#
+ #}lab.llvm.org</a> | {{ self.title() }}
+ </div>
+ <div class="body">{% block body %}{% endblock %}</div>
+ <div class="footer">
+ <a href="{{ url_for('index') }}">{#
+ #}lab.llvm.org</a>
+ </div>
+</body>
+</html>
More information about the llvm-commits
mailing list