BigW Consortium Gitlab

_projects_head.html.haml 1.22 KB
Newer Older
1 2
= content_for :flash_message do
  = render 'shared/project_limit'
Jacob Schatz committed
3
.top-area
4
  %ul.nav-links
Jacob Schatz committed
5 6 7 8 9 10
    = nav_link(page: [dashboard_projects_path, root_path]) do
      = link_to dashboard_projects_path, title: 'Home', class: 'shortcuts-activity', data: {placement: 'right'} do
        Your Projects
    = nav_link(page: starred_dashboard_projects_path) do
      = link_to starred_dashboard_projects_path, title: 'Starred Projects', data: {placement: 'right'} do
        Starred Projects
11
    = nav_link(page: [explore_root_path, trending_explore_projects_path, starred_explore_projects_path, explore_projects_path]) do
Jacob Schatz committed
12 13
      = link_to explore_root_path, title: 'Explore', data: {placement: 'right'} do
        Explore Projects
14

15
  .nav-controls
16
    = form_tag request.path, method: :get, class: 'project-filter-form', id: 'project-filter-form' do |f|
17
      = search_field_tag :filter_projects, params[:filter_projects], placeholder: 'Filter by name...', class: 'project-filter-form-field form-control input-short projects-list-filter', spellcheck: false, id: 'project-filter-form-field', tabindex: "2"
18
    = render 'shared/projects/dropdown'
19 20 21
    - if current_user.can_create_project?
      = link_to new_project_path, class: 'btn btn-new' do
        New Project