2012-03-05 09:11:50 +00:00
|
|
|
|
.bordered
|
|
|
|
|
= link_to t("layout.activity_feed.new_project"), new_project_path, :class => 'button'
|
|
|
|
|
%h3= t("layout.activity_feed.my_last_projects")
|
|
|
|
|
%table
|
|
|
|
|
%tbody
|
2012-03-11 20:04:49 +00:00
|
|
|
|
- current_user.projects.order('updated_at DESC').limit(5).each do |project|
|
2012-03-05 09:11:50 +00:00
|
|
|
|
%tr
|
|
|
|
|
%td
|
|
|
|
|
- if project.public?
|
|
|
|
|
= image_tag("unlock.png")
|
|
|
|
|
- else
|
|
|
|
|
= image_tag("lock.png")
|
|
|
|
|
%td
|
2012-08-10 17:37:21 +01:00
|
|
|
|
= link_to project.name_with_owner, project_path(project)
|
2012-03-11 20:00:54 +00:00
|
|
|
|
%tr
|
|
|
|
|
%td
|
|
|
|
|
\
|
|
|
|
|
%td
|
|
|
|
|
= link_to t("layout.activity_feed.all_my_projects"), projects_path
|
2012-03-05 09:11:50 +00:00
|
|
|
|
.block
|
2012-04-28 22:55:20 +01:00
|
|
|
|
- midnight = Time.now.utc.to_date
|
2012-03-05 09:11:50 +00:00
|
|
|
|
%h3= t("layout.activity_feed.my_builds_by_day")
|
|
|
|
|
%table{:cellpadding => "0", :cellspacing => "0"}
|
|
|
|
|
%tbody
|
2012-04-13 19:26:34 +01:00
|
|
|
|
- ['BuildList::BUILD_PUBLISHED', 'BuildServer::SUCCESS', 'BuildServer::BUILD_STARTED', 'BuildList::BUILD_PENDING', 'BuildServer::BUILD_ERROR'].each do |state|
|
|
|
|
|
%tr
|
|
|
|
|
%td.first
|
2012-04-16 09:18:07 +01:00
|
|
|
|
= link_to t("layout.build_lists.statuses.#{state.demodulize.downcase}"), build_lists_path(:filter => {:status => state.constantize, :'updated_at_start(1i)' => midnight.year, :'updated_at_start(2i)' => midnight.month, :'updated_at_start(3i)' => midnight.day})
|
2012-04-13 19:26:34 +01:00
|
|
|
|
%td= BuildList.for_status(state.constantize).for_user(current_user).for_notified_date_period(midnight, nil).count
|
2012-03-05 09:11:50 +00:00
|
|
|
|
%tr
|
|
|
|
|
%td.first
|
|
|
|
|
= link_to t("layout.activity_feed.all_my_builds"), build_lists_path
|
|
|
|
|
%td
|