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:
authorDouwe Maan <douwe@gitlab.com>2015-09-08 16:49:20 +0300
committerDouwe Maan <douwe@gitlab.com>2015-09-08 16:49:20 +0300
commit5d785457db3017a17722314a52433543dd925164 (patch)
treea030699b752fcd1f161118be70a9df0f625fa0ef /app/views/dashboard/projects/_projects.html.haml
parent260fcd45209b59ace6b3fd6dcca6c32c2c75a8f1 (diff)
Clean up overlap between dashboard and explore.
- Split up SnippetsController into separate dashboard and explore sections. - Use consistent page titles, header titles and sidebars between dashboard and explore sections when signed in or not.
Diffstat (limited to 'app/views/dashboard/projects/_projects.html.haml')
-rw-r--r--app/views/dashboard/projects/_projects.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/dashboard/projects/_projects.html.haml b/app/views/dashboard/projects/_projects.html.haml
new file mode 100644
index 00000000000..ef9b9ce756a
--- /dev/null
+++ b/app/views/dashboard/projects/_projects.html.haml
@@ -0,0 +1,10 @@
+.projects-list-holder
+ .projects-search-form
+ .input-group
+ = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control'
+ - if current_user.can_create_project?
+ %span.input-group-btn
+ = link_to new_project_path, class: 'btn btn-success' do
+ New project
+
+ = render 'shared/projects/list', projects: @projects