2013-12-26 04:16:30 -05:00
|
|
|
.clearfix
|
|
|
|
.pull-left
|
2014-07-23 05:18:51 -04:00
|
|
|
= form_tag explore_projects_path, method: :get, class: 'form-inline form-tiny' do |f|
|
2014-01-02 06:26:58 -05:00
|
|
|
.form-group
|
2014-01-06 07:34:41 -05:00
|
|
|
= search_field_tag :search, params[:search], placeholder: "Filter by name", class: "form-control search-text-input input-mn-300", id: "projects_search"
|
2014-01-02 06:26:58 -05:00
|
|
|
.form-group
|
2014-09-26 10:57:36 -04:00
|
|
|
= button_tag 'Search', class: "btn btn-primary wide"
|
2013-12-26 04:16:30 -05:00
|
|
|
|
|
|
|
.pull-right
|
|
|
|
.dropdown.inline
|
|
|
|
%a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%span.light sort:
|
|
|
|
- if @sort.present?
|
2013-12-26 04:24:43 -05:00
|
|
|
= @sort.humanize
|
2013-12-26 04:16:30 -05:00
|
|
|
- else
|
2013-12-26 04:24:43 -05:00
|
|
|
Name
|
2013-12-26 04:16:30 -05:00
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2014-07-23 05:18:51 -04:00
|
|
|
= link_to explore_projects_path(sort: nil) do
|
2013-12-26 04:24:43 -05:00
|
|
|
Name
|
2014-07-23 05:18:51 -04:00
|
|
|
= link_to explore_projects_path(sort: 'newest') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_created
|
2014-07-23 05:18:51 -04:00
|
|
|
= link_to explore_projects_path(sort: 'oldest') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_created
|
2014-07-23 05:18:51 -04:00
|
|
|
= link_to explore_projects_path(sort: 'recently_updated') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_updated
|
2014-07-23 05:18:51 -04:00
|
|
|
= link_to explore_projects_path(sort: 'last_updated') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_updated
|
2013-09-24 15:14:28 -04:00
|
|
|
|
|
|
|
%hr
|
2013-03-07 03:08:43 -05:00
|
|
|
.public-projects
|
2013-09-24 15:14:28 -04:00
|
|
|
%ul.bordered-list.top-list
|
2014-07-23 05:03:49 -04:00
|
|
|
= render @projects
|
2013-03-07 03:08:43 -05:00
|
|
|
- unless @projects.present?
|
2014-02-20 06:51:22 -05:00
|
|
|
.nothing-here-block No public projects
|
2013-01-13 10:24:29 -05:00
|
|
|
|
2013-04-06 15:32:23 -04:00
|
|
|
= paginate @projects, theme: "gitlab"
|