blob: 0cdc6fbdf64c86237efa5e9e5719effccbc183c7 [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
Akron066cd352018-05-24 20:41:28 +020018
19 %= content_block 'loginInfo'
20
Akrone4968442018-05-22 15:32:07 +020021 %# <ul>
22 %# <li><%= link_to loc('register') => 'register' %></li>
23 %# <li><%= link_to loc('pwdforgotten') => 'pwd_forgotten' %></li>
24 %# </ul>
25 </fieldset>
26% end
27% }
28
29% my $aside = content_for('sidebar');
30<aside tabindex="0" class="<% unless (length($aside) > 0) { %>off<% } elsif (stash('sidebar_active')) { %>active<% } %>">
31 <div>
32 %= $aside
33 </div>
34</aside>