Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
084da525
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 搜索 >>
未验证
提交
084da525
编写于
8月 25, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Re-use project partial for rendering explore projects
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
7569010b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
11 addition
and
39 deletion
+11
-39
app/views/explore/projects/_project.html.haml
app/views/explore/projects/_project.html.haml
+0
-24
app/views/explore/projects/_projects.html.haml
app/views/explore/projects/_projects.html.haml
+6
-0
app/views/explore/projects/index.html.haml
app/views/explore/projects/index.html.haml
+2
-7
app/views/explore/projects/starred.html.haml
app/views/explore/projects/starred.html.haml
+1
-4
app/views/explore/projects/trending.html.haml
app/views/explore/projects/trending.html.haml
+1
-3
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+1
-1
未找到文件。
app/views/explore/projects/_project.html.haml
已删除
100644 → 0
浏览文件 @
7569010b
%li
%h4
.project-title
.project-access-icon
=
visibility_level_icon
(
project
.
visibility_level
)
=
link_to
project
.
name_with_namespace
,
[
project
.
namespace
.
becomes
(
Namespace
),
project
]
%span
.pull-right
%i
.fa.fa-star
=
project
.
star_count
.project-info
-
if
project
.
description
.
present?
.project-description.str-truncated
=
markdown
(
project
.
description
,
pipeline: :description
)
.repo-info
-
unless
project
.
empty_repo?
=
link_to
pluralize
(
round_commit_count
(
project
),
'commit'
),
namespace_project_commits_path
(
project
.
namespace
,
project
,
project
.
default_branch
)
·
=
link_to
pluralize
(
project
.
repository
.
branch_names
.
count
,
'branch'
),
namespace_project_branches_path
(
project
.
namespace
,
project
)
·
=
link_to
pluralize
(
project
.
repository
.
tag_names
.
count
,
'tag'
),
namespace_project_tags_path
(
project
.
namespace
,
project
)
-
else
%i
.fa.fa-exclamation-triangle
Empty repository
app/views/explore/projects/_projects.html.haml
0 → 100644
浏览文件 @
084da525
%ul
.projects-list.bordered-list.my-projects.public-projects
-
projects
.
each
do
|
project
|
%li
.project-row
=
render
partial:
'shared/project'
,
locals:
{
project:
project
,
avatar:
true
,
stars:
true
}
-
unless
projects
.
present?
.nothing-here-block
No such projects
app/views/explore/projects/index.html.haml
浏览文件 @
084da525
...
...
@@ -4,10 +4,5 @@
.clearfix
=
render
'filter'
%br
.public-projects
%ul
.bordered-list.top-list
=
render
@projects
-
unless
@projects
.
present?
.nothing-here-block
No public projects
=
paginate
@projects
,
theme:
"gitlab"
=
render
'projects'
,
projects:
@projects
=
paginate
@projects
,
theme:
"gitlab"
app/views/explore/projects/starred.html.haml
浏览文件 @
084da525
...
...
@@ -7,8 +7,5 @@
See most starred projects
.pull-right
=
render
'explore/projects/dropdown'
.public-projects
%ul
.bordered-list
=
render
@starred_projects
=
render
'projects'
,
projects:
@starred_projects
=
paginate
@starred_projects
,
theme:
'gitlab'
app/views/explore/projects/trending.html.haml
浏览文件 @
084da525
...
...
@@ -13,6 +13,4 @@
See most discussed projects for last month
.pull-right
=
render
'explore/projects/dropdown'
.public-projects
%ul
.bordered-list
=
render
@trending_projects
=
render
'projects'
,
projects:
@trending_projects
app/views/layouts/nav/_dashboard.html.haml
浏览文件 @
084da525
...
...
@@ -34,7 +34,7 @@
%span
.count
=
current_user
.
assigned_merge_requests
.
opened
.
count
=
nav_link
(
controller: :snippets
)
do
=
link_to
(
current_user
?
user_snippets_path
(
current_user
)
:
snippets_path
),
title:
'Your snippets'
,
data:
{
placement:
'right'
}
do
=
icon
(
'
dash
board fw'
)
=
icon
(
'
clip
board fw'
)
%span
Snippets
-
if
current_user
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录