Commit 911f6eb1067f27606c9f6f1f8e554fba0cf02d19
Committed by
Dmitriy Zaporozhets
1 parent
7d3efec7
Exists in
master
and in
4 other branches
merge into public
Showing
2 changed files
with
45 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
1 | +.teams_box | ||
2 | + %h5.title | ||
3 | + My Teams | ||
4 | + %small | ||
5 | + (#{teams.count}) | ||
6 | + %span.right | ||
7 | + = link_to new_team_path, class: "btn very_small info" do | ||
8 | + %i.icon-plus | ||
9 | + New Team | ||
10 | + %span.right | ||
11 | + = link_to teams_path, class: "btn very_small info" do | ||
12 | + %i.icon-user | ||
13 | + All Teams | ||
14 | + %ul.well-list | ||
15 | + - teams.each do |team| | ||
16 | + %li | ||
17 | + = link_to team_path(id: team.path), class: dom_class(team) do | ||
18 | + %strong.well-title= truncate(team.name, length: 35) | ||
19 | + %span.arrow | ||
20 | + → | ||
21 | + %span.last_activity | ||
22 | + %strong Projects: | ||
23 | + %span= current_user.authorized_projects.in_team(team).count |
@@ -0,0 +1,22 @@ | @@ -0,0 +1,22 @@ | ||
1 | +!!! 5 | ||
2 | +%html{ lang: "en"} | ||
3 | + = render "layouts/head", title: "#{@user_team.name}" | ||
4 | + %body{class: "#{app_theme} application"} | ||
5 | + = render "layouts/flash" | ||
6 | + = render "layouts/head_panel", title: "#{@user_team.name}" | ||
7 | + .container | ||
8 | + %ul.main_menu | ||
9 | + = nav_link(path: 'teams#show', html_options: {class: 'home'}) do | ||
10 | + = link_to "Home", team_path(@user_team), title: "Home" | ||
11 | + = nav_link(path: 'teams#issues') do | ||
12 | + = link_to issues_team_path(@user_team) do | ||
13 | + Issues | ||
14 | + %span.count= Issue.opened.of_user_team(@user_team).count | ||
15 | + = nav_link(path: 'teams#merge_requests') do | ||
16 | + = link_to merge_requests_team_path(@user_team) do | ||
17 | + Merge Requests | ||
18 | + %span.count= MergeRequest.opened.of_user_team(@user_team).count | ||
19 | + = nav_link(path: 'teams#search') do | ||
20 | + = link_to "Search", search_team_path(@user_team) | ||
21 | + | ||
22 | + .content= yield |