tap/app/views/layouts/_session_button.html.haml
2015-09-19 11:05:43 +02:00

5 lines
238 B
Text

.form-group
- if user_signed_in?
= link_to "Logout", destroy_user_session_path, class: "btn btn-default form-control"
- else
= link_to "Login", omniauth_authorize_path("user", "zeuswpi"), class: "btn btn-success form-control"