diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-03 19:07:23 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-03 19:07:23 +0200 |
commit | b7427faa49752f97019d450980c53b8e2339f062 (patch) | |
tree | 05e3246eaff41f4221dba9cfabbc786647c80cf3 /app/views/explore | |
parent | 1c8ec154a90d45171b23a22a6b6eaaec7caadb2f (diff) | |
download | gitlab-ce-b7427faa49752f97019d450980c53b8e2339f062.tar.gz |
Improve starred and trending pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/explore')
-rw-r--r-- | app/views/explore/projects/starred.html.haml | 8 | ||||
-rw-r--r-- | app/views/explore/projects/trending.html.haml | 20 |
2 files changed, 16 insertions, 12 deletions
diff --git a/app/views/explore/projects/starred.html.haml b/app/views/explore/projects/starred.html.haml index 4a9fcae4bed..a9df32f3d7d 100644 --- a/app/views/explore/projects/starred.html.haml +++ b/app/views/explore/projects/starred.html.haml @@ -1,11 +1,13 @@ - page_title "Starred Projects" - if current_user = render 'dashboard/projects_head' + .explore-trending-block - .lead - %i.fa.fa-star - See most starred projects + .gray-content-block .pull-right = render 'explore/projects/dropdown' + .oneline + %i.fa.fa-star + See most starred projects = render 'projects', projects: @starred_projects = paginate @starred_projects, theme: 'gitlab' diff --git a/app/views/explore/projects/trending.html.haml b/app/views/explore/projects/trending.html.haml index 1590bb9fc63..c1ef06f6cdb 100644 --- a/app/views/explore/projects/trending.html.haml +++ b/app/views/explore/projects/trending.html.haml @@ -1,16 +1,18 @@ - page_title "Trending Projects" - if current_user = render 'dashboard/projects_head' - -.gray-content-block.explore-title - %h3 - Explore GitLab - %p.lead - Discover projects and groups. Share your projects with others +- else + .explore-title + %h3 + Explore GitLab + %p.lead + Discover projects and groups. Share your projects with others + %br .explore-trending-block - .lead - %i.fa.fa-comments-o - See most discussed projects for last month + .gray-content-block .pull-right = render 'explore/projects/dropdown' + .oneline + %i.fa.fa-comments-o + See most discussed projects for last month = render 'projects', projects: @trending_projects |