Project

General

Profile

Edit effort: weekdays background color

Added by Piotr Grondziowski almost 2 years ago

Weekdays in effort matrix could be easily distinguished from working days, by background color. It can be done by small fix in app\views\sprints\edit_effort.html.erb file.
Line 44

              <td style="text-align: center;">

should be replaced by
              <%- we = (@sprint.sprint_start_date + day).wday -%>
              <%- if we == 6 or we == 0 -%>
                <td style="text-align: center; background-color: indianred;">
              <%- else -%>
                <td style="text-align: center;">
              <%- end -%>

Effect: