Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
645f9604
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
645f9604
编写于
1月 24, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Few UI improvements
上级
1a917bc9
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
11 addition
and
10 deletion
+11
-10
app/controllers/teams/application_controller.rb
app/controllers/teams/application_controller.rb
+2
-0
app/views/dashboard/_teams.html.haml
app/views/dashboard/_teams.html.haml
+1
-2
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+1
-1
app/views/layouts/group.html.haml
app/views/layouts/group.html.haml
+1
-1
app/views/layouts/user_team.html.haml
app/views/layouts/user_team.html.haml
+1
-1
app/views/teams/_projects.html.haml
app/views/teams/_projects.html.haml
+1
-1
app/views/teams/index.html.haml
app/views/teams/index.html.haml
+4
-4
未找到文件。
app/controllers/teams/application_controller.rb
浏览文件 @
645f9604
class
Teams::ApplicationController
<
ApplicationController
layout
'user_team'
before_filter
:authorize_manage_user_team!
protected
...
...
app/views/dashboard/_teams.html.haml
浏览文件 @
645f9604
...
...
@@ -20,7 +20,6 @@
→
%span
.last_activity
%strong
Projects:
%span
=
team
.
projects
.
count
%span
.last_activity
%span
=
"
#{
team
.
projects
.
count
}
, "
%strong
Members:
%span
=
team
.
members
.
count
app/views/layouts/_head_panel.html.haml
浏览文件 @
645f9604
...
...
@@ -10,7 +10,7 @@
%ul
.nav
%li
=
link_to
teams_path
,
title:
"Teams of users"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Teams list'
do
%i
.icon-g
lobe
%i
.icon-g
roup
-
if
current_user
.
is_admin?
%li
=
link_to
admin_root_path
,
title:
"Admin area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Admin area'
do
...
...
app/views/layouts/group.html.haml
浏览文件 @
645f9604
...
...
@@ -3,7 +3,7 @@
=
render
"layouts/head"
,
title:
"
#{
@group
.
name
}
"
%body
{
class:
"#{app_theme} application"
}
=
render
"layouts/flash"
=
render
"layouts/head_panel"
,
title:
"
#{
@group
.
name
}
"
=
render
"layouts/head_panel"
,
title:
"
group:
#{
@group
.
name
}
"
.container
%ul
.main_menu
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
...
...
app/views/layouts/user_team.html.haml
浏览文件 @
645f9604
...
...
@@ -3,7 +3,7 @@
=
render
"layouts/head"
,
title:
"
#{
@team
.
name
}
"
%body
{
class:
"#{app_theme} application"
}
=
render
"layouts/flash"
=
render
"layouts/head_panel"
,
title:
"
#{
@team
.
name
}
"
=
render
"layouts/head_panel"
,
title:
"
team:
#{
@team
.
name
}
"
.container
%ul
.main_menu
=
nav_link
(
path:
'teams#show'
,
html_options:
{
class:
'home'
})
do
...
...
app/views/teams/_projects.html.haml
浏览文件 @
645f9604
...
...
@@ -10,7 +10,7 @@
New Project
%ul
.well-list
-
if
projects
.
blank?
%p
.nothing_here_message
This
groups
has no projects yet
%p
.nothing_here_message
This
team
has no projects yet
-
projects
.
each
do
|
project
|
%li
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
...
...
app/views/teams/index.html.haml
浏览文件 @
645f9604
...
...
@@ -20,7 +20,7 @@
%th
Projects
%th
Members
%th
Owner
%th
%th
.cred
Danger Zone!
-
@teams
.
each
do
|
team
|
%tr
...
...
@@ -30,9 +30,9 @@
%td
=
link_to
team
.
projects
.
count
,
team_projects_path
(
team
)
%td
=
link_to
team
.
members
.
count
,
team_members_path
(
team
)
%td
=
link_to
team
.
owner
.
name
,
team_member_path
(
team
,
team
.
owner
)
%td
%td
.bgred
-
if
current_user
.
can?
(
:manage_user_team
,
team
)
=
link_to
"Edit"
,
edit_team_path
(
team
),
class:
"btn small"
-
if
current_user
.
can?
(
:admin_user_team
,
team
)
=
link_to
"Destroy"
,
team_path
(
team
),
method: :delete
,
confirm:
"You are shure?"
,
class:
"danger btn small
right
"
=
link_to
"Destroy"
,
team_path
(
team
),
method: :delete
,
confirm:
"You are shure?"
,
class:
"danger btn small"
=
link_to
"Edit"
,
edit_team_path
(
team
),
class:
"btn small right"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录