gitlab-org--gitlab-foss/app/views/projects/index.html.haml

49 lines
1.4 KiB
Text
Raw Normal View History

2012-03-05 17:29:40 -05:00
- if @projects.any?
.row
2012-04-10 01:51:08 -04:00
.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
.padded
%strong.cgray Projects activity will be displayed here
2012-04-10 01:51:08 -04:00
.span4.right
2012-03-05 17:29:40 -05:00
%div.leftbar.ui-box
%h5
Projects
2012-03-19 18:05:35 -04:00
%small
(#{@projects.count})
2012-03-05 17:29:40 -05:00
- 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|
2012-03-19 18:05:35 -04:00
= link_to project_path(project), :class => dom_class(project) do
2012-03-05 17:29:40 -05:00
%h4
%span.ico.project
2012-03-19 18:05:35 -04:00
= truncate(project.name, :length => 25)
%span.right
→
2012-03-05 17:29:40 -05:00
- 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