Packages

This is a CMS written in Elixir. Aims to be the great open-source ecommerce and/or startup solution for those who are searching for a performance and stability on top of modern technologies like React and Elixir.

Current section

Files

Jump to
lyn web templates layout _login_bar.html.eex
Raw

web/templates/layout/_login_bar.html.eex

<%= if @current_user do %>
<li>
<%= link "Logout", to: auth_path(@conn, :logout), method: :delete, class: "btn btn-danger" %>
</li>
<%= if @conn.request_path != auth_path(@conn, :login, "identity") do %>
<li>
<%= link "Connect", to: auth_path(@conn, :login, "identity"), class: "btn btn-default"%>
</li>
<% end %>
<% else %>
<li>
<%= if @conn.request_path != auth_path(@conn, :login, "identity") do %>
<%= link "Login", to: auth_path(@conn, :login, "identity"), class: "btn btn-primary"%>
<% end %>
</li>
<% end %>