Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/dashboard/index.html.haml')
-rw-r--r--app/views/dashboard/index.html.haml56
1 files changed, 56 insertions, 0 deletions
diff --git a/app/views/dashboard/index.html.haml b/app/views/dashboard/index.html.haml
new file mode 100644
index 00000000000..b38544509b2
--- /dev/null
+++ b/app/views/dashboard/index.html.haml
@@ -0,0 +1,56 @@
+- if @projects.any?
+ .projects
+ .activities.span8
+ - if current_user.require_ssh_key?
+ .alert.alert-error.padded
+ %span
+ You wont be able to pull/push project code unless you
+ %strong
+ = link_to new_key_path, :class => "vlink" do
+ add new key
+ to your profile
+ - if @events.any?
+ = render @events
+ - else
+ %h4.nothing_here_message Projects activity will be displayed here
+ .side
+ = render "events/event_last_push", :event => @last_push
+ .projects_box
+ %h5
+ Projects
+ %small
+ (#{@projects.total_count})
+ - if current_user.can_create_project?
+ %span.right
+ = link_to new_project_path, :class => "btn very_small info" do
+ %i.icon-plus
+ New Project
+ - @projects.each do |project|
+ = link_to project_path(project), :class => dom_class(project) do
+ %h4
+ %span.ico.project
+ = truncate(project.name, :length => 25)
+ %span.right
+ →
+ .bottom= paginate @projects, :theme => "gitlab"
+
+ %hr
+ %div
+ %span.rss-icon
+ = link_to dashboard_path(:atom, { :private_token => current_user.private_token }) do
+ = image_tag "rss_ui.png", :title => "feed"
+ %strong News Feed
+
+- else
+ %h3.nothing_here_message There are no projects you have access to.
+ %br
+ %h4.nothing_here_message
+ - if current_user.can_create_project?
+ You can create up to
+ = current_user.projects_limit
+ projects. Click on button below to add a new one
+ .link_holder
+ = link_to new_project_path, :class => "btn primary" do
+ New Project ยป
+ - else
+ If you will be added to project - it will be displayed here