tap/app/views/layouts/_session_button.html.haml

6 lines
238 B
Text
Raw Normal View History

2015-09-19 11:05:43 +02:00
.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"