2015-03-10 08:55:57 +00:00
|
|
|
p
|
2014-06-26 13:07:22 +01:00
|
|
|
= link_to t('layout.activity_feed.new_project'), new_project_path,
|
|
|
|
class: 'btn btn-primary btn-small', role: 'button'
|
2015-05-05 13:25:29 +01:00
|
|
|
== render 'filters'
|
2015-03-10 08:55:57 +00:00
|
|
|
hr
|
|
|
|
h5= t('layout.activity_feed.my_last_projects')
|
2014-06-26 13:07:22 +01:00
|
|
|
|
2015-03-10 08:55:57 +00:00
|
|
|
ul.nav.nav-pills.nav-stacked
|
2014-06-26 13:07:22 +01:00
|
|
|
- current_user.projects.order(updated_at: :desc).limit(5).each do |project|
|
2015-03-10 08:55:57 +00:00
|
|
|
li
|
2014-06-26 13:07:22 +01:00
|
|
|
= link_to project_path(project) do
|
|
|
|
= fa_visibility_icon project
|
|
|
|
= project.name_with_owner
|
2015-03-10 08:55:57 +00:00
|
|
|
li
|
2014-06-26 13:07:22 +01:00
|
|
|
= link_to t('layout.activity_feed.all_my_projects'), projects_path
|
|
|
|
|
2015-03-10 08:55:57 +00:00
|
|
|
hr
|
2014-06-26 13:07:22 +01:00
|
|
|
- midnight = Time.now.utc.to_date
|
2015-03-10 08:55:57 +00:00
|
|
|
h5= t 'layout.activity_feed.my_builds_by_day'
|
|
|
|
ul.nav.nav-pills.nav-stacked
|
2014-06-26 13:07:22 +01:00
|
|
|
- ['BuildList::BUILD_PUBLISHED', 'BuildList::SUCCESS', 'BuildList::BUILD_STARTED',
|
|
|
|
'BuildList::BUILD_PENDING', 'BuildList::BUILD_ERROR'].each do |state|
|
2015-03-10 08:55:57 +00:00
|
|
|
li
|
|
|
|
a[ href = 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}) ]
|
|
|
|
span.badge.pull-right
|
2014-06-26 13:07:22 +01:00
|
|
|
= BuildList.for_status(state.constantize).for_user(current_user).for_notified_date_period(midnight, nil).count
|
|
|
|
= t "layout.build_lists.statuses.#{state.demodulize.downcase}"
|
2015-03-10 08:55:57 +00:00
|
|
|
li
|
|
|
|
a[ href = build_lists_path ]=t 'layout.activity_feed.all_my_builds'
|