Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
693ff1c6
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,发现更多精彩内容 >>
提交
693ff1c6
编写于
1月 13, 2012
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dashboard restyled. colors improved
上级
0ba08194
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
44 addition
and
31 deletion
+44
-31
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+19
-3
app/assets/stylesheets/style.scss
app/assets/stylesheets/style.scss
+10
-6
app/views/commits/index.html.haml
app/views/commits/index.html.haml
+5
-7
app/views/dashboard/_menu.html.haml
app/views/dashboard/_menu.html.haml
+1
-1
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+6
-1
app/views/layouts/_middle_panel.html.haml
app/views/layouts/_middle_panel.html.haml
+0
-10
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+1
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-1
app/views/repositories/show.html.haml
app/views/repositories/show.html.haml
+1
-1
未找到文件。
app/assets/stylesheets/projects.css.scss
浏览文件 @
693ff1c6
...
...
@@ -543,7 +543,7 @@ h4.middle-panel {
.project_name
{
float
:left
;
width
:
160
px
;
width
:
235
px
;
margin-right
:
30px
;
font-size
:
16px
;
font-weight
:bold
;
...
...
@@ -572,7 +572,7 @@ h4.middle-panel {
color
:
#666
;
border
:
1px
solid
#AAA
;
padding
:
0
0
0
30px
;
padding
:
0
10px
0
30px
;
background
:
white
url('images.png')
no-repeat
8px
-42px
;
width
:
160px
;
height
:
26px
;
...
...
@@ -624,6 +624,10 @@ h4.middle-panel {
margin-bottom
:
20px
;
height
:
26px
;
-moz-border-radius
:
4px
;
-webkit-border-radius
:
4px
;
border-radius
:
4px
;
.tab
{
font-weight
:
bold
;
border-right
:
1px
solid
#ddd
;
...
...
@@ -733,7 +737,6 @@ a.project-update.titled {
.title-block
{
padding
:
10px
;
width
:
205px
;
background
:
#f5f5f5
;
position
:
absolute
;
left
:
0
;
top
:
0
;
...
...
@@ -829,3 +832,16 @@ tr.line_notes_row {
}
}
.dash_top_link
{
margin
:
4px
14px
;
float
:
left
;
font-size
:
14px
;
&
.active
{
color
:
#2FA0BB
;
}
&
:hover
{
color
:
#2FA0BB
;
}
}
app/assets/stylesheets/style.scss
浏览文件 @
693ff1c6
...
...
@@ -569,7 +569,7 @@ html, body { height: 100%; }
body
.dashboard-page
h2
.icon
span
{
background-position
:
9px
-69px
;
}
body
.dashboard-page
header
{
margin-bottom
:
0
}
body
.dashboard-page
.news-feed
{
padding-left
:
1em
;
margin-right
:
450px
;
min-height
:
600px
;
margin-left
:
1%
}
body
.dashboard-page
.news-feed
{
padding-left
:
1em
;
margin-right
:
450px
;
min-height
:
600px
;
margin-left
:
1%
;
margin-top
:
20px
;
}
body
.dashboard-page
.dashboard-content
{
position
:
relative
;
float
:
left
;
width
:
100%
;
height
:
100%
;
}
body
.dashboard-page
.news-feed
h2
{
float
:
left
;}
body
.dashboard-page
aside
{
min-height
:
820px
;
position
:
relative
;
top
:
0
;
bottom
:
0
;
right
:
0
;
width
:
420px
;
float
:
right
;
background-color
:
#f7f7f7
;
border-left
:
1px
solid
#ccc
}
...
...
@@ -611,7 +611,7 @@ body.project-page h2.icon .project-name i.arrow{float: right;
body
.project-page
h2
.icon
span
{
background-position
:
-78px
-68px
;
}
body
.project-page
.project-container
{
position
:
relative
;
float
:
left
;
width
:
100%
;
height
:
100%
;
padding-bottom
:
10px
;}
body
.project-page
.page-title
{
margin-bottom
:
0
}
body
.project-page
.project-sidebar
{
width
:
110px
;
left
:
0
;
top
:
0
;
height
:
100%
;
bottom
:
0
;
position
:
absolute
;
background-color
:
#eee
;
float
:
left
;
display
:
inline-block
;
background
:
#eee
;
padding
:
20px
0
20px
2%
;
margin
:
0
;
border-right
:
1px
solid
#ddd
;
}
body
.project-page
.project-sidebar
{
width
:
110px
;
left
:
0
;
top
:
0
;
height
:
100%
;
bottom
:
0
;
position
:
absolute
;
float
:
left
;
display
:
inline-block
;
background
:
#F7F7F7
;
padding
:
20px
0
20px
2%
;
margin
:
0
;
border-right
:
1px
solid
#ddd
;
}
body
.projects-page
input
.text.git-url
{
font-size
:
12px
;
border-radius
:
5px
;
color
:
#666
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,.
2
)
inset
;
padding
:
8px
0
8px
30px
;
margin-bottom
:
20px
;
background
:
white
url('images.png')
no-repeat
8px
-40px
;
width
:
136px
}
body
.projects-page
input
.text.git-url
{
margin
:
10px
0
0
}
...
...
@@ -621,11 +621,15 @@ body.projects-page input.text.git-url {margin:10px 0 0 }
body
.project-page
.project-sidebar
aside
{
width
:
109px
}
body
.project-page
.project-sidebar
aside
a
{
display
:
block
;
position
:
relative
;
background
:
#F5F5F5
;
padding
:
15px
10px
;
border
:
1px
solid
#ccc
;
margin
:
10px
20px
0
0
;
display
:
block
;
position
:
relative
;
background
:
#FFF
;
padding
:
15px
10px
;
border
:
1px
solid
#ccc
;
margin
:
10px
20px
0
0
;
border-radius
:
5px
;
}
body
.project-page
.project-sidebar
aside
a
:hover
{
background-color
:
#
eee
;}
body
.project-page
.project-sidebar
aside
a
:hover
{
background-color
:
#
FFFFFF
;}
body
.project-page
.project-sidebar
aside
a
span
.number
{
float
:
right
;
border-radius
:
5px
;
text-shadow
:
none
;
background
:
rgba
(
0
,
0
,
0
,.
12
);
text-align
:
center
;
padding
:
5px
8px
;
position
:
absolute
;
top
:
10px
;
right
:
10px
}
body
.project-page
.project-sidebar
aside
a
.current
{
border
:
2px
solid
#79c3e0
;
background
:white
;
}
body
.project-page
.project-content
{
padding
:
20px
;
display
:
block
;
margin-left
:
130px
;
min-height
:
600px
}
...
...
@@ -636,7 +640,7 @@ body.project-page table th, body.project-page table td{ border-bottom: 1px soli
body
.project-page
.fixed
{
position
:
fixed
;
}
/* New project Page */
.new-project-page
.container
{
width
:
600px
;
background-color
:
rgba
(
0
,
0
,
0
,.
02
);
margin
:
auto
;
border
:
1px
solid
#eee
;
padding
:
0
20px
;
margin
:
30px
auto
60px
auto
;
border-radius
:
5
px
}
.new-project-page
.container
{
margin
:
20
px
}
.new-project-page
.container
table
{
background
:
white
}
/* eo New Project Page */
...
...
app/views/commits/index.html.haml
浏览文件 @
693ff1c6
...
...
@@ -6,13 +6,11 @@
=
image_tag
"rss_icon_gray.png"
,
:width
=>
16
,
:title
=>
"feed"
-
if
params
[
:path
]
%h2
.icon
%span
%d
=
link_to
project_commits_path
(
@project
)
do
=
@project
.
code
\/
%a
{
:href
=>
"#"
}=
params
[
:path
].
split
(
"/"
).
join
(
" / "
)
%h2
=
link_to
project_commits_path
(
@project
)
do
=
@project
.
code
\/
%a
{
:href
=>
"#"
}=
params
[
:path
].
split
(
"/"
).
join
(
" / "
)
%div
{
:id
=>
dom_id
(
@project
)}
#commits_list
=
render
"commits"
...
...
app/views/dashboard/_menu.html.haml
浏览文件 @
693ff1c6
%h4
.dash-tabs
-#
%h4.dash-tabs
= link_to "Activities", dashboard_path, :remote => true, :class => "dash-button #{"active" if current_page?(dashboard_path) || current_page?(root_path) }", :id => "activities_slide"
= link_to "Issues", dashboard_issues_path, :remote => true, :class => "dash-button #{"active" if current_page?(dashboard_issues_path)}", :id => "issues_slide"
= link_to "Merge Requests", dashboard_merge_requests_path, :remote => true, :class => "dash-button #{"active" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide"
...
...
app/views/layouts/_head_panel.html.haml
浏览文件 @
693ff1c6
...
...
@@ -10,7 +10,7 @@
-
if
@project
&&
!
@project
.
new_record?
.project_name
=
truncate
@project
.
name
,
:length
=>
2
0
=
truncate
@project
.
name
,
:length
=>
2
8
.git_url_wrapper
%input
.git-url.text
{
:id
=>
""
,
:name
=>
""
,
:readonly
=>
""
,
:type
=>
"text"
,
:value
=>
@project
.
url_to_repo
,
:class
=>
"one_click_select"
}
-
if
@project
.
repo_exists?
...
...
@@ -18,6 +18,11 @@
=
render
:partial
=>
"projects/refs"
,
:locals
=>
{
:destination
=>
controller
.
controller_name
==
"commits"
?
"commits"
:
"tree"
}
=
yield
:rss_icon
-
if
controller
.
controller_name
==
"dashboard"
=
link_to
"Activities"
,
dashboard_path
,
:class
=>
"dash_top_link
#{
"active"
if
current_page?
(
dashboard_path
)
||
current_page?
(
root_path
)
}
"
=
link_to
"Issues"
,
dashboard_issues_path
,
:class
=>
"dash_top_link
#{
"active"
if
current_page?
(
dashboard_issues_path
)
}
"
,
:id
=>
"issues_slide"
=
link_to
"Merge Requests"
,
dashboard_merge_requests_path
,
:class
=>
"dash_top_link
#{
"active"
if
current_page?
(
dashboard_merge_requests_path
)
}
"
,
:id
=>
"merge_requests_slide"
.account-box
=
link_to
profile_path
,
:class
=>
"pic"
do
=
image_tag
gravatar_icon
(
current_user
.
email
)
...
...
app/views/layouts/_middle_panel.html.haml
已删除
100644 → 0
浏览文件 @
0ba08194
%h4
.middle-panel
.project_name
=
truncate
@project
.
name
,
:length
=>
20
.git_url_wrapper
%input
.git-url.text
{
:id
=>
""
,
:name
=>
""
,
:readonly
=>
""
,
:type
=>
"text"
,
:value
=>
@project
.
url_to_repo
,
:class
=>
"one_click_select"
}
=
yield
:rss_icon
-
if
@project
.
repo_exists?
.right
=
render
:partial
=>
"projects/refs"
,
:locals
=>
{
:destination
=>
controller
.
controller_name
==
"commits"
?
"commits"
:
"tree"
}
app/views/layouts/project.html.haml
浏览文件 @
693ff1c6
...
...
@@ -39,7 +39,7 @@
-
if
@project
.
common_notes
.
today
.
count
>
0
%span
{
:class
=>
"number"
}=
@project
.
common_notes
.
today
.
count
=
link_to
project_merge_requests_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"merge_requests"
)
?
"current"
:
nil
do
Merge
Requests
-#- if @project.merge_requests.opened.count > 0
%span{ :class => "number" }= @project.merge_requests.opened.count
...
...
app/views/projects/show.html.haml
浏览文件 @
693ff1c6
...
...
@@ -2,7 +2,7 @@
=
render
"project_head"
#news-feed
.news-feed
.project-box.project-updates
.ui-box.ui-box-small.ui-box-big
.project-box.project-updates
-
@activities
.
each
do
|
update
|
=
render
"projects/feed"
,
:update
=>
update
,
:project
=>
@project
...
...
app/views/repositories/show.html.haml
浏览文件 @
693ff1c6
...
...
@@ -2,7 +2,7 @@
=
render
"head"
#news-feed
.news-feed
.project-box.project-updates
.ui-box.ui-box-small.ui-box-big
.project-box.project-updates
-
@activities
.
each
do
|
update
|
=
render
"repositories/feed"
,
:update
=>
update
,
:project
=>
@project
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录