Commit 30e298c3 authored by Rafael Reggiani Manzo's avatar Rafael Reggiani Manzo

Merge branch 'fix_links_on_navbar' into 'master'

Fix links on navbar

This will fix the links the we already have routes for (like contents/new)

See merge request !13
parents ed910316 d3fc2e51
Pipeline #3620695 passed with stage
in 12 minutes and 43 seconds
......@@ -12,7 +12,7 @@
<div class="top-bar-right">
<ul class="dropdown menu primary-menu" data-dropdown-menu>
<li>
<%= link_to(t("upload_content"), '#', class: 'featured-link') %>
<%= link_to(t('upload_content'), new_content_path, class: 'featured-link') %>
</li>
<li>
<%= link_to(t('contests'), '#') %>
......@@ -24,28 +24,31 @@
</a>
<ul class="menu">
<li>
<!-- TODO: this would be a route to edit_user_registration_path -->
<%= link_to t("account.edit"), '#' %>
<%= link_to t('account.edit'), edit_user_registration_path(current_user.id) %>
</li>
<li>
<% if current_user.profile.present? %>
<%= link_to t('profile_links.edit'), edit_profile_path(current_user.profile.id) %>
<% else %>
<%= link_to t('profile_links.new'), new_profile_path %>
<% end %>
</li>
<li>
<!-- TODO: this would be a route to my_contents_path(current_user) -->
<%= link_to t("account.contents"), '#' %>
<%= link_to t('account.contents'), '#' %>
</li>
<li>
<!-- TODO: this would be a route to my_friends_path(current_user) -->
<%= link_to t("account.friends"), '#' %>
<%= link_to t('account.friends'), '#' %>
</li>
<li>
<%= link_to t("account.signout"), destroy_user_session_path, method: :delete %>
<%= link_to t('account.signout'), destroy_user_session_path, method: :delete %>
</li>
</ul>
</li>
<% else %>
<li>
<%= link_to t("account.signup"), new_user_registration_path %>
<%= link_to t('account.signup'), new_user_registration_path %>
</li>
<li>
<a id="login_link" data-open="login-modal"><%= t('login') %></a>
......@@ -75,10 +78,18 @@
</li>
<li>
<div class="social-links-group">
<a target="_blank" href="http://facebook.com/festivaldominuto"><i class="fa fa-facebook"></i></a>
<a target="_blank" href="http://twitter.com/festivaldominuto"><i class="fa fa-twitter"></i></a>
<a target="_blank" href="http://vimeo.com/oneminutefestivalbr"><i class="fa fa-vimeo"></i></a>
<a target="_blank" href="http://youtube.com/user/festivaldominuto"><i class="fa fa-youtube-play"></i></a>
<%= link_to 'http://facebook.com/festivaldominuto', target: '_blank' do %>
<i class="fa fa-facebook"></i>
<% end %>
<%= link_to 'http://twitter.com/festivaldominuto', target: '_blank' do %>
<i class="fa fa-twitter"></i>
<% end %>
<%= link_to 'http://vimeo.com/oneminutefestivalbr', target: '_blank' do %>
<i class="fa fa-vimeo"></i>
<% end %>
<%= link_to 'http://youtube.com/user/festivaldominuto', target: '_blank' do %>
<i class="fa fa-youtube-play"></i>
<% end %>
</div>
</li>
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment