53 lines
No EOL
2.4 KiB
Text
53 lines
No EOL
2.4 KiB
Text
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" >
|
|
<title>Rough, Slow, Stupid, Contrary Photohosting</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<!-- Bootstrap styles -->
|
|
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
|
<!-- Generic page styles -->
|
|
<link rel="stylesheet" href="/file_uploader/css/style.css">
|
|
<!-- blueimp Gallery styles -->
|
|
<link rel="stylesheet" href="//blueimp.github.io/Gallery/css/blueimp-gallery.min.css">
|
|
<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
|
|
<link rel="stylesheet" href="/file_uploader/css/jquery.fileupload.css">
|
|
<link rel="stylesheet" href="/file_uploader/css/jquery.fileupload-ui.css">
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
|
|
<script src="https://vuejs.org/js/vue.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<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="/">Rough, Slow, Stupid, Contrary Photohosting</a>
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
<% if (!is_user_authenticated()) { %>
|
|
<form class="navbar-form navbar-right" role="form" method="post" action="<%= url_for('login') %>">
|
|
<div class="form-group">
|
|
<input type="text" name="username" placeholder="Username" class="form-control">
|
|
</div>
|
|
<div class="form-group">
|
|
<input name="password" type="password" placeholder="Password" class="form-control">
|
|
</div>
|
|
<button type="submit" class="btn btn-success">Sign in</button>
|
|
</form>
|
|
<% } else { %>
|
|
<div class="navbar-form navbar-right"><a type="button" class="btn btn-default" href="/logout">Logout</a></div>
|
|
<% } %>
|
|
</div><!--/.navbar-collapse -->
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<%= content %>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |