Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
22be0785
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,体验更适合开发者的 AI 搜索 >>
提交
22be0785
编写于
11月 18, 2011
作者:
A
Alexander Randa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
changing admin disign for users finish
上级
f950d788
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
54 addition
and
39 deletion
+54
-39
app/views/admin/users/edit.html.haml
app/views/admin/users/edit.html.haml
+1
-1
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+1
-4
app/views/admin/users/show.html.haml
app/views/admin/users/show.html.haml
+52
-34
未找到文件。
app/views/admin/users/edit.html.haml
浏览文件 @
22be0785
=
render
'form'
=
link_to
'Show'
,
[
:admin
,
@admin_user
],
:class
=>
"right lbutton"
=
link_to
'Back'
,
admin_users_path
,
:class
=>
"right lbutton"
=
link_to
'Show'
,
[
:admin
,
@admin_user
],
:class
=>
"right lbutton"
app/views/admin/users/index.html.haml
浏览文件 @
22be0785
...
...
@@ -18,8 +18,5 @@
%td
=
link_to
'Edit'
,
edit_admin_user_path
(
user
),
:id
=>
"edit_
#{
dom_id
(
user
)
}
"
%td
=
link_to
'Destroy'
,
[
:admin
,
user
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
%br
=
paginate
@admin_users
=
link_to
'New User'
,
new_admin_user_path
=
link_to
'New User'
,
new_admin_user_path
,
:class
=>
"lbutton"
app/views/admin/users/show.html.haml
浏览文件 @
22be0785
-
unless
notice
.
nil?
%p
#notice
=
notice
#infoblock
%p
%b
Name:
=
@admin_user
.
name
%p
%b
Email:
=
@admin_user
.
email
%p
%b
Admin:
=
@admin_user
.
admin
%p
%b
Projects limit:
=
@admin_user
.
projects_limit
%h2
=
@admin_user
.
name
%p
%b
Skype:
=
@admin_user
.
skype
%p
%b
LinkedIn:
=
@admin_user
.
linkedin
%p
%b
Twitter:
=
@admin_user
.
twitter
.clear
=
link_to
'Edit'
,
edit_admin_user_path
(
@admin_user
)
\|
=
link_to
'Back'
,
admin_users_path
%table
.round-borders
%tr
%td
%b
Email:
%td
=
@admin_user
.
email
%tr
%td
%b
Admin:
%td
=
check_box_tag
"admin"
,
1
,
@admin_user
.
admin
,
:disabled
=>
:disabled
%tr
%td
%b
Projects limit:
%td
=
@admin_user
.
projects_limit
-
unless
@admin_user
.
skype
.
empty?
%tr
%td
%b
Skype:
%td
=
@admin_user
.
skype
-
unless
@admin_user
.
linkedin
.
empty?
%tr
%td
%b
Linkedin:
%td
=
@admin_user
.
linkedin
-
unless
@admin_user
.
twitter
.
empty?
%tr
%td
%b
Twitter:
%td
=
@admin_user
.
twitter
%tr
%td
{
:colspan
=>
2
}
=
link_to
'Edit'
,
edit_admin_user_path
(
@admin_user
),
:class
=>
"lbutton"
=
link_to
'Back'
,
admin_users_path
,
:class
=>
"right lbutton"
.span-14
%h2
Projects
%table
.round-borders
%tr
%th
Name
%th
Added
%th
Web
%th
Git
%th
Admin
%th
%thead
%th
Name
%th
Added
%th
Web
%th
Git
%th
Admin
%th
-
@admin_user
.
users_projects
.
each
do
|
tm
|
-
project
=
tm
.
project
...
...
@@ -53,4 +71,4 @@
%td
=
link_to
'Edit'
,
edit_admin_team_member_path
(
tm
)
%td
=
link_to
'Cancel'
,
admin_team_member_path
(
tm
),
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
=
link_to
'Add To Another Project'
,
new_admin_team_member_path
(
:team_member
=>
{
:user_id
=>
@admin_user
.
id
})
=
link_to
'Add To Another Project'
,
new_admin_team_member_path
(
:team_member
=>
{
:user_id
=>
@admin_user
.
id
})
,
:class
=>
"lbutton"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录