blob: 99e39268dc7a0966e1a134389b1fb6677d49b899 [file] [log] [blame]
Akrone4968442018-05-22 15:32:07 +02001%# # user not logged in
2% if (!stash('documentation') && !$embedded && !user_auth && stash('auth_support')) {
3% content_for 'sidebar', begin
4% if (flash('handle_or_email') && !param('handle_or_email')) {
5% param(handle_or_email => flash('handle_or_email'));
6% };
7 <fieldset>
8 %= form_for 'login', class => 'login', begin
9 <legend><span><%= loc 'login' %></span></legend>
10 %= csrf_field
11 %= text_field 'handle_or_email', placeholder => loc('userormail')
12 %= hidden_field fwd => $c->url_with
13 <div>
14 %= password_field 'pwd', placeholder => loc('pwd')
15 <button type="submit"><span><%= loc 'go' %></span></button>
16 </div>
17 % end
18 <p><%== loc 'loginExplanation' %></p>
19 %# <ul>
20 %# <li><%= link_to loc('register') => 'register' %></li>
21 %# <li><%= link_to loc('pwdforgotten') => 'pwd_forgotten' %></li>
22 %# </ul>
23 </fieldset>
24% end
25% }
26
27% my $aside = content_for('sidebar');
28<aside tabindex="0" class="<% unless (length($aside) > 0) { %>off<% } elsif (stash('sidebar_active')) { %>active<% } %>">
29 <div>
30 %= $aside
31 </div>
32</aside>