Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
946f00ed
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 搜索 >>
提交
946f00ed
编写于
10月 18, 2015
作者:
D
Douwe Maan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update style of snippets pages
上级
b371b6d1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
44 deletion
+15
-44
CHANGELOG
CHANGELOG
+1
-1
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+0
-5
app/controllers/projects/snippets_controller.rb
app/controllers/projects/snippets_controller.rb
+1
-0
app/views/dashboard/snippets/index.html.haml
app/views/dashboard/snippets/index.html.haml
+3
-25
app/views/explore/snippets/index.html.haml
app/views/explore/snippets/index.html.haml
+2
-1
app/views/projects/snippets/index.html.haml
app/views/projects/snippets/index.html.haml
+8
-12
未找到文件。
CHANGELOG
浏览文件 @
946f00ed
...
...
@@ -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)
- Update style of snippet
detail page
(Han Loong Liauw)
- Update style of snippet
s pages
(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
浏览文件 @
946f00ed
.my-snippets
li
:first-child
{
h4
{
margin-top
:
0
;
}
padding-top
:
0
;
}
.snippet-form-holder
.file-holder
.file-title
{
padding
:
2px
;
}
...
...
app/controllers/projects/snippets_controller.rb
浏览文件 @
946f00ed
...
...
@@ -21,6 +21,7 @@ class Projects::SnippetsController < Projects::ApplicationController
filter: :by_project
,
project:
@project
})
@snippets
=
@snippets
.
page
(
params
[
:page
]).
per
(
PER_PAGE
)
end
def
new
...
...
app/views/dashboard/snippets/index.html.haml
浏览文件 @
946f00ed
...
...
@@ -6,33 +6,11 @@
.gray-content-block
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
Add new snippet
=
icon
(
'plus'
)
New Snippet
.oneline
Share code pastes with others out of git repository
%ul
.nav.nav-tabs.prepend-top-20
=
nav_tab
:scope
,
nil
do
=
link_to
dashboard_snippets_path
do
All
%span
.badge
=
current_user
.
snippets
.
count
=
nav_tab
:scope
,
'are_private'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_private'
)
do
Private
%span
.badge
=
current_user
.
snippets
.
are_private
.
count
=
nav_tab
:scope
,
'are_internal'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_internal'
)
do
Internal
%span
.badge
=
current_user
.
snippets
.
are_internal
.
count
=
nav_tab
:scope
,
'are_public'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_public'
)
do
Public
%span
.badge
=
current_user
.
snippets
.
are_public
.
count
.my-snippets
=
render
'snippets/snippets'
=
render
'snippets/snippets'
app/views/explore/snippets/index.html.haml
浏览文件 @
946f00ed
...
...
@@ -10,7 +10,8 @@
-
if
current_user
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
Add new snippet
=
icon
(
'plus'
)
New Snippet
.oneline
Public snippets created by you and other users are listed here
...
...
app/views/projects/snippets/index.html.haml
浏览文件 @
946f00ed
-
page_title
"Snippets"
=
render
"header_title"
%h3
.page-title
Snippets
-
if
can?
current_user
,
:create_project_snippet
,
@project
=
link_to
new_namespace_project_snippet_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new pull-right"
,
title:
"New Snippet"
do
Add new s
nippet
.gray-content-block.top-block
.pull-right
=
link_to
new_namespace_project_snippet_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
,
title:
"New Snippet"
do
=
icon
(
'plus'
)
New S
nippet
%p
.light
Share code pastes with others out of git repository
.oneline
Share code pastes with others out of git repository
%ul
.bordered-list
=
render
partial:
"shared/snippets/snippet"
,
collection:
@snippets
-
if
@snippets
.
empty?
%li
.nothing-here-block
Nothing here.
=
render
'snippets/snippets'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录