1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Add about pages

This commit is contained in:
2017-11-24 14:26:48 +01:00
parent 703975adf5
commit f5d0e721a1
22 changed files with 364 additions and 24 deletions

View File

@@ -0,0 +1,22 @@
<%= navbar position: :static do %>
<%= vertical do %>
<%= link_to t(:site_title), root_path %>
<% end %>
<%= horizontal do %>
<%= nav class: 'navbar-left' do %>
<%= link_to t('application.info'), about_info_path %>
<%= link_to Problem.model_name.human(count: 2), problems_path %>
<% if admin_signed_in? %>
<%= link_to t('admin.dashboard.index.administration'), :admin %>
<% end %>
<% end %>
<%= nav class: 'navbar-right' do %>
<%= link_to t('application.legal'), about_legal_path %>
<% if admin_signed_in? %>
<%= link_to(t('application.sign_out'), destroy_admin_session_path, method: :delete) %>
<% else %>
<%= link_to(t('application.sign_in'), new_admin_session_path) %>
<% end %>
<% end %>
<% end %>
<% end %>