2012-03-06 00:29:40 +02:00
|
|
|
- if @projects.any?
|
2012-04-20 19:11:49 +03:00
|
|
|
.projects
|
|
|
|
.activities.span8
|
2012-08-22 03:56:53 +03:00
|
|
|
= render 'shared/no_ssh'
|
2012-04-14 11:20:45 +03:00
|
|
|
- if @events.any?
|
2012-07-21 10:23:05 +03:00
|
|
|
.content_list= render @events
|
2012-06-04 01:37:27 +03:00
|
|
|
- else
|
2012-06-12 14:58:44 +03:00
|
|
|
%h4.nothing_here_message Projects activity will be displayed here
|
2012-07-21 10:23:05 +03:00
|
|
|
.loading.hide
|
2012-04-20 19:11:49 +03:00
|
|
|
.side
|
2012-08-10 18:07:50 -04:00
|
|
|
= render "events/event_last_push", event: @last_push
|
2012-04-20 19:11:49 +03:00
|
|
|
.projects_box
|
2012-03-06 00:29:40 +02:00
|
|
|
%h5
|
|
|
|
Projects
|
2012-03-20 00:05:35 +02:00
|
|
|
%small
|
2012-04-20 19:11:49 +03:00
|
|
|
(#{@projects.total_count})
|
2012-03-06 00:29:40 +02:00
|
|
|
- if current_user.can_create_project?
|
|
|
|
%span.right
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to new_project_path, class: "btn very_small info" do
|
2012-05-19 12:00:46 +03:00
|
|
|
%i.icon-plus
|
2012-03-06 00:29:40 +02:00
|
|
|
New Project
|
2012-08-30 08:13:36 +03:00
|
|
|
%ul.unstyled
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li.wll
|
|
|
|
= link_to project_path(project), class: dom_class(project) do
|
|
|
|
%strong.project_name= truncate(project.name, length: 25)
|
|
|
|
%span.arrow
|
|
|
|
→
|
|
|
|
%span.last_activity
|
|
|
|
%strong Last activity:
|
|
|
|
%span= project_last_activity(project)
|
2012-08-10 18:07:50 -04:00
|
|
|
.bottom= paginate @projects, theme: "gitlab"
|
2012-03-06 00:29:40 +02:00
|
|
|
|
2012-06-12 23:13:42 +03:00
|
|
|
%hr
|
|
|
|
%div
|
|
|
|
%span.rss-icon
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to dashboard_path(:atom, { private_token: current_user.private_token }) do
|
|
|
|
= image_tag "rss_ui.png", title: "feed"
|
2012-06-12 23:13:42 +03:00
|
|
|
%strong News Feed
|
|
|
|
|
2012-06-04 01:37:27 +03:00
|
|
|
- else
|
2012-06-11 08:52:44 +03:00
|
|
|
%h3.nothing_here_message There are no projects you have access to.
|
2012-03-06 00:29:40 +02:00
|
|
|
%br
|
2012-06-11 08:52:44 +03:00
|
|
|
%h4.nothing_here_message
|
|
|
|
- if current_user.can_create_project?
|
2012-03-06 00:29:40 +02:00
|
|
|
You can create up to
|
|
|
|
= current_user.projects_limit
|
2012-06-11 08:52:44 +03:00
|
|
|
projects. Click on button below to add a new one
|
2012-03-06 00:29:40 +02:00
|
|
|
.link_holder
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to new_project_path, class: "btn primary" do
|
2012-06-04 01:37:27 +03:00
|
|
|
New Project »
|
2012-06-11 08:52:44 +03:00
|
|
|
- else
|
|
|
|
If you will be added to project - it will be displayed here
|
2012-07-21 10:23:05 +03:00
|
|
|
|
|
|
|
|
2012-08-22 03:56:53 +03:00
|
|
|
:javascript
|
2012-07-21 10:23:05 +03:00
|
|
|
$(function(){ Pager.init(20); });
|