summaryrefslogtreecommitdiffstats
path: root/app/views/my/blocks/_issueswatched.html.erb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 10:44:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 10:44:21 +0000
commit67fc58567146ab20957fc748762962246633af07 (patch)
tree0f6fa7738f011dadf1e7ba331e4e416e21c4dc3c /app/views/my/blocks/_issueswatched.html.erb
parentb2219b3269d20af79615a0e699c6efcfbf9e8b24 (diff)
downloadredmine-67fc58567146ab20957fc748762962246633af07.tar.gz
redmine-67fc58567146ab20957fc748762962246633af07.zip
rename .rhtml to .html.erb of app/views/my/blocks/_issueswatched.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6969 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my/blocks/_issueswatched.html.erb')
-rw-r--r--app/views/my/blocks/_issueswatched.html.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/my/blocks/_issueswatched.html.erb b/app/views/my/blocks/_issueswatched.html.erb
new file mode 100644
index 000000000..e48ec1662
--- /dev/null
+++ b/app/views/my/blocks/_issueswatched.html.erb
@@ -0,0 +1,11 @@
+<h3><%=l(:label_watched_issues)%> (<%= Issue.visible.watched_by(user.id).count %>)</h3>
+<% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated.with_limit(10) %>
+
+<%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %>
+<% if watched_issues.length > 0 %>
+<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues',
+ :action => 'index',
+ :set_filter => 1,
+ :watcher_id => 'me',
+ :sort => 'updated_on:desc' %></p>
+<% end %>