A corporation manager and dashboard for EVE Online
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 line
925 B

  1. <header>
  2. <div id="corp-banner">
  3. <%= link_to(root_url) do %>
  4. <%= corp_logo_tag %>
  5. <span><%= AdminSetting.get(:corp_name) %></span>
  6. <% end %>
  7. </div>
  8. <nav>
  9. <ul>
  10. <% if @user %>
  11. <li><%= @user.name %> [<%= Calefaction::EVE.corp_ticker @user.corp_id %>]</li>
  12. <li><%= link_to 'Settings', controller: 'users', action: 'settings' %></li>
  13. <% if @user.admin? %>
  14. <li><%= link_to 'Admin', controller: 'admin', action: 'index' %></li>
  15. <% end %>
  16. <li><%= link_to 'Logout', {controller: 'users', action: 'logout'}, method: :post %></li>
  17. <% else %>
  18. <li><%= link_to 'Login', controller: 'users', action: 'login' %></li>
  19. <li><%= link_to 'Signup', controller: 'users', action: 'signup' %></li>
  20. <% end %>
  21. </ul>
  22. </nav>
  23. </header>
  24. <% flash.each do |type, message| %>
  25. <div class="flash <%= type %>"><%= message %></div>
  26. <% end %>