BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
084da525
Unverified
Commit
084da525
authored
Aug 25, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-use project partial for rendering explore projects
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7569010b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
39 deletions
+11
-39
_project.html.haml
app/views/explore/projects/_project.html.haml
+0
-24
_projects.html.haml
app/views/explore/projects/_projects.html.haml
+6
-0
index.html.haml
app/views/explore/projects/index.html.haml
+2
-7
starred.html.haml
app/views/explore/projects/starred.html.haml
+1
-4
trending.html.haml
app/views/explore/projects/trending.html.haml
+1
-3
_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+1
-1
No files found.
app/views/explore/projects/_project.html.haml
deleted
100644 → 0
View file @
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
View file @
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
View file @
084da525
...
@@ -4,10 +4,5 @@
...
@@ -4,10 +4,5 @@
.clearfix
.clearfix
=
render
'filter'
=
render
'filter'
%br
%br
.public-projects
=
render
'projects'
,
projects:
@projects
%ul
.bordered-list.top-list
=
paginate
@projects
,
theme:
"gitlab"
=
render
@projects
-
unless
@projects
.
present?
.nothing-here-block
No public projects
=
paginate
@projects
,
theme:
"gitlab"
app/views/explore/projects/starred.html.haml
View file @
084da525
...
@@ -7,8 +7,5 @@
...
@@ -7,8 +7,5 @@
See most starred projects
See most starred projects
.pull-right
.pull-right
=
render
'explore/projects/dropdown'
=
render
'explore/projects/dropdown'
.public-projects
=
render
'projects'
,
projects:
@starred_projects
%ul
.bordered-list
=
render
@starred_projects
=
paginate
@starred_projects
,
theme:
'gitlab'
=
paginate
@starred_projects
,
theme:
'gitlab'
app/views/explore/projects/trending.html.haml
View file @
084da525
...
@@ -13,6 +13,4 @@
...
@@ -13,6 +13,4 @@
See most discussed projects for last month
See most discussed projects for last month
.pull-right
.pull-right
=
render
'explore/projects/dropdown'
=
render
'explore/projects/dropdown'
.public-projects
=
render
'projects'
,
projects:
@trending_projects
%ul
.bordered-list
=
render
@trending_projects
app/views/layouts/nav/_dashboard.html.haml
View file @
084da525
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
%span
.count
=
current_user
.
assigned_merge_requests
.
opened
.
count
%span
.count
=
current_user
.
assigned_merge_requests
.
opened
.
count
=
nav_link
(
controller: :snippets
)
do
=
nav_link
(
controller: :snippets
)
do
=
link_to
(
current_user
?
user_snippets_path
(
current_user
)
:
snippets_path
),
title:
'Your snippets'
,
data:
{
placement:
'right'
}
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
%span
Snippets
Snippets
-
if
current_user
-
if
current_user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment