fotostore/templates/layouts/base.html.ep

53 lines
2.4 KiB
Text
Raw Permalink Normal View History

2017-07-31 10:14:59 +03:00
<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">
2017-08-01 15:06:08 +03:00
2017-08-04 10:23:50 +03:00
<script src="https://vuejs.org/js/vue.min.js"></script>
2017-07-31 10:14:59 +03:00
</head>
<body>
2017-08-01 15:55:21 +03:00
<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>
2017-07-31 10:14:59 +03:00
</body>
2017-08-01 15:06:08 +03:00
2017-07-31 10:14:59 +03:00
</html>