2014-07-29 13:36:54 +03:00
|
|
|
<nav class="menu">
|
|
|
|
<ul class="sf-menu sf-js-enabled">
|
|
|
|
<%= content_tag :li, class: [('current_page_item' if controller_name == 'home')] do %>
|
2014-08-31 22:34:24 +03:00
|
|
|
<%= link_to t(:home), root_path %>
|
2014-07-29 13:36:54 +03:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless user_signed_in? %>
|
|
|
|
<%= content_tag :li, class: [('current_page_item' if controller_name == 'sessions')] do %>
|
2014-08-31 22:34:24 +03:00
|
|
|
<%= link_to t(:login), new_user_session_path %>
|
2014-07-29 13:36:54 +03:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
2014-08-30 19:45:25 +03:00
|
|
|
<%= content_tag :li, class: [('current_page_item' if controller_name == 'lectures')] do %>
|
2014-08-31 22:34:24 +03:00
|
|
|
<%= link_to t(:talks), lectures_path %>
|
2014-08-30 19:45:25 +03:00
|
|
|
<% end %>
|
2014-08-30 19:59:33 +03:00
|
|
|
<%= content_tag :li, class: [('current_page_item' if controller_name == 'workshops')] do %>
|
2014-08-31 22:34:24 +03:00
|
|
|
<%= link_to t(:workshops), workshops_path %>
|
2014-08-30 19:59:33 +03:00
|
|
|
<% end %>
|
2014-07-29 13:36:54 +03:00
|
|
|
<%= content_tag :li, class: [('current_page_item' if controller_name == 'registrations')] do %>
|
2014-08-31 22:34:24 +03:00
|
|
|
<%= link_to t(:edit_speaker_profile), edit_user_registration_path %>
|
2014-07-29 13:36:54 +03:00
|
|
|
<% end %>
|
|
|
|
<li>
|
2014-08-31 22:34:24 +03:00
|
|
|
<%= link_to t(:logout), destroy_user_session_path, method: :delete %>
|
2014-07-29 13:36:54 +03:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a href="#">English</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|