Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add login page and session stuff

git-svn-id: https://svn.science.uu.nl/repos/edu.3555003.wiskunded/trunk@51 46e4088a-c2b5-4d24-90db-838aeec2e325
  • Loading branch information...
commit 23d7c114f1380ac7eafc34604ea7c60d3a2a9338 1 parent b0fab10
3555003 authored
View
1  config/site-key.txt
@@ -0,0 +1 @@
+��Y��j���tЛe�
View
11 resources/templates/echo.tpl
@@ -1,13 +1,8 @@
-<html>
- <head>
- <title>Echo Page</title>
- </head>
- <body>
- <div id="content">
+<apply template="layout">
+ <div id="content">
<h1>Is there an echo in here?</h1>
</div>
<p>You wanted me to say this?</p>
<p>"<message/>"</p>
<p><a href="/">Return</a></p>
- </body>
-</html>
+</apply>
View
35 resources/templates/index.tpl
@@ -1,32 +1,3 @@
-<html>
- <head>
- <title>Snap web server</title>
- <link rel="stylesheet" type="text/css" href="screen.css"/>
- </head>
- <body>
- <div id="content">
- <h1>It works!</h1>
- <p>
- This is a simple demo page served using
- <a href="http://snapframework.com/docs/tutorials/heist">Heist</a>
- and the <a href="http://snapframework.com/">Snap</a> web framework.
- </p>
- <p>
- Echo test:
- <a href="/echo/cats">cats</a>
- <a href="/echo/dogs">dogs</a>
- <a href="/echo/fish">fish</a>
- </p>
- <table id="info">
- <tr>
- <td>Config generated at:</td>
- <td><start-time/></td>
- </tr>
- <tr>
- <td>Page generated at:</td>
- <td><current-time/></td>
- </tr>
- </table>
- </div>
- </body>
-</html>
+<apply template="layout">
+ Index!
+</apply>
View
14 resources/templates/layout.tpl
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>JCU</title>
+ <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css">
+ <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssbase/base-min.css">
+ <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssfonts/fonts-min.css">
+ <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssgrids/grids-min.css">
+ </head>
+ <body>
+ <content />
+ </body>
+</html>
View
14 resources/templates/login.tpl
@@ -0,0 +1,14 @@
+<apply template="layout">
+ <h1>Please login</h1>
+ <table>
+ <tr>
+ <td>Username</td><td><input type="text" name="username" /></td>
+ </tr>
+ <tr>
+ <td>Password</td><td><input type="password" name="password" /></td>
+ </tr>
+ <tr>
+ <td colspan="2"><input type="submit" text="Login" /></td>
+ </tr>
+ </table>
+</apply>
Please sign in to comment.
Something went wrong with that request. Please try again.