diff options
author | Andrew Tomaka <atomaka@gmail.com> | 2015-12-02 19:02:15 -0500 |
---|---|---|
committer | Andrew Tomaka <atomaka@gmail.com> | 2015-12-05 11:32:08 -0500 |
commit | 1c53dc28b505f2853750ed4ea8b954385c5bf598 (patch) | |
tree | 2906c8f55dd83e8aec787d8ff2d01f8dfedc573d /app/views | |
parent | d2f9a9012d55a7dc9c8e9e61b946c52836a1d8f1 (diff) | |
download | gitlab-ce-1c53dc28b505f2853750ed4ea8b954385c5bf598.tar.gz |
Notify user if they cannot create projects
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/dashboard/_projects_head.html.haml | 3 | ||||
-rw-r--r-- | app/views/shared/_project_limit.html.haml | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/app/views/dashboard/_projects_head.html.haml b/app/views/dashboard/_projects_head.html.haml index ed480b8caf8..991e67b1cd3 100644 --- a/app/views/dashboard/_projects_head.html.haml +++ b/app/views/dashboard/_projects_head.html.haml @@ -1,3 +1,6 @@ += content_for :flash_message do + = render 'shared/project_limit' + %ul.center-top-menu = nav_link(path: ['projects#index', 'root#index']) do = link_to dashboard_projects_path, title: 'Home', class: 'shortcuts-activity', data: {placement: 'right'} do 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' |