BigW Consortium Gitlab

index.html.haml 977 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
.row
  .span6
    %h3.page_title
      Projects (#{@projects.total_count})
      %small with read-only access
  .span6
    .pull-right
      = form_tag public_projects_path, method: :get, class: 'form-inline' do |f|
        .search-holder
          .input
            = search_field_tag :search, params[:search], placeholder: "gitlab-ci", class: "span3 search-text-input", id: "projects_search"
            = submit_tag 'Search', class: "btn btn-primary wide"

14 15
%hr

16 17 18 19 20 21
.public-projects
  %ul.unstyled
    - @projects.each do |project|
      %li.clearfix
        %h5
          %i.icon-share
22 23 24 25
          - if current_user
            = link_to_project project
          - else
            = project.name_with_namespace
26 27 28 29 30 31
          .pull-right
            %pre.dark.tiny git clone #{project.http_url_to_repo}
        %p.description
          = project.description
    - unless @projects.present?
      %h3.nothing_here_message No public projects
32

33
  = paginate @projects, theme: "gitlab"