]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
Template changes to make templating actually work
authorEd Kellett <redacted>
Tue, 23 Feb 2016 14:40:26 +0000 (14:40 +0000)
committerEd Kellett <redacted>
Tue, 23 Feb 2016 14:40:26 +0000 (14:40 +0000)
templates/base.html
templates/index.html [new file with mode: 0644]

index dd20ce7d9ec1ba6605f58cb3a4acba0c41571a81..8c9fca5e2abb8df57b36350519ea73ce5c4bfedb 100644 (file)
 
 
     <div class="container">
-        <div class="jumbotron">
-            <h2 class="child">Welcome to freenode, the new home of your
-            projects.</h2>
-
-
-            <div class="box-container">
-                <a class="box" href="about"><i class=
-                "fa fa-comment fa-4x"></i><br>
-                Chat</a> <a class="box" href="help"><i class=
-                "fa fa-question fa-4x"></i><br>
-                FAQ</a> <a class="box" href=
-                "contribute"><i class="fa fa-users fa-4x"></i><br>
-                Register a group</a>
-            </div>
-        </div>
-
-
-        <div class="main">
         {% block content %}{% endblock %}
-        </div>
     </div>
 
 
                 </li>
             </ul>
         </div>
-        
+
         <div class="footerchild hdn">&nbsp;</div>
 
 
         <p>&copy; Copyright 2002-2016, freenode</p>
     </footer>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/templates/index.html b/templates/index.html
new file mode 100644 (file)
index 0000000..3e09360
--- /dev/null
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+{% set title = config.name %}
+{% block content %}
+<div class="jumbotron">
+    <h2 class="child">Welcome to freenode, the new home of your projects.</h2>
+
+
+    <div class="box-container">
+        <a class="box" href="about">
+            <i class="fa fa-comment fa-4x"></i><br>Chat
+        </a>
+        <a class="box" href="help">
+            <i class="fa fa-question fa-4x"></i><br>FAQ
+        </a>
+        <a class="box" href="contribute">
+            <i class="fa fa-users fa-4x"></i><br>Register a group
+        </a>
+    </div>
+</div>
+
+
+<div class="main">
+    {{ get_module("news").articles[-1].render() }}
+</div>
+{% endblock content %}