Defect #23472 » reported_by_me_only_open_issues.patch
| app/helpers/my_helper.rb | ||
|---|---|---|
|
end
|
||
|
def issuesreportedbyme_items
|
||
|
Issue.visible.
|
||
|
Issue.visible.open.
|
||
|
where(:author_id => User.current.id).
|
||
|
limit(10).
|
||
|
includes(:status, :project, :tracker).
|
||
| app/views/my/blocks/_issuesreportedbyme.html.erb | ||
|---|---|---|
|
<% reported_issues = issuesreportedbyme_items %>
|
||
|
<h3>
|
||
|
<%= link_to l(:label_reported_issues),
|
||
|
issues_path(:set_filter => 1, :status_id => '*', :author_id => 'me', :sort => 'updated_on:desc') %>
|
||
|
issues_path(:set_filter => 1, :status_id => 'o', :author_id => 'me', :sort => 'updated_on:desc') %>
|
||
|
(<%= reported_issues.limit(nil).count %>)
|
||
|
</h3>
|
||