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:
parent
5d8200b9fc
commit
77cfc1cc59
|
@ -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
|
||||
|
|
|
@ -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 %>
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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: 変更
|
||||
|
|
|
@ -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: 提交
|
||||
|
|
Loading…
Reference in New Issue