34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
.bordered
|
||
= link_to t("layout.activity_feed.new_project"), new_project_path, :class => 'button'
|
||
%h3= t("layout.activity_feed.my_last_projects")
|
||
%table
|
||
%tbody
|
||
- current_user.projects.order('updated_at DESC').limit(5).each do |project|
|
||
%tr
|
||
%td
|
||
- if project.public?
|
||
= image_tag("unlock.png")
|
||
- else
|
||
= image_tag("lock.png")
|
||
%td
|
||
= link_to "#{project.owner.uname}/#{project.name}", project_path(project)
|
||
%tr
|
||
%td
|
||
\
|
||
%td
|
||
= link_to t("layout.activity_feed.all_my_projects"), projects_path
|
||
.block
|
||
- midnight = Time.now.utc.to_date
|
||
%h3= t("layout.activity_feed.my_builds_by_day")
|
||
%table{:cellpadding => "0", :cellspacing => "0"}
|
||
%tbody
|
||
- ['BuildList::BUILD_PUBLISHED', 'BuildServer::SUCCESS', 'BuildServer::BUILD_STARTED', 'BuildList::BUILD_PENDING', 'BuildServer::BUILD_ERROR'].each do |state|
|
||
%tr
|
||
%td.first
|
||
= 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})
|
||
%td= BuildList.for_status(state.constantize).for_user(current_user).for_notified_date_period(midnight, nil).count
|
||
%tr
|
||
%td.first
|
||
= link_to t("layout.activity_feed.all_my_builds"), build_lists_path
|
||
%td
|