fotostore/templates/index.html.ep

19 lines
457 B
Text
Raw Normal View History

2017-07-31 10:14:59 +03:00
% layout 'base';
<h1>Rough, Slow, Stupid, Contrary Photohosting</h1>
<% if (is_user_authenticated()) { %>
2017-08-01 15:06:08 +03:00
%= include 'includes/images_list'
2017-07-31 10:14:59 +03:00
<% } else { %>
<div class="login-form">
<form method="post" action="<%= url_for('login') %>" >
<input type="text" name="username" >
<input type="password" name="password">
<input type="submit" value="Login">
</form>
</div>
<% } %>