Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
b371b6d1
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,发现更多精彩内容 >>
提交
b371b6d1
编写于
10月 18, 2015
作者:
D
Douwe Maan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update style of snippet detail page
上级
1565a95d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
83 addition
and
79 deletion
+83
-79
CHANGELOG
CHANGELOG
+1
-1
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+31
-31
app/views/projects/snippets/show.html.haml
app/views/projects/snippets/show.html.haml
+16
-13
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+23
-24
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+12
-10
未找到文件。
CHANGELOG
浏览文件 @
b371b6d1
...
...
@@ -59,7 +59,7 @@ v 8.1.0 (unreleased)
- Fix position of hamburger in header for smaller screens (Han Loong Liauw)
- Fix bug where Emojis in Markdown would truncate remaining text (Sakata Sinji)
- Persist filters when sorting on admin user page (Jerry Lukins)
-
Added last modified date to snippets#show
(Han Loong Liauw)
-
Update style of snippet detail page
(Han Loong Liauw)
- Allow dashboard and group issues/MRs to be filtered by label
- Add spellcheck=false to certain input fields
- Invalidate stored service password if the endpoint URL is changed
...
...
app/assets/stylesheets/pages/snippets.scss
浏览文件 @
b371b6d1
...
...
@@ -31,50 +31,50 @@
}
}
.snippet-
details
{
.
page-title
{
margin-top
:
-15px
;
padding
:
10px
0
;
margin-bottom
:
0
;
color
:
#5c5d5e
;
font-size
:
13px
;
@include
clearfix
()
;
.snippet-
holder
{
.
snippet-details
{
.page-title
{
margin-top
:
-15px
;
padding
:
10px
0
;
margin-bottom
:
0
;
color
:
#5c5d5e
;
font-size
:
16px
;
.creator
{
color
:
$gl-gray
;
a
{
color
:
$gl-gray
;
.author
{
color
:
#5c5d5e
;
}
}
.snippet-id
{
color
:
#5c5d5e
;
.snippet-id
{
color
:
#5c5d5e
;
}
}
.btn
{
padding
:
10px
$gl-padding
;
.snippet-title
{
margin
:
0
;
font-size
:
23px
;
color
:
#313236
;
}
}
.snippet-title
{
margin
:
0
;
font-size
:
23px
;
color
:
#313236
;
}
@media
(
max-width
:
$screen-md-max
)
{
.new-snippet-link
{
display
:
none
;
}
}
@media
(
max-width
:
$screen-md-max
)
{
.new-snippet-link
{
display
:
none
;
@media
(
max-width
:
$screen-sm-max
)
{
.creator
,
.page-title
.btn-close
{
display
:
none
;
}
}
}
@media
(
max-width
:
$screen-sm-max
)
{
.creator
,
.page-title
.btn-close
{
display
:
none
;
}
.file-holder
{
border-top
:
0
;
}
}
.snippet-box
{
@include
border-radius
(
2px
);
...
...
app/views/projects/snippets/show.html.haml
浏览文件 @
b371b6d1
-
page_title
@snippet
.
title
,
"Snippets"
=
render
"header_title"
=
render
'shared/snippets/header'
.file-holder
.file-title
%i
.fa.fa-file
%strong
=
@snippet
.
file_name
.file-actions
.btn-group
=
link_to
'Raw'
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
render
'shared/snippets/blob'
%div
#notes
=
render
"projects/notes/notes_with_form"
.snippet-holder
=
render
'shared/snippets/header'
%article
.file-holder
.file-title
=
blob_icon
0
,
@snippet
.
file_name
%strong
=
@snippet
.
file_name
.file-actions.hidden-xs
.btn-group.tree-btn-group
=
link_to
'Raw'
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
render
'shared/snippets/blob'
%div
#notes
=
render
"projects/notes/notes_with_form"
app/views/shared/snippets/_header.html.haml
浏览文件 @
b371b6d1
.snippet
.snippet-details
.page-title
.snippet-box
{
class:
visibility_level_color
(
@snippet
.
visibility_level
)}
=
visibility_level_icon
(
@snippet
.
visibility_level
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
%span
.snippet-id
Snippet ##{@snippet.id}
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
%span
·
=
icon
(
'edit'
,
title:
'edited'
)
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_edited_ago'
)
.snippet-details
.page-title
.snippet-box
{
class:
visibility_level_color
(
@snippet
.
visibility_level
)}
=
visibility_level_icon
(
@snippet
.
visibility_level
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
%span
.snippet-id
Snippet ##{@snippet.id}
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
%span
·
=
icon
(
'edit'
,
title:
'edited'
)
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_edited_ago'
)
.pull-right
-
if
@snippet
.
project_id?
=
render
"projects/snippets/actions"
-
else
=
render
"snippets/actions"
.gray-content-block.middle-block
%h2
.snippet-title
=
gfm
escape_once
(
@snippet
.
title
)
.pull-right
-
if
@snippet
.
project_id?
=
render
"projects/snippets/actions"
-
else
=
render
"snippets/actions"
.gray-content-block.middle-block
%h2
.snippet-title
=
gfm
escape_once
(
@snippet
.
title
)
app/views/snippets/show.html.haml
浏览文件 @
b371b6d1
-
page_title
@snippet
.
title
,
"Snippets"
=
render
'shared/snippets/header'
.file-holder
.file-title
%i
.fa.fa-file
%strong
=
@snippet
.
file_name
.file-actions
.btn-group
=
link_to
'Raw'
,
raw_snippet_path
(
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
render
'shared/snippets/blob'
.snippet-holder
=
render
'shared/snippets/header'
%article
.file-holder
.file-title
=
blob_icon
0
,
@snippet
.
file_name
%strong
=
@snippet
.
file_name
.file-actions.hidden-xs
.btn-group.tree-btn-group
=
link_to
'Raw'
,
raw_snippet_path
(
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
render
'shared/snippets/blob'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录