mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
* Forms and board tweaks for small screen sizes * Re-style game status indicators * Re-style viewing/offline indicator * Better eyecons 👁 * Re-organise CSS according to ITCSS principles * Pick new font from Google Fonts * Fix up tests * Move some things into partials
23 lines
734 B
Elixir
23 lines
734 B
Elixir
<header class="header" role="banner">
|
|
<div class="container">
|
|
<h1 class="header__title">
|
|
<%= link gettext("64squares"), to: page_path(@conn, :index) %>
|
|
</h1>
|
|
|
|
<nav class="header__user-nav" role="user">
|
|
<%= if current_user(@conn) do %>
|
|
<%= link(current_user(@conn).name, to: profile_path(@conn, :edit)) %>
|
|
(<%= current_user(@conn).email %>)
|
|
|
|
|
<%= link gettext("Log out"),
|
|
to: session_path(@conn, :delete),
|
|
method: :delete %>
|
|
<% else %>
|
|
<%= link gettext("Register"), to: registration_path(@conn, :new) %>
|
|
|
|
|
<%= link gettext("Log in"), to: session_path(@conn, :new) %>
|
|
<% end %>
|
|
</nav>
|
|
</div>
|
|
</header>
|