Remove critical status from Issue. Move sort instead

This commit is contained in:
Dmitriy Zaporozhets 2012-06-27 21:30:35 +03:00
parent 1b1e77c728
commit 50fdb2e7df
12 changed files with 30 additions and 65 deletions

View file

@ -3,15 +3,6 @@
%small (assigned to you)
%small.right #{@issues.total_count} issues
%br
.issues_legend
.list_legend
.icon.critical
.text Critical
.list_legend
.icon.today
.text Today
.clearfix
- if @issues.any?
- @issues.group_by(&:project).each do |group|

View file

@ -9,37 +9,37 @@
.issue_form_box
.issue_title
.clearfix
= f.label :title, "Issue Subject *"
= f.label :title do
%strong= "Subject *"
.input
= f.text_field :title, :maxlength => 255, :class => "xxlarge"
.issue_middle_block
.issue_assignee
= f.label :assignee_id, "Assign to"
.input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Assign to user" })
= f.label :assignee_id do
%i.icon-user
Assign to
.input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select a user" })
.issue_milestone
= f.label :milestone_id
= f.label :milestone_id do
%i.icon-time
Milestone
.input= f.select(:milestone_id, @project.milestones.active.all.collect {|p| [ p.title, p.id ] }, { :include_blank => "Select milestone" })
.issue_description
.clearfix
= f.label :critical, "Critical"
.input= f.check_box :critical
= f.label :label_list do
%i.icon-tag
Labels
.input
= f.text_field :label_list, :maxlength => 2000, :class => "xxlarge"
%p.hint Separate with comma.
- unless @issue.new_record?
.clearfix
= f.label :closed
.input= f.check_box :closed
.clearfix
= f.label :description, "Issue Details"
= f.label :description, "Details"
.input
= f.text_area :description, :maxlength => 2000, :class => "xxlarge", :rows => 14
%p.hint Markdown is enabled.
.clearfix
= f.label :label_list, "Labels"
.input
= f.text_field :label_list, :maxlength => 2000, :class => "xxlarge"
%p.hint Separate with comma.
.actions
- if @issue.new_record?

View file

@ -1,7 +1,4 @@
- @issues.select(&:critical).each do |issue|
= render(:partial => 'issues/show', :locals => {:issue => issue})
- @issues.reject(&:critical).each do |issue|
- @issues.each do |issue|
= render(:partial => 'issues/show', :locals => {:issue => issue})
- if @issues.present?

View file

@ -13,22 +13,7 @@
= hidden_field_tag :status, params[:f]
= search_field_tag :issue_search, nil, { :placeholder => 'Search', :class => 'issue_search span3 right neib' }
%br
.issues_legend
.list_legend
.icon.today
.text Today
.list_legend
.icon.critical
.text Critical
.list_legend
.icon.closed
.text Closed
.clearfix
%div#issues-table-holder.ui-box
.title
.left