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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-06 02:29:40 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-06 02:29:40 +0400
commiteb7bbedb20e57e7ff266dfd0611d4d25b69cde1b (patch)
tree70f177f53e36c0d2b8f8d4ab8a574b66a8e21d74 /app/views/projects/index.html.haml
parentcb59aade4e568e6146a966362385ac41af4dc604 (diff)
Polishin & fixed tree switch
Diffstat (limited to 'app/views/projects/index.html.haml')
-rw-r--r--app/views/projects/index.html.haml51
1 files changed, 33 insertions, 18 deletions
diff --git a/app/views/projects/index.html.haml b/app/views/projects/index.html.haml
index 20f4f510cdd..e163851fd46 100644
--- a/app/views/projects/index.html.haml
+++ b/app/views/projects/index.html.haml
@@ -1,21 +1,36 @@
-.row
- .span4
- %div.leftbar.ui-box
- %h5
- Projects
- - if current_user.can_create_project?
- %span.right
- = link_to new_project_path, :class => "btn very_small info" do
- New Project
- .content_list
- - @projects.each do |project|
- = link_to project_path(project), :remote => true, :class => dom_class(project) do
- %h4
- %span.ico.project
- = truncate(project.name, :length => 22)
- .span12.right
- .show_holder.ui-box.padded
- .loading
+- if @projects.any?
+ .row
+ .span4
+ %div.leftbar.ui-box
+ %h5
+ Projects
+ - if current_user.can_create_project?
+ %span.right
+ = link_to new_project_path, :class => "btn very_small info" do
+ New Project
+ .content_list
+ - @projects.each do |project|
+ = link_to project_path(project), :remote => true, :class => dom_class(project) do
+ %h4
+ %span.ico.project
+ = truncate(project.name, :length => 22)
+ .span12.right
+ .show_holder.ui-box.padded
+ .loading
+
+- else
+ %h3 Nothing here
+ %br
+ - if current_user.can_create_project?
+ .alert-message.block-message.warning
+ You can create up to
+ = current_user.projects_limit
+ projects. Click on link below to add a new one
+ .link_holder
+ = link_to new_project_path, :class => "" do
+ New Project ยป
+ - else
+ If you will be added to project - it will be displayed here
:javascript