Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-25 23:05:23 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-25 23:05:23 +0400
commit974b5a7b2f31f8e7d6b38a45bfd055a40651c945 (patch)
tree425fdc30fce0c7595001909ccff03d1f7ca341d8 /app/views/explore
parent76af5a1db73155c0a120f30cda9d60155146dfe1 (diff)
Most starred projects page for Explore area
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/explore')
-rw-r--r--app/views/explore/projects/_project.html.haml7
-rw-r--r--app/views/explore/projects/starred.html.haml10
2 files changed, 16 insertions, 1 deletions
diff --git a/app/views/explore/projects/_project.html.haml b/app/views/explore/projects/_project.html.haml
index 665d111bead..393c33b266a 100644
--- a/app/views/explore/projects/_project.html.haml
+++ b/app/views/explore/projects/_project.html.haml
@@ -4,6 +4,10 @@
= visibility_level_icon(project.visibility_level)
= link_to project.name_with_namespace, project
+ - if current_page?(starred_explore_projects_path)
+ %strong.pull-right
+ = pluralize project.star_count, 'star'
+
- if project.description.present?
%p.project-description.str-truncated
= project.description
@@ -17,4 +21,5 @@
= link_to pluralize(project.repository.tag_names.count, 'tag'), project_tags_path(project)
- else
%i.icon-warning-sign
- Empty repository
+ Empty repository
+
diff --git a/app/views/explore/projects/starred.html.haml b/app/views/explore/projects/starred.html.haml
new file mode 100644
index 00000000000..9c793d4050c
--- /dev/null
+++ b/app/views/explore/projects/starred.html.haml
@@ -0,0 +1,10 @@
+.explore-trending-block
+ %p.lead
+ %i.icon-comments-alt
+ See most starred projects
+ %hr
+ .public-projects
+ %ul.bordered-list
+ = render @starred_projects
+
+ = paginate @starred_projects, theme: 'gitlab'