summaryrefslogtreecommitdiff
path: root/app/views/ci/projects/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/ci/projects/index.html.haml')
-rw-r--r--app/views/ci/projects/index.html.haml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/ci/projects/index.html.haml b/app/views/ci/projects/index.html.haml
new file mode 100644
index 00000000000..6243a28f9e2
--- /dev/null
+++ b/app/views/ci/projects/index.html.haml
@@ -0,0 +1,22 @@
+- if current_user
+ = content_for :title do
+ %h3.project-title
+ Dashboard
+ .pull-right
+ = render "search"
+
+ .projects
+ %p.fetch-status.light
+ %i.fa-refresh.fa-spin
+ Please wait while we fetch from GitLab (#{GitlabCi.config.gitlab_server.url})
+ :coffeescript
+ $.get '#{gitlab_ci_projects_path}', (data) ->
+ $(".projects").html data.html
+ $('.projects').on 'click', '.reset-cache', ->
+ $.get '#{gitlab_ci_projects_path}', { reset_cache: true }, (data) ->
+ $(".projects").html data.html
+ false
+ CiPager.init "#{gitlab_ci_projects_path}", #{Ci::ProjectsController::PROJECTS_BATCH}, false
+
+- else
+ = render 'public'