Skip to content

Commit

Permalink
placing pause status at time_tracker index action. Issue #42
Browse files Browse the repository at this point in the history
  • Loading branch information
Otávio de Freitas e Castro Sampaio committed Feb 10, 2011
1 parent 2920746 commit 915bf6b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/time_trackers/index.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<th class="issue"><%= l(:label_issue) %></th>
<th class="start-date"><%= l(:time_tracker_label_start_date) %></th>
<th class="spent-time"><%= l(:label_spent_time) %></th>
<th class="paused-status"><%= l(:time_tracker_label_paused_status) %></th>
<th class="buttons"><%= l(:time_tracker_label_action) %></th>
</tr>
</thead>
Expand All @@ -30,6 +31,7 @@
<td class="issue"><%= link_to_issue issue_from_id(time_tracker[:issue_id]), :project => true %></td>
<td class="start-date"><%= format_time(time_tracker[:started_on]) %></td>
<td class="spent-time"><%= time_tracker.time_spent_to_s %></td>
<td class="paused_status"><%= time_tracker.paused? %></td>
<td class="buttons">
<%= link_to_remote l(:time_tracker_label_delete),
:url => { :controller => 'time_trackers', :action => 'delete', :id => time_tracker.id },
Expand Down Expand Up @@ -61,6 +63,7 @@
<th class="issue"><%= l(:label_issue) %></th>
<th class="start-date"><%= l(:time_tracker_label_start_date) %></th>
<th class="spent-time"><%= l(:label_spent_time) %></th>
<th class="paused-status"><%= l(:time_tracker_label_paused_status) %></th>
<th class="buttons"><%= l(:time_tracker_label_action) %></th>
</tr>
</thead>
Expand All @@ -78,6 +81,7 @@
<td class="issue"><%= link_to_issue issue_from_id(time_tracker[:issue_id]), :project => true %></td>
<td class="start-date"><%= format_time(time_tracker[:started_on]) %></td>
<td class="spent-time"><%= time_tracker.time_spent_to_s %></td>
<td class="paused-status"><%= time_tracker.paused? %></td>
<td class="buttons">
<% if User.current.allowed_to?(:delete_others_time_trackers, nil, :global => true) %>
<%= link_to_remote l(:time_tracker_label_delete),
Expand Down
1 change: 1 addition & 0 deletions assets/stylesheets/time_tracker.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#time-tracker-admin td.start-date,
#time-tracker-admin td.spent-time,
#time-tracker-admin td.paused-status,
#time-tracker-admin td.msg {
text-align: center;
}
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ en:
time_tracker_label_action: "Action"
time_tracker_label_delete: "Delete"
time_tracker_label_start_date: "Start date"
time_tracker_label_paused_status: "Paused?"
time_tracker_label_transition_journal: "Status transition applied automatically due to the start of a time tracker."
time_tracker_label_your_time_trackers: "Your time tracker"
time_tracker_label_other_time_trackers: "Other user's time trackers"
Expand Down
1 change: 1 addition & 0 deletions config/locales/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pt:
time_tracker_admin_menu: "Time trackers"
time_tracker_admin_title: "Time trackers"
time_tracker_label_start_date: "Data inicial"
time_tracker_label_paused_status: "Pausado?"
time_tracker_label_action: "Acção"
time_tracker_label_delete: "Eliminar"
time_tracker_delete_success: "Time tracker eliminado com sucesso"
Expand Down

0 comments on commit 915bf6b

Please sign in to comment.