Defect #15777 » watched_issue_my_page_block.diff
| app/helpers/my_helper.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
def issueswatched_items
|
||
|
Issue.visible.on_active_project.watched_by(User.current.id).recently_updated.limit(10).to_a
|
||
|
Issue.visible.open.on_active_project.watched_by(User.current.id).recently_updated.limit(10).to_a
|
||
|
end
|
||
|
def news_items
|
||
| app/views/my/blocks/_issueswatched.html.erb (working copy) | ||
|---|---|---|
|
<h3>
|
||
|
<%= link_to l(:label_watched_issues),
|
||
|
issues_path(:set_filter => 1, :watcher_id => 'me', :sort => 'updated_on:desc') %>
|
||
|
(<%= Issue.visible.watched_by(user.id).count %>)
|
||
|
(<%= Issue.visible.open.watched_by(user.id).count %>)
|
||
|
</h3>
|
||
|
<% watched_issues = issueswatched_items %>
|
||