2014-11-21 12:11:05 +00:00
|
|
|
- %w(tracker pull_requests).each do |kind|
|
2015-05-05 13:25:29 +01:00
|
|
|
tab[ heading= t("activity_menu.#{kind}")
|
|
|
|
active= "actCtrl.#{kind}_tab.active"
|
|
|
|
select= "actCtrl.getContent('#{kind}')" ]
|
2014-11-21 12:11:05 +00:00
|
|
|
.row
|
2015-02-06 15:49:06 +00:00
|
|
|
.col-md-3.offset10
|
2014-11-21 12:11:05 +00:00
|
|
|
ul.nav.nav-pills.nav-stacked
|
|
|
|
- %w(all assigned created).each do |kind_filter|
|
2015-05-05 13:25:29 +01:00
|
|
|
li ng-class= "{ active: actCtrl.#{kind}_tab.filter.#{kind_filter} }"
|
|
|
|
a ng-click= "actCtrl.setIssuesFilter('#{kind}', '#{kind_filter}')"
|
|
|
|
span.badge.pull-right= "{{ actCtrl.#{kind}_tab.filter.#{kind_filter}_count }}"
|
2014-11-21 12:11:05 +00:00
|
|
|
= "{{'#{kind}.filter.#{kind_filter}' | i18n}}"
|
2015-02-06 15:49:06 +00:00
|
|
|
.col-md-9.offset10
|
2014-11-21 12:11:05 +00:00
|
|
|
tabset.boffset10
|
|
|
|
- %w(open closed).each do |status|
|
2015-05-05 13:25:29 +01:00
|
|
|
- count_issues = "({{actCtrl.#{kind}_tab.filter.#{status}_count}})"
|
|
|
|
tab[ heading= "#{t "layout.issues.statuses.#{status}"} #{count_issues}"
|
|
|
|
active= "actCtrl.#{kind}_tab.status_#{status}"
|
|
|
|
ng-click= "actCtrl.setIssuesStatus('#{kind}', '#{status}')" ]
|
2014-11-21 12:11:05 +00:00
|
|
|
|
|
|
|
.pull-right.boffset10
|
2015-05-05 13:25:29 +01:00
|
|
|
button.btn.btn-default.roffset5[ type= 'button'
|
|
|
|
ng-click= "actCtrl.setIssuesSort('#{kind}', 'updated')" ]
|
|
|
|
span.fa ng-class= "actCtrl.#{kind}_tab.sort.updated_class"
|
2014-11-21 12:11:05 +00:00
|
|
|
=> t('layout.issues.sort.updated')
|
2015-05-05 13:25:29 +01:00
|
|
|
button.btn.btn-default[ type= 'button'
|
|
|
|
ng-click= "actCtrl.setIssuesSort('#{kind}', 'submitted')" ]
|
|
|
|
span.fa ng-class= "actCtrl.#{kind}_tab.sort.submitted_class"
|
2014-11-21 12:11:05 +00:00
|
|
|
=> t('layout.issues.sort.submitted')
|
|
|
|
|
|
|
|
table.table
|
2015-05-05 13:25:29 +01:00
|
|
|
tr ng-repeat= "issue in actCtrl.#{kind}_tab.content"
|
2014-11-21 12:11:05 +00:00
|
|
|
td
|
2015-05-05 13:25:29 +01:00
|
|
|
a ng-href= "{{issue.issue_url}}"
|
2014-11-21 12:11:05 +00:00
|
|
|
span.text-info
|
|
|
|
= '{{issue.project_name}} '
|
|
|
|
| {{issue.title}}
|
2015-05-05 13:25:29 +01:00
|
|
|
span.label.small.loffset5[ ng-repeat= "label in issue.labels"
|
|
|
|
ng-style= "{background: label.color}" ]
|
2014-11-21 12:11:05 +00:00
|
|
|
| {{label.name}}
|
|
|
|
.small
|
|
|
|
= t 'layout.issues.created_by'
|
2015-05-05 13:25:29 +01:00
|
|
|
a>[ ng-href= "{{issue.user.path}}" ] {{issue.user.uname}}
|
|
|
|
span.text-muted[ ng-show= 'actCtrl.#{kind}_tab.sort.sort == "submitted"'
|
|
|
|
title= "{{issue.created_at_utc}}" ]
|
2014-11-21 12:11:05 +00:00
|
|
|
| {{issue.created_at | amDateFormat:'YYYY-MM-DD HH:mm'}} (
|
2015-05-05 13:25:29 +01:00
|
|
|
span am-time-ago= 'issue.created_at'
|
2014-11-21 12:11:05 +00:00
|
|
|
| )
|
2015-05-05 13:25:29 +01:00
|
|
|
span> class= 'text-muted' ng-show= 'actCtrl.#{kind}_tab.sort.sort == "updated"'
|
2014-11-21 12:11:05 +00:00
|
|
|
= t 'layout.issues.updated_at'
|
2015-05-05 13:25:29 +01:00
|
|
|
span.text-muted[ ng-show= 'actCtrl.#{kind}_tab.sort.sort == "updated"'
|
|
|
|
title= "{{issue.updated_at_utc}}" ]
|
2014-11-21 12:11:05 +00:00
|
|
|
| {{issue.updated_at | amDateFormat:'YYYY-MM-DD HH:mm'}} (
|
2015-05-05 13:25:29 +01:00
|
|
|
span am-time-ago= 'issue.updated_at'
|
2014-11-21 12:11:05 +00:00
|
|
|
| )
|
|
|
|
td
|
2015-05-05 13:25:29 +01:00
|
|
|
a ng-href= "{{issue.issue_url + '#comments'}}"
|
2014-11-21 12:11:05 +00:00
|
|
|
span.fa.fa-comments.text-primary
|
|
|
|
= " {{issue.comments_count}}"
|
|
|
|
td
|
2015-05-05 13:25:29 +01:00
|
|
|
a>[ ng-href= '{{issue.assignee.link}}'
|
|
|
|
title= "#{t('layout.issues.assigned_to')} {{issue.assignee.fullname}}" ]
|
|
|
|
img ng-src= '{{issue.assignee.image}}'
|
2014-11-21 12:11:05 +00:00
|
|
|
span.text-muted.roffset5
|
|
|
|
| {{'#' + issue.serial_id}}
|
|
|
|
|
2015-05-05 13:25:29 +01:00
|
|
|
= angularjs_paginate( total_items: "actCtrl.#{kind}_tab.pagination.total_items",
|
|
|
|
page: "actCtrl.#{kind}_tab.pagination.page",
|
2014-11-21 12:11:05 +00:00
|
|
|
per_page: Issue.per_page,
|
2015-05-05 13:25:29 +01:00
|
|
|
select_page: "actCtrl.selectPage('#{kind}', page)" )
|