summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-24 10:16:29 +0000
committerPhil Hughes <me@iamphill.com>2017-03-28 14:58:51 +0100
commit6d14af2c3a1f80c7f8e842b479e7db679c745572 (patch)
treebe7d23cc5a4875480d88223a6ae29203912cf6e7 /app/views/users
parent9a5556af47a1bae3e99a25931a4905cd9b524438 (diff)
downloadgitlab-ce-6d14af2c3a1f80c7f8e842b479e7db679c745572.tar.gz
Added scrolling tabs to user#show
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/show.html.haml35
1 files changed, 19 insertions, 16 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index 601187455b3..94c0677d3b1 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -79,22 +79,25 @@
%p.profile-user-bio
= @user.bio
- %ul.nav-links.center.user-profile-nav
- %li.js-activity-tab
- = link_to user_path, data: {target: 'div#activity', action: 'activity', toggle: 'tab'} do
- Activity
- %li.js-groups-tab
- = link_to user_groups_path, data: {target: 'div#groups', action: 'groups', toggle: 'tab'} do
- Groups
- %li.js-contributed-tab
- = link_to user_contributed_projects_path, data: {target: 'div#contributed', action: 'contributed', toggle: 'tab'} do
- Contributed projects
- %li.js-projects-tab
- = link_to user_projects_path, data: {target: 'div#projects', action: 'projects', toggle: 'tab'} do
- Personal projects
- %li.js-snippets-tab
- = link_to user_snippets_path, data: {target: 'div#snippets', action: 'snippets', toggle: 'tab'} do
- Snippets
+ .scrolling-tabs-container
+ .fade-left= icon('angle-left')
+ .fade-right= icon('angle-right')
+ %ul.nav-links.center.user-profile-nav.scrolling-tabs
+ %li.js-activity-tab
+ = link_to user_path, data: {target: 'div#activity', action: 'activity', toggle: 'tab'} do
+ Activity
+ %li.js-groups-tab
+ = link_to user_groups_path, data: {target: 'div#groups', action: 'groups', toggle: 'tab'} do
+ Groups
+ %li.js-contributed-tab
+ = link_to user_contributed_projects_path, data: {target: 'div#contributed', action: 'contributed', toggle: 'tab'} do
+ Contributed projects
+ %li.js-projects-tab
+ = link_to user_projects_path, data: {target: 'div#projects', action: 'projects', toggle: 'tab'} do
+ 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 }
- if @user == current_user