Skip to content

Commit

Permalink
#7 checking for permissions and added caption
Browse files Browse the repository at this point in the history
  • Loading branch information
nutso committed Dec 29, 2013
1 parent 95f33cd commit 71a0a53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/issues/_show_recurrence.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
<% issue.recurring_tasks.each do |rt| %>
<%= link_to(rt.to_s, {:action => 'show', :id => rt.id}) %><br /></td>
<% end %>
<% else %>
<% elsif User.current.allowed_to?(:add_issue_recurrence, project) %>
<%= link_to(l(:label_add_recurring_task), new_recurring_task_path(:issue_id => issue.id, :project_id => project.id), :class => 'icon icon-add') %>
<% else %>
<%= l(:label_no_recurrence)%>
<% end %>
</td>
</tr>
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ en:
label_add_recurring_task: "Add Recurring Task"
label_no_recurring_tasks: "No recurring tasks found on the system."
label_next_scheduled_run: "Next scheduled run"
label_no_recurrence: "No recurrence."

label_recurs_fixed: "on a fixed schedule"
label_recurs_dependent: "after previous task completion"
Expand All @@ -22,6 +23,7 @@ en:
field_interval_number: "Interval number"
field_interval_unit: "Interval Unit(s)"
field_fixed_schedule: "Fixed Schedule?"
field_recurrence: "Recurrence"

interval_day: "day"
interval_week: "week"
Expand Down

0 comments on commit 71a0a53

Please sign in to comment.