Sha256: bc6d2b95310aa7f97e0dfa7bfce1d6c877eaaec4662f67cad062923a8283fd77

Contents?: true

Size: 1.35 KB

Versions: 18

Compression:

Stored size: 1.35 KB

Contents

<html>
  <head>
    <meta charset="utf-8">
    <%= csrf_meta_tags %>
    <style>
      nav {
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
      }
      nav span {
        margin: 0 5px;
      }
      main {
        margin-top: 20px;
      }
    </style>
  </head>
  <body>
    <nav>
      <% if logged_in? %>
        <span>Logged in as: <%= authenticated_model.email %></span>
        <span><%= link_to 'Sessions', quo_vadis.sessions_path %></span>
        <span><%= link_to 'Change password', quo_vadis.edit_password_path %></span>
        <span><%= link_to '2FA', quo_vadis.twofa_path %></span>
        <span><%= link_to 'Logs', quo_vadis.logs_path %></span>
        <span><%= button_to 'Log out', quo_vadis.logout_path, method: :delete, form: {style: 'display:inline-block'} %></span>
      <% else %>
        <span><%= link_to 'Add user (without confirmation)', main_app.new_user_path %></span>
        <span><%= link_to 'Sign up (with confirmation)', main_app.new_sign_up_path %></span>
        <span><%= link_to 'Log in', quo_vadis.login_path %></span>
      <% end %>
    </nav>

    <main>
      <section>
        <% %w[notice alert].select { |k| flash.key? k }.each do |k| %>
          <div class="flash flash-<%= k %>">
            <%= flash[k] %>
          </div>
        <% end %>
      </section>

      <%= yield %>
    </main>
  </body>
</html>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
quo_vadis-2.2.4 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.2.2 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.2.1 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.2.0 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.11 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.10 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.9 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.8 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.7 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.6 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.5 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.4 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.3 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.2 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.1 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.1.0 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.0.2 test/dummy/app/views/layouts/application.html.erb
quo_vadis-2.0.1 test/dummy/app/views/layouts/application.html.erb