Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
3f0d8079
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 搜索 >>
提交
3f0d8079
编写于
11月 22, 2011
作者:
G
gitlabhq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
file name overflow fixed
上级
a59b7090
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
3 deletion
+17
-3
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+1
-0
app/decorators/tree_decorator.rb
app/decorators/tree_decorator.rb
+2
-0
app/models/tree.rb
app/models/tree.rb
+4
-0
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+3
-0
app/views/refs/_tree_file.html.haml
app/views/refs/_tree_file.html.haml
+6
-2
app/views/snippets/index.html.haml
app/views/snippets/index.html.haml
+1
-1
未找到文件。
app/assets/stylesheets/projects.css.scss
浏览文件 @
3f0d8079
...
...
@@ -385,3 +385,4 @@ body.dashboard.project-page .news-feed .project-updates a.project-update span.up
body
.project-page
.team_member_new
.span-6
,
.team_member_edit
.span-6
{
padding
:
10px
0
;
}
body
.projects-page
input
.text.git-url.project_list_url
{
width
:
165px
;
}
app/decorators/tree_decorator.rb
浏览文件 @
3f0d8079
...
...
@@ -6,6 +6,8 @@ class TreeDecorator < ApplicationDecorator
part_path
=
""
parts
=
path
.
split
(
"
\/
"
)
parts
=
parts
[
0
...-
1
]
if
is_blob?
yield
(
h
.
link_to
(
".."
,
"#"
,
:remote
=>
:true
))
if
parts
.
count
>
max_links
parts
.
each
do
|
part
|
...
...
app/models/tree.rb
浏览文件 @
3f0d8079
...
...
@@ -22,4 +22,8 @@ class Tree
def
is_blob?
tree
.
is_a?
(
Grit
::
Blob
)
end
def
empty?
data
.
blank?
end
end
app/views/layouts/project.html.haml
浏览文件 @
3f0d8079
...
...
@@ -46,6 +46,9 @@
-
if
@commit
=
link_to
truncate
(
commit_name
(
@project
,
@commit
),
:length
=>
15
),
project_commit_path
(
@project
,
:id
=>
@commit
.
id
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"show"
,
:project_id
=>
@project
,
:id
=>
@commit
.
id
)
?
"current"
:
nil
-
if
can?
current_user
,
:admin_project
,
@project
=
link_to
"Edit"
,
edit_project_path
(
@project
),
:class
=>
(
current_page?
(
edit_project_path
(
@project
)))
?
"current"
:
nil
.medium-tags
{
:style
=>
'padding: 10px 0 0 10px; width: 210px;'
}=
tag_list
@project
.project-content
...
...
app/views/refs/_tree_file.html.haml
浏览文件 @
3f0d8079
...
...
@@ -8,8 +8,12 @@
%br
/
-
if
file
.
text?
.view_file_content
:erb
<%=
raw
file
.
colorize
%>
-
unless
file
.
empty?
:erb
<%=
raw
file
.
colorize
%>
-
else
%h3
%center
Empty file
-
elsif
file
.
image?
.view_file_content_image
%img
{
:src
=>
"data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"
}
...
...
app/views/snippets/index.html.haml
浏览文件 @
3f0d8079
%div
-
if
can?
current_user
,
:write_snippet
,
@project
=
link_to
'New Snippet'
,
new_project_snippet_path
(
@project
),
:class
=>
"button append-bottom-10"
=
link_to
'New Snippet'
,
new_project_snippet_path
(
@project
),
:class
=>
"
grey-
button append-bottom-10"
%table
.round-borders
#snippets-table
%thead
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录