Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
4f953f6f
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,发现更多精彩内容 >>
提交
4f953f6f
编写于
6月 10, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Better styling for admin:teams:index page
上级
c5f56ee8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
30 deletion
+43
-30
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+8
-0
app/views/admin/teams/index.html.haml
app/views/admin/teams/index.html.haml
+35
-30
未找到文件。
app/views/admin/dashboard/index.html.haml
浏览文件 @
4f953f6f
...
...
@@ -49,6 +49,14 @@
.span4
%h4
Stats
%hr
%p
Teams
%span
.light.pull-right
=
UserTeam
.
count
%p
Forks
%span
.light.pull-right
=
ForkedProjectLink
.
count
%p
Issues
%span
.light.pull-right
...
...
app/views/admin/teams/index.html.haml
浏览文件 @
4f953f6f
%h3
.page_title
Teams
Teams
(
#{
@teams
.
total_count
}
)
%small
allow you to organize groups of people that have a common focus. Use teams to simplify the process of assigning roles to groups of people.
=
link_to
'New Team'
,
new_admin_team_path
,
class:
"btn btn-small pull-right"
%br
%br
=
form_tag
admin_teams_path
,
method: :get
,
class:
'form-inline'
do
=
text_field_tag
:name
,
params
[
:name
],
class:
"
xlarge
"
=
text_field_tag
:name
,
params
[
:name
],
class:
"
span6
"
=
submit_tag
"Search"
,
class:
"btn submit btn-primary"
%table
%thead
%tr
%th
Name
%i
.icon-sort-down
%th
Description
%th
Path
%th
Projects
%th
Members
%th
Owner
%th
.cred
Danger Zone!
%hr
%ul
.bordered-list
-
@teams
.
each
do
|
team
|
%tr
%td
%strong
=
link_to
team
.
name
,
admin_team_path
(
team
)
%td
=
truncate
team
.
description
%td
=
team
.
path
%td
=
team
.
projects
.
count
%td
=
team
.
members
.
count
%td
-
if
team
.
owner
=
link_to
team
.
owner
.
name
,
admin_user_path
(
team
.
owner
)
-
else
(deleted)
%td
.bgred
=
link_to
'Edit'
,
edit_admin_team_path
(
team
),
id:
"edit_
#{
dom_id
(
team
)
}
"
,
class:
"btn btn-small"
=
link_to
'Destroy'
,
admin_team_path
(
team
),
confirm:
"REMOVE
#{
team
.
name
}
? Are you sure?"
,
method: :delete
,
class:
"btn btn-small btn-remove"
%li
.clearfix
.pull-right.prepend-top-10
=
link_to
'Edit'
,
edit_admin_team_path
(
team
),
id:
"edit_
#{
dom_id
(
team
)
}
"
,
class:
"btn btn-small"
=
link_to
'Destroy'
,
admin_team_path
(
team
),
confirm:
"REMOVE
#{
team
.
name
}
? Are you sure?"
,
method: :delete
,
class:
"btn btn-small btn-remove"
%h4
=
link_to
admin_team_path
(
team
)
do
%i
.icon-group
=
team
.
name
.clearfix.light.append-bottom-10
%span
%b
Owner:
-
if
team
.
owner
=
link_to
team
.
owner
.
name
,
admin_user_path
(
team
.
owner
)
-
else
(deleted)
\|
%span
%b
Users:
%span
.badge
=
team
.
members
.
count
\|
%span
%b
Projects:
%span
.badge
=
team
.
projects
.
count
.clearfix
%p
=
truncate
team
.
description
,
length:
150
=
paginate
@teams
,
theme:
"gitlab"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录