app/views/modules/common/_sidebar.html.haml
%aside.sidebar
- if current_user
.row
.small-11.small-centered.columns
%h3= t('.greeting', name: current_user.nickname)
.row
.sidebar-button.small-11.small-centered.columns= link_to t('.my_profile'), user_path(current_user), class: 'small-12 button'
.row
.sidebar-button.small-11.small-centered.columns= link_to t('.logout'), destroy_user_session_path, method: :delete, class: 'small-12 button'
- if current_region.present?
.row
.sidebar-button.small-11.small-centered.columns
= link_to t('.add_to_my_calendar'), '#', 'data-reveal-id' => 'calendarExportModal', class: 'small-12 button'
- elsif privacy_mode?
.row
.small-11.small-centered.columns
%h3= t("common.privacy_alert_heading")
%p= t("common.privacy_alert")
= link_to t("common.privacy_alert_more"), privacy_settings_path
- else
= form_for resource, as: resource_name, url: session_path(resource_name) do |f|
.row
.small-11.small-centered.columns
%h3= t('.login')
.row
.small-11.small-centered.columns= f.text_field :email, placeholder: t('.email')
.row
.small-11.small-centered.columns= f.password_field :password, placeholder: t('.password')
.row
.sidebar-button.small-11.small-centered.columns= f.submit t('.login'), class: 'small-12 button'
.row
.small-11.small-centered.columns
= link_to user_twitter_omniauth_authorize_path, title: :twitter, class: 'social-login' do
%i.fa.fa-twitter
= t('.login_with', provider: 'Twitter')
.row
.small-11.small-centered.columns
= link_to user_github_omniauth_authorize_path, title: :github, class: 'social-login' do
%i.fa.fa-github
= t('.login_with', provider: 'Github')
.row
.small-11.small-centered.columns= link_to t('.register_instead'), new_registration_path(resource_name), class: 'social-login'
%hr
%ul
%li= link_to t('.team'), humans_path
%li= link_to t('.privacy'), privacy_settings_path
%li= link_to t('.imprint'), impressum_path
%li
= link_to 'https://github.com/hacken-in/' do
%i.fa.fa-github
Github
%li
= link_to 'https://www.twitter.com/hacken_in' do
%i.fa.fa-twitter
Twitter
.uberspace
= link_to 'https://uberspace.de' do
= image_tag 'uberspace-badge.png', alt: 'Hosting by Uberspace'