Akron | e496844 | 2018-05-22 15:32:07 +0200 | [diff] [blame] | 1 | %# # 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> |