| Line | |
|---|
| 1 | <!DOCTYPE html |
|---|
| 2 | PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|---|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 5 | xmlns:py="http://genshi.edgewall.org/" |
|---|
| 6 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
|---|
| 7 | <head> |
|---|
| 8 | <title>Available Projects</title> |
|---|
| 9 | </head> |
|---|
| 10 | <!-- this template should allow customization --> |
|---|
| 11 | <body> |
|---|
| 12 | |
|---|
| 13 | <div class="user" py:if="remote_user"> |
|---|
| 14 | <b>Logged in as:</b> ${remote_user} |
|---|
| 15 | <a href="logout">log out</a> |
|---|
| 16 | </div> |
|---|
| 17 | |
|---|
| 18 | <div id="projects"> |
|---|
| 19 | <h1>Available Projects</h1> |
|---|
| 20 | <ul> |
|---|
| 21 | <li py:for="project in projects" py:choose=""> |
|---|
| 22 | <a py:when="'href' in project" href="$project.href" |
|---|
| 23 | title="$project.description">$project.name</a> |
|---|
| 24 | <py:otherwise> |
|---|
| 25 | <small>$project.name: <em>Error</em> <br /> ($project.description)</small> |
|---|
| 26 | </py:otherwise> |
|---|
| 27 | </li> |
|---|
| 28 | </ul> |
|---|
| 29 | </div> |
|---|
| 30 | |
|---|
| 31 | <div id="login" py:if="auth and not remote_user"> |
|---|
| 32 | <h2>Login</h2> |
|---|
| 33 | <form method="post" action="/login"> |
|---|
| 34 | <dl> |
|---|
| 35 | <dt>Name</dt> |
|---|
| 36 | <dd><input type="text" name="login"/></dd> |
|---|
| 37 | <dt>Password</dt> |
|---|
| 38 | <dd><input type="password" name="password"/></dd> |
|---|
| 39 | </dl> |
|---|
| 40 | <input type="submit" value="Login"/> |
|---|
| 41 | </form> |
|---|
| 42 | </div> |
|---|
| 43 | |
|---|
| 44 | <div py:if="(auth and remote_user) or (not auth)"> |
|---|
| 45 | <a href="create-project">Create Project</a> |
|---|
| 46 | </div> |
|---|
| 47 | |
|---|
| 48 | </body> |
|---|
| 49 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.