gitlabhq/gitlab-ci

View on GitHub
app/views/projects/index.html.haml

Summary

Maintainability
Test Coverage
- if current_user
  = content_for :title do
    %h3.project-title
      Dashboard
      .pull-right
        = render "search"

  .projects
    %p.fetch-status.light
      %i.icon-refresh.icon-spin
      Please wait while we fetch from GitLab (#{GitlabCi.config.gitlab_server.url})
  :coffeescript
    $.get '#{gitlab_projects_path}', (data) ->
      $(".projects").html data.html
    $('.projects').on 'click', '.reset-cache', ->
      $.get '#{gitlab_projects_path}', { reset_cache: true }, (data) ->
        $(".projects").html data.html
      false
    Pager.init "#{gitlab_projects_path}", #{ProjectsController::PROJECTS_BATCH}, false
    
- else
  = render 'public'