Commit 03277af6 authored by Douwe Maan's avatar Douwe Maan

Use standard style for tabs in profile view

parent 09e712c0
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
.user-calendar-activities .user-calendar-activities
%ul.center-middle-menu %ul.center-top-menu.no-top.no-bottom
%li.active %li.active
= link_to "#activity", 'data-toggle' => 'tab' do = link_to "#activity", 'data-toggle' => 'tab' do
Activity Activity
...@@ -92,17 +92,26 @@ ...@@ -92,17 +92,26 @@
.tab-content .tab-content
.tab-pane.active#activity .tab-pane.active#activity
.gray-content-block.middle-block
Public activity by #{@user.name}
.content_list .content_list
= spinner = spinner
- if @groups.any? - if @groups.any?
.tab-pane#groups .tab-pane#groups
.gray-content-block.middle-block
Groups #{@user.name} is a member of
%ul.content-list %ul.content-list
- @groups.each do |group| - @groups.each do |group|
= render 'shared/groups/group', group: group = render 'shared/groups/group', group: group
- if @contributed_projects.present? - if @contributed_projects.present?
.tab-pane#contributed .tab-pane#contributed
.gray-content-block.middle-block
Projects #{@user.name} has contributed to
.contributed-projects .contributed-projects
= render 'shared/projects/list', = render 'shared/projects/list',
projects: @contributed_projects.sort_by(&:star_count).reverse, projects: @contributed_projects.sort_by(&:star_count).reverse,
...@@ -110,6 +119,9 @@ ...@@ -110,6 +119,9 @@
- if @projects.present? - if @projects.present?
.tab-pane#personal .tab-pane#personal
.gray-content-block.middle-block
Projects owned by #{@user.name}
.personal-projects .personal-projects
= render 'shared/projects/list', = render 'shared/projects/list',
projects: @projects.sort_by(&:star_count).reverse, projects: @projects.sort_by(&:star_count).reverse,
......
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