issues table header
This commit is contained in:
parent
c07d3dfc04
commit
60f083ad61
|
@ -1,7 +1,3 @@
|
||||||
%table.round-borders#issues-table
|
|
||||||
%thead
|
|
||||||
%th Issues
|
|
||||||
|
|
||||||
- @issues.critical.each do |issue|
|
- @issues.critical.each do |issue|
|
||||||
= render(:partial => 'show', :locals => {:issue => issue})
|
= render(:partial => 'show', :locals => {:issue => issue})
|
||||||
|
|
||||||
|
|
|
@ -27,23 +27,3 @@
|
||||||
= link_to 'Edit', edit_project_issue_path(@project, issue), :class => "cgray", :remote => true
|
= link_to 'Edit', edit_project_issue_path(@project, issue), :class => "cgray", :remote => true
|
||||||
- if can?(current_user, :admin_issue, @project) || issue.author == current_user
|
- if can?(current_user, :admin_issue, @project) || issue.author == current_user
|
||||||
= link_to 'Destroy', [@project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-issue negative", :id => "destroy_issue_#{issue.id}"
|
= link_to 'Destroy', [@project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-issue negative", :id => "destroy_issue_#{issue.id}"
|
||||||
-#%td ##{issue.id}
|
|
||||||
-#%td
|
|
||||||
= truncate(html_escape(issue.title), :length => 200)
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
|
|
||||||
|
|
||||||
-#- if issue.author == current_user
|
|
||||||
-#%span.tag.yours yours
|
|
||||||
-#- if issue.notes.count > 0
|
|
||||||
-#%span.tag.notes
|
|
||||||
-#= issue.notes.count
|
|
||||||
-#notes
|
|
||||||
-#%td
|
|
||||||
- if can? current_user, :write_issue, @project
|
|
||||||
= form_for([@project, issue], :remote => true) do |f|
|
|
||||||
= f.check_box :closed, :onclick => "$(this).parent().submit();"
|
|
||||||
= hidden_field_tag :status_only, true
|
|
||||||
- else
|
|
||||||
= check_box_tag "closed", 1, issue.closed, :disabled => true
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
%div
|
%div#issues-table-holder
|
||||||
|
%table.round-borders#issues-table
|
||||||
|
%thead
|
||||||
|
%th
|
||||||
.top_panel_issues
|
.top_panel_issues
|
||||||
- if can? current_user, :write_issue, @project
|
- if can? current_user, :write_issue, @project
|
||||||
%div{:class => "left", :style => "margin-right: 10px;" }
|
%div{:class => "left", :style => "margin-right: 10px;" }
|
||||||
|
@ -22,7 +25,7 @@
|
||||||
= radio_button_tag :f, 1, params[:f] == "1", :onclick => "this.form.submit()", :id => "all_issues", :class => "status"
|
= radio_button_tag :f, 1, params[:f] == "1", :onclick => "this.form.submit()", :id => "all_issues", :class => "status"
|
||||||
= label_tag "all_issues","All"
|
= label_tag "all_issues","All"
|
||||||
|
|
||||||
#issues-table-holder= render "issues"
|
= render "issues"
|
||||||
%br
|
%br
|
||||||
:javascript
|
:javascript
|
||||||
var href = $('.issue_search').parent().attr('action');
|
var href = $('.issue_search').parent().attr('action');
|
||||||
|
@ -37,7 +40,7 @@
|
||||||
|
|
||||||
if (terms.length >= 2 || terms.length == 0) {
|
if (terms.length >= 2 || terms.length == 0) {
|
||||||
$.get(href, { 'status': status, 'terms': terms, project: project_id }, function(response) {
|
$.get(href, { 'status': status, 'terms': terms, project: project_id }, function(response) {
|
||||||
$('#issues-table').html(response);
|
$('#issues-table tbody').html(response);
|
||||||
setSortable();
|
setSortable();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
:plain
|
:plain
|
||||||
$('#issues-table-holder').html("#{escape_javascript(render('issues'))}");
|
$('#issues-table tbody').html("#{escape_javascript(render('issues'))}");
|
||||||
setSortable();
|
setSortable();
|
||||||
|
|
Loading…
Reference in a new issue