2014-07-23 09:03:49 +00:00
|
|
|
%li
|
2014-09-04 13:34:07 +00:00
|
|
|
%h4.project-title
|
|
|
|
.project-access-icon
|
|
|
|
= visibility_level_icon(project.visibility_level)
|
|
|
|
= link_to project.name_with_namespace, project
|
2014-07-23 09:03:49 +00:00
|
|
|
|
2014-09-04 13:34:07 +00:00
|
|
|
- if current_page?(starred_explore_projects_path)
|
|
|
|
%strong.pull-right
|
|
|
|
= pluralize project.star_count, 'star'
|
2014-07-23 09:03:49 +00:00
|
|
|
|
2014-09-04 13:34:07 +00:00
|
|
|
.project-info
|
2014-08-20 00:38:52 +00:00
|
|
|
- if project.description.present?
|
|
|
|
%p.project-description.str-truncated
|
|
|
|
= project.description
|
2014-07-25 19:05:23 +00:00
|
|
|
|
2014-08-20 00:38:52 +00:00
|
|
|
.repo-info
|
|
|
|
- unless project.empty_repo?
|
|
|
|
= link_to pluralize(project.repository.round_commit_count, 'commit'), project_commits_path(project, project.default_branch)
|
|
|
|
·
|
|
|
|
= link_to pluralize(project.repository.branch_names.count, 'branch'), project_branches_path(project)
|
|
|
|
·
|
|
|
|
= link_to pluralize(project.repository.tag_names.count, 'tag'), project_tags_path(project)
|
|
|
|
- else
|
|
|
|
%i.icon-warning-sign
|
|
|
|
Empty repository
|