Commit 6d14af2c authored by Phil Hughes's avatar Phil Hughes

Added scrolling tabs to user#show

parent 9a5556af
...@@ -79,22 +79,25 @@ ...@@ -79,22 +79,25 @@
%p.profile-user-bio %p.profile-user-bio
= @user.bio = @user.bio
%ul.nav-links.center.user-profile-nav .scrolling-tabs-container
%li.js-activity-tab .fade-left= icon('angle-left')
= link_to user_path, data: {target: 'div#activity', action: 'activity', toggle: 'tab'} do .fade-right= icon('angle-right')
Activity %ul.nav-links.center.user-profile-nav.scrolling-tabs
%li.js-groups-tab %li.js-activity-tab
= link_to user_groups_path, data: {target: 'div#groups', action: 'groups', toggle: 'tab'} do = link_to user_path, data: {target: 'div#activity', action: 'activity', toggle: 'tab'} do
Groups Activity
%li.js-contributed-tab %li.js-groups-tab
= link_to user_contributed_projects_path, data: {target: 'div#contributed', action: 'contributed', toggle: 'tab'} do = link_to user_groups_path, data: {target: 'div#groups', action: 'groups', toggle: 'tab'} do
Contributed projects Groups
%li.js-projects-tab %li.js-contributed-tab
= link_to user_projects_path, data: {target: 'div#projects', action: 'projects', toggle: 'tab'} do = link_to user_contributed_projects_path, data: {target: 'div#contributed', action: 'contributed', toggle: 'tab'} do
Personal projects Contributed projects
%li.js-snippets-tab %li.js-projects-tab
= link_to user_snippets_path, data: {target: 'div#snippets', action: 'snippets', toggle: 'tab'} do = link_to user_projects_path, data: {target: 'div#projects', action: 'projects', toggle: 'tab'} do
Snippets Personal projects
%li.js-snippets-tab
= link_to user_snippets_path, data: {target: 'div#snippets', action: 'snippets', toggle: 'tab'} do
Snippets
%div{ class: container_class } %div{ class: container_class }
- if @user == current_user - if @user == current_user
......
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