Project

General

Profile

Defect #32889 » move_style_from_view_to_css.patch

Marius BĂLTEANU, 2020-01-26 21:59

View differences:

app/helpers/issues_helper.rb
link_to_issue(
child,
:project => (issue.project_id != child.project_id)),
:class => 'subject', :style => 'width: 50%') +
:class => 'subject') +
content_tag('td', h(child.status), :class => 'status') +
content_tag('td', format_date(child.start_date), :class => 'start_date') +
content_tag('td', format_date(child.due_date), :class => 'due_date') +
......
other,
:project => Setting.cross_project_issue_relations?)
}.html_safe,
:class => 'subject',
:style => 'width: 50%') +
:class => 'subject') +
content_tag('td', other_issue.status, :class => 'status') +
content_tag('td', format_date(other_issue.start_date), :class => 'start_date') +
content_tag('td', format_date(other_issue.due_date), :class => 'due_date') +
public/stylesheets/application.css
#issue_tree table.issues, #relations table.issues { border: 0; }
#issue_tree td.checkbox, #relations td.checkbox {display:none;}
#relations td.buttons, #issue_tree td.buttons {padding:0;}
#issue_tree td.subject, #relations td.subject {width: 50%;}
#issue_tree td.buttons, #relations td.buttons {padding:0;}
#trackers_description {display:none;}
#trackers_description dt {font-weight: bold; text-decoration: underline;}
public/stylesheets/responsive.css
}
#issue_tree .issue > td.subject, #relations .issue > td.subject {
width: 100% !important; /* let subject have one full width column */
width: 100%; /* let subject have one full width column */
word-break: break-word; /* break word if subject is too long */
padding-right: 25px; /* this is the spaces that .buttons uses next to subject */
}
#issue_tree .issue > td:not(.checkbox), #relations .issue > td:not(.checkbox) {
#issue_tree .issue > td:not(.subject), #relations .issue > td:not(.subject) {
width: 33.33%; /* three columns for all cells that are not subject */
}
(2-2/5)