Project

General

Profile

Patch #217 » open_issues_view.diff

Peer Allan, 2008-02-03 11:00

View differences:

app/controllers/my_controller.rb (working copy)
20 20
  before_filter :require_login
21 21

  
22 22
  BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues,
23
             'issuesassignedtome_open' => :label_open_assigned_to_me_issues,
23 24
             'issuesreportedbyme' => :label_reported_issues,
24 25
             'news' => :label_news_latest,
25 26
             'calendar' => :label_calendar,
app/views/my/blocks/_issuesassignedtome_open.rhtml (revision 0)
1
<h3><%=l(:label_open_assigned_to_me_issues)%></h3>
2
<% assigned_issues = Issue.find(:all, 
3
                                :conditions => ["assigned_to_id=? AND #{IssueStatus.table_name}.is_closed=#{ActiveRecord::Base.connection.quoted_false}", user.id],
4
                                :include => [ :status, :project, :tracker, :priority ], 
5
                                :order => "#{Enumeration.table_name}.id DESC, #{Issue.table_name}.updated_on DESC") %>
6
<%= render :partial => 'issues/list_detail', :locals => { :issues => assigned_issues } %>
7
<% if assigned_issues.length > 0 %>
8
<p><%=lwr(:label_last_updates, assigned_issues.length)%></p>
9
<% end %>
10

  
app/views/issues/_list_detail.rhtml (revision 0)
1
<% if issues.length > 0 %>
2
	<table class="list">		
3
		<thead><tr>
4
		<th>#</th>
5
		<th><%=l(:field_tracker)%></th>
6
		<th><%=l(:field_priority)%></th>
7
		<th><%=l(:field_due_date)%></th>
8
		<th><%=l(:field_subject)%></th>
9
		<th><%=l(:field_status)%></th>
10
		<th><%=l(:field_project)%></th>
11
		</tr></thead>
12
		<tbody>	
13
		<% for issue in issues %>
14
		<tr class="<%= cycle("odd", "even") %>">
15
			<th align="center">
16
				<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
17
			</th>
18
			<td><p class="small"><%= issue.tracker.name %></p></td>
19
			<td><p class="small"><%= issue.priority.name %></p></td>
20
			<td><p class="small"><%= format_date(issue.due_date) %></p></td>
21
			<td>
22
                <p class="small"><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></p>
23
            </td>
24
			<td><p class="small"><%= issue.status.name %> - <%= format_time(issue.updated_on) %></p></td>
25
			<td>
26
                <p class="small"><%= link_to h(issue.project.name), :controller => 'project', :action => 'show', :id => issue.project.id %></p>
27
            </td>
28
		</tr>
29
		<% end %>
30
		</tbody>
31
	</table>
32
<% else %>
33
	<i><%=l(:label_no_data)%></i>
34
<% end %>
lang/en.yml (working copy)
213 213
label_help: Help
214 214
label_reported_issues: Reported issues
215 215
label_assigned_to_me_issues: Issues assigned to me
216
label_open_assigned_to_me_issues: Open Issues assigned to me
216 217
label_last_login: Last connection
217 218
label_last_updates: Last updated
218 219
label_last_updates_plural: %d last updated
lang/es.yml (working copy)
213 213
label_help: Ayuda
214 214
label_reported_issues: Peticiones registradas
215 215
label_assigned_to_me_issues: Peticiones que me están asignadas
216
label_open_assigned_to_me_issues: Open Issues assigned to me
216 217
label_last_login: Última conexión
217 218
label_last_updates: Actualizado
218 219
label_last_updates_plural: %d Actualizados
lang/fr.yml (working copy)
213 213
label_help: Aide
214 214
label_reported_issues: Demandes soumises
215 215
label_assigned_to_me_issues: Demandes qui me sont assignées
216
label_open_assigned_to_me_issues: Open Issues assigned to me
216 217
label_last_login: Dernière connexion
217 218
label_last_updates: Dernière mise à jour
218 219
label_last_updates_plural: %d dernières mises à jour
lang/de.yml (working copy)
213 213
label_help: Hilfe
214 214
label_reported_issues: Gemeldete Tickets
215 215
label_assigned_to_me_issues: Mir zugewiesen
216
label_open_assigned_to_me_issues: Open Issues assigned to me
216 217
label_last_login: Letzte Anmeldung
217 218
label_last_updates: zuletzt aktualisiert
218 219
label_last_updates_plural: %d zuletzt aktualisierten
lang/ja.yml (working copy)
214 214
label_help: ヘルプ
215 215
label_reported_issues: 報告されている問題
216 216
label_assigned_to_me_issues: 担当している問題
217
label_open_assigned_to_me_issues: Open Issues assigned to me
217 218
label_last_login: 最近の接続
218 219
label_last_updates: 最近の更新 1 件
219 220
label_last_updates_plural: 最近の更新 %d 件
lang/it.yml (working copy)
213 213
label_help: Aiuto
214 214
label_reported_issues: Contesti segnalati
215 215
label_assigned_to_me_issues: I miei contesti
216
label_open_assigned_to_me_issues: Open Issues assigned to me
216 217
label_last_login: Ultimo collegamento
217 218
label_last_updates: Ultimo aggiornamento
218 219
label_last_updates_plural: %d ultimo aggiornamento
    (1-1/1)