2012-03-05 22:29:40 +00:00
|
|
|
- if @projects.any?
|
2012-04-20 16:11:49 +00:00
|
|
|
.projects
|
|
|
|
.activities.span8
|
2012-04-14 08:20:45 +00:00
|
|
|
- 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
|
2012-05-15 16:35:18 +00:00
|
|
|
- else
|
2012-04-14 08:20:45 +00:00
|
|
|
.padded
|
|
|
|
%strong.cgray Projects activity will be displayed here
|
2012-04-20 16:11:49 +00:00
|
|
|
.side
|
|
|
|
.projects_box
|
2012-03-05 22:29:40 +00:00
|
|
|
%h5
|
|
|
|
Projects
|
2012-03-19 22:05:35 +00:00
|
|
|
%small
|
2012-04-20 16:11:49 +00:00
|
|
|
(#{@projects.total_count})
|
2012-03-05 22:29:40 +00:00
|
|
|
- if current_user.can_create_project?
|
|
|
|
%span.right
|
|
|
|
= link_to new_project_path, :class => "btn very_small info" do
|
2012-05-19 09:00:46 +00:00
|
|
|
%i.icon-plus
|
2012-03-05 22:29:40 +00:00
|
|
|
New Project
|
2012-04-20 16:11:49 +00:00
|
|
|
- @projects.each do |project|
|
|
|
|
= link_to project_path(project), :class => dom_class(project) do
|
|
|
|
%h4
|
|
|
|
%span.ico.project
|
|
|
|
= truncate(project.name, :length => 25)
|
|
|
|
%span.right
|
|
|
|
→
|
|
|
|
.bottom= paginate @projects, :theme => "gitlab"
|
2012-03-05 22:29:40 +00: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
|