summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-07-06 00:23:27 +0530
committerkushalpandya <kushal@gitlab.com>2017-07-06 00:23:27 +0530
commitd5a1fd500af85d0552f0848e3ee2b5f5f07d79d7 (patch)
tree2683ef50d5698886373ed85b53c36349dd2c759d /app
parente7f668013548180e9061a5e6d6e34b1f75de462e (diff)
downloadgitlab-ce-d5a1fd500af85d0552f0848e3ee2b5f5f07d79d7.tar.gz
CE regular user welcome page
Diffstat (limited to 'app')
-rw-r--r--app/views/dashboard/projects/_blank_state_welcome.html.haml48
1 files changed, 48 insertions, 0 deletions
diff --git a/app/views/dashboard/projects/_blank_state_welcome.html.haml b/app/views/dashboard/projects/_blank_state_welcome.html.haml
new file mode 100644
index 00000000000..d3b0a9d6264
--- /dev/null
+++ b/app/views/dashboard/projects/_blank_state_welcome.html.haml
@@ -0,0 +1,48 @@
+- publicish_project_count = ProjectsFinder.new(current_user: current_user).execute.count
+
+- if current_user.can_create_group?
+ .blank-state.clearfix
+ .col-md-1.col-md-offset-3.blank-state-icon
+ = custom_icon("add_new_group", size: 50)
+ .col-md-5.blank-state-body
+ %h3.blank-state-title
+ Create a group for several dependent projects.
+ %p.blank-state-text
+ Groups are the best way to manage projects and members.
+ = link_to new_group_path, class: "btn btn-new" do
+ New group
+
+.blank-state.clearfix
+ .col-md-1.col-md-offset-3.blank-state-icon
+ = custom_icon("add_new_project", size: 50)
+ .col-md-5.blank-state-body
+ %h3.blank-state-title
+ Create a project
+ %p.blank-state-text
+ - if current_user.can_create_project?
+ You don't have access to any projects right now.
+ You can create up to
+ %strong= number_with_delimiter(current_user.projects_limit)
+ = succeed "." do
+ = "project".pluralize(current_user.projects_limit)
+ - else
+ If you are added to a project, it will be displayed here.
+ - if current_user.can_create_project?
+ = link_to new_project_path, class: "btn btn-new" do
+ New project
+
+- if publicish_project_count > 0
+ .blank-state.clearfix
+ .col-md-1.col-md-offset-3.blank-state-icon
+ = custom_icon("globe", size: 50)
+ .col-md-5.blank-state-body
+ %h3.blank-state-title
+ Explore public projects
+ %p.blank-state-text
+ There are
+ = number_with_delimiter(publicish_project_count)
+ public projects on this server.
+ Public projects are an easy way to allow
+ everyone to have read-only access.
+ = link_to trending_explore_projects_path, class: "btn btn-new" do
+ Browse projects \ No newline at end of file