Permalink
Browse files

Changing task status update

  • Loading branch information...
1 parent d9ae55e commit 7b05133e622cd1008b0587df980c4494cb4a9fe4 Marcin Jędras committed Mar 18, 2010
Showing with 8 additions and 1 deletion.
  1. +5 −0 app/controllers/issue_sprints_controller.rb
  2. +1 −0 config/locales/en.yml
  3. +2 −1 config/locales/pl.yml
@@ -96,10 +96,15 @@ def status_change
@issue_statuses = IssueStatus.find(:all)
@project_users = User.find(:all, :joins => :members, :conditions => ["members.project_id = ?", @project.id])
render :update do |p|
+ p.replace "task_wrap_#{issue.id}", ""
p.insert_html :bottom, "tasks_#{params[:status_id]}_us_#{issue.user_story_id}", :partial => "shared/task_view",
:locals => {:task => issue, :issue_statuses => @issue_statuses,
:project_users => @project_users}
end
+ else
+ render :update do |page|
+ page.insert_html :top, "content", content_tag('div', t(:error_changing_status), :class => "error", :id => "errorExplanation")
+ end
end
end
end
View
@@ -46,3 +46,4 @@ en:
upload_a_diagram: Upload A Diagram
new_diagram: New diagram
unassigned_issues: Unassigned issues
+ error_changing_status: Error while changing status. You may not have persmissions.
View
@@ -44,4 +44,5 @@ pl:
you_have_to_create_sprint_first: Musisz dodać najpierw sprint.
upload_a_diagram: Wgraj diagram
new_diagram: Nowy diagram
- unassigned_issues: Nieprzypisane zadania
+ unassigned_issues: Nieprzypisane zadania
+ error_changing_status: Błąd podczas zmiany statusu. Możesz nie mieć prawa do tej zmiany.

0 comments on commit 7b05133

Please sign in to comment.