|
|
@@ -1,20 +1,52 @@
|
|
|
<!DOCTYPE html>
|
|
|
-
|
|
|
-{% load staticfiles %} <!-- New line -->
|
|
|
-
|
|
|
-<html>
|
|
|
-
|
|
|
+ <html lang="en">
|
|
|
<head>
|
|
|
- <title>Base</title>
|
|
|
- <link rel="stylesheet" href="{% static "css/base.css" %}" /> <!-- CSS -->
|
|
|
- <script src="{% static "js/jquery.js" %}"></script> <!-- JavaScript -->
|
|
|
+ <title> Django Hackathon Starter </title>
|
|
|
+ <script src="/static/bower_components/jquery/dist/jquery.js"></script>
|
|
|
+ <script type="text/javascript" src="/static/bower_components/bootstrap/dist/bootstrap.min.js"></script>
|
|
|
+
|
|
|
+
|
|
|
+ <link rel="stylesheet" href="/static/bower_components/bootstrap/dist/css/bootstrap.min.css">
|
|
|
+ <link rel="stylesheet" href="/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
|
|
|
</head>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <nav class="navbar navbar-default" role="navigation">
|
|
|
+ <div class="container-fluid">
|
|
|
+ <!-- Brand and toggle get grouped for better mobile display -->
|
|
|
+ <div class="navbar-header">
|
|
|
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
|
|
+ <span class="sr-only">Toggle navigation</span>
|
|
|
+ <span class="icon-bar"></span>
|
|
|
+ <span class="icon-bar"></span>
|
|
|
+ <span class="icon-bar"></span>
|
|
|
+ </button>
|
|
|
+ <a class="navbar-brand" href="#">Django Hackathon Starter</a>
|
|
|
+ </div>
|
|
|
|
|
|
- <body>
|
|
|
- <h1>Api Example</h1>
|
|
|
- <strong>{{ boldmessage }}</strong><br />
|
|
|
-
|
|
|
- <!-- New line -->
|
|
|
- </body>
|
|
|
-
|
|
|
-</html>
|
|
|
+ <!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
+ <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
|
+ <ul class="nav navbar-nav navbar-right">
|
|
|
+ {% if not user.is_authenticated %}
|
|
|
+ <li class="active"><a href="/hackathon/register">Register <span class="sr-only">(current)</span></a></li>
|
|
|
+
|
|
|
+ <li><a href="/hackathon/login">Login</a></li>
|
|
|
+ {% endif %}
|
|
|
+
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul class="nav navbar-nav navbar-right">
|
|
|
+ {% if user.is_authenticated %}
|
|
|
+
|
|
|
+ <li><a>Hello {{user}}</a></li>
|
|
|
+ <li><a href="/hackathon/logout/">Logout</a></li>
|
|
|
+ {% endif %}
|
|
|
+ </ul>
|
|
|
+
|
|
|
+
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div><!-- /.navbar-collapse -->
|
|
|
+ </div><!-- /.container-fluid -->
|
|
|
+ </nav>
|
|
|
+ </body>
|