Added a new block available for my page: "Watched issues"

git-svn-id: http://redmine.rubyforge.org/svn/trunk@456 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-04-21 12:28:22 +00:00
parent 5d8200b9fc
commit 77cfc1cc59
9 changed files with 18 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class MyController < ApplicationController
BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues,
'issuesreportedbyme' => :label_reported_issues,
'issueswatched' => :label_watched_issues,
'news' => :label_news_latest,
'calendar' => :label_calendar,
'documents' => :label_document_plural

View File

@ -0,0 +1,10 @@
<h3><%=l(:label_watched_issues)%></h3>
<% watched_issues = Issue.find(:all,
:include => [:status, :project, :tracker, :watchers],
:limit => 10,
:conditions => ["#{Watcher.table_name}.user_id = ?", user.id],
:order => "#{Issue.table_name}.updated_on DESC") %>
<%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %>
<% if watched_issues.length > 0 %>
<p><%=lwr(:label_last_updates, watched_issues.length)%></p>
<% end %>

View File

@ -357,6 +357,7 @@ label_diff_side_by_side: side by side
label_options: Options
label_copy_workflow_from: Copy workflow from
label_permissions_report: Permissions report
label_watched_issues: Watched issues
button_login: Einloggen
button_submit: OK

View File

@ -357,6 +357,7 @@ label_diff_side_by_side: side by side
label_options: Options
label_copy_workflow_from: Copy workflow from
label_permissions_report: Permissions report
label_watched_issues: Watched issues
button_login: Login
button_submit: Submit

View File

@ -357,6 +357,7 @@ label_diff_side_by_side: side by side
label_options: Options
label_copy_workflow_from: Copy workflow from
label_permissions_report: Permissions report
label_watched_issues: Watched issues
button_login: Conexión
button_submit: Someter

View File

@ -357,6 +357,7 @@ label_diff_side_by_side: côte à côte
label_options: Options
label_copy_workflow_from: Copier le workflow de
label_permissions_report: Synthèse des permissions
label_watched_issues: Demandes surveillées
button_login: Connexion
button_submit: Soumettre

View File

@ -357,6 +357,7 @@ label_diff_side_by_side: side by side
label_options: Options
label_copy_workflow_from: Copy workflow from
label_permissions_report: Permissions report
label_watched_issues: Watched issues
button_login: Login
button_submit: Invia

View File

@ -358,6 +358,7 @@ label_diff_side_by_side: 横に並べる
label_options: オプション
label_copy_workflow_from: ワークフローをここからコピー
label_permissions_report: 権限レポート
label_watched_issues: Watched issues
button_login: ログイン
button_submit: 変更

View File

@ -360,6 +360,7 @@ label_diff_side_by_side: side by side
label_options: Options
label_copy_workflow_from: Copy workflow from
label_permissions_report: Permissions report
label_watched_issues: Watched issues
button_login: 登录
button_submit: 提交