summaryrefslogtreecommitdiff
path: root/app/views/shared/_project_limit.html.haml
diff options
context:
space:
mode:
authorAndrew Tomaka <atomaka@gmail.com>2015-12-02 19:02:15 -0500
committerAndrew Tomaka <atomaka@gmail.com>2015-12-05 11:32:08 -0500
commit1c53dc28b505f2853750ed4ea8b954385c5bf598 (patch)
tree2906c8f55dd83e8aec787d8ff2d01f8dfedc573d /app/views/shared/_project_limit.html.haml
parentd2f9a9012d55a7dc9c8e9e61b946c52836a1d8f1 (diff)
downloadgitlab-ce-1c53dc28b505f2853750ed4ea8b954385c5bf598.tar.gz
Notify user if they cannot create projects
Diffstat (limited to 'app/views/shared/_project_limit.html.haml')
-rw-r--r--app/views/shared/_project_limit.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/shared/_project_limit.html.haml b/app/views/shared/_project_limit.html.haml
new file mode 100644
index 00000000000..960ff00b49d
--- /dev/null
+++ b/app/views/shared/_project_limit.html.haml
@@ -0,0 +1,8 @@
+- if cookies[:hide_project_limit_message].blank? && !current_user.hide_project_limit && !current_user.can_create_project?
+ .project-limit-message.alert.alert-warning.hidden-xs
+ You won't be able to create new projects because you have reached your project limit.
+
+ .pull-right
+ = link_to "Don't show again", profile_path(user: {hide_project_limit: true}), method: :put, class: 'alert-link'
+ |
+ = link_to 'Remind later', '#', class: 'hide-project-limit-message alert-link'