MorningPeak/app/views/home/index.html.slim
2015-07-29 17:33:06 +02:00

21 lines
697 B
Plaintext

.container
.row
.space-client.col-xs-4
.panel.panel-success
.panel-heading
h3 = t "home.user_dashboard.title"
.panel-body
- if user_signed_in?
= link_to t(".links.logout"), destroy_user_session_path, method: :delete
- else
= link_to t(".links.login"), new_user_session_path
.space-admin.col-xs-4
.panel.panel-danger
.panel-heading
h3 = t("home.admin_dashboard.title")
.panel-body
- if admin_signed_in?
= link_to t(".links.logout"), destroy_admin_session_path, method: :delete
- else
= link_to t(".links.login"), new_admin_session_path