summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorAndrey Kumanyaev <me@zzet.org>2013-01-19 21:33:38 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-24 22:31:24 +0200
commit911f6eb1067f27606c9f6f1f8e554fba0cf02d19 (patch)
tree81e530ca1816418dda38a50ba6b87699a0bea0d2 /app/views
parent7d3efec7d190948423d7e40a3f87e2d62b4ea808 (diff)
downloadgitlab-ce-911f6eb1067f27606c9f6f1f8e554fba0cf02d19.tar.gz
merge into public
Diffstat (limited to 'app/views')
-rw-r--r--app/views/dashboard/_teams.html.haml23
-rw-r--r--app/views/layouts/user_team.html.haml22
2 files changed, 45 insertions, 0 deletions
diff --git a/app/views/dashboard/_teams.html.haml b/app/views/dashboard/_teams.html.haml
new file mode 100644
index 00000000000..cbf97b93097
--- /dev/null
+++ b/app/views/dashboard/_teams.html.haml
@@ -0,0 +1,23 @@
+.teams_box
+ %h5.title
+ My Teams
+ %small
+ (#{teams.count})
+ %span.right
+ = link_to new_team_path, class: "btn very_small info" do
+ %i.icon-plus
+ New Team
+ %span.right
+ = link_to teams_path, class: "btn very_small info" do
+ %i.icon-user
+ All Teams
+ %ul.well-list
+ - teams.each do |team|
+ %li
+ = link_to team_path(id: team.path), class: dom_class(team) do
+ %strong.well-title= truncate(team.name, length: 35)
+ %span.arrow
+ &rarr;
+ %span.last_activity
+ %strong Projects:
+ %span= current_user.authorized_projects.in_team(team).count
diff --git a/app/views/layouts/user_team.html.haml b/app/views/layouts/user_team.html.haml
new file mode 100644
index 00000000000..bd3dfe0d418
--- /dev/null
+++ b/app/views/layouts/user_team.html.haml
@@ -0,0 +1,22 @@
+!!! 5
+%html{ lang: "en"}
+ = render "layouts/head", title: "#{@user_team.name}"
+ %body{class: "#{app_theme} application"}
+ = render "layouts/flash"
+ = render "layouts/head_panel", title: "#{@user_team.name}"
+ .container
+ %ul.main_menu
+ = nav_link(path: 'teams#show', html_options: {class: 'home'}) do
+ = link_to "Home", team_path(@user_team), title: "Home"
+ = nav_link(path: 'teams#issues') do
+ = link_to issues_team_path(@user_team) do
+ Issues
+ %span.count= Issue.opened.of_user_team(@user_team).count
+ = nav_link(path: 'teams#merge_requests') do
+ = link_to merge_requests_team_path(@user_team) do
+ Merge Requests
+ %span.count= MergeRequest.opened.of_user_team(@user_team).count
+ = nav_link(path: 'teams#search') do
+ = link_to "Search", search_team_path(@user_team)
+
+ .content= yield