diff --git a/app/views/user_stories/_us_for_show.html.erb b/app/views/user_stories/_us_for_show.html.erb index 8767db4..3640437 100755 --- a/app/views/user_stories/_us_for_show.html.erb +++ b/app/views/user_stories/_us_for_show.html.erb @@ -1,14 +1,14 @@ - - <%= link_to image_tag("/plugin_assets/redmine_sprints/images/task_add.png")+" "+l('add_task'), - {:controller => 'issue_sprints',:action => 'new', :project_id => @project, :user_story_id => user_story.id}, - {:id => "new_us", :title => l('new_task'), - :onclick => "Modalbox.show(this.href, {title: this.title, width: 900, height: 500}); return false;", + + <%= link_to image_tag("/plugin_assets/redmine_sprints/images/task_add.png")+" "+l('add_task'), + {:controller => 'issue_sprints',:action => 'new', :project_id => @project, :user_story_id => user_story.id}, + {:id => "new_us", :title => l('new_task'), + :onclick => "Modalbox.show(this.href, {title: this.title, width: 900, height: 500}); return false;", :style => "float:right;padding:3px;", :remote => true} - %> - - <%#= link_to_remote image_tag("/plugin_assets/redmine_sprints/images/task_add.png")+" "+l('add_task'), + %> + + <%#= link_to_remote image_tag("/plugin_assets/redmine_sprints/images/task_add.png")+" "+l('add_task'), :url => {:controller => 'issues',:action => 'new', :project_id => @project, :user_story_id => user_story.id}, :complete => "Modalbox.show($('hidden_item'), {title: this.title, width: 900, height: 500}); return false;", :update => "hidden_item", @@ -32,6 +32,11 @@ %> + + + <%= t("spent_hours") %>: <%= sprintf("%.2f", user_story.total_assigned_hours) %> + + <%= user_story.description -%>