Colouring flow strokes.
This commit is contained in:
parent
3be93ade78
commit
1144b9b7f4
|
@ -13,7 +13,7 @@
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="400" height="744">
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="400" height="744">
|
||||||
<g fill-opacity="0.2" stroke="black" stroke-opacity="0.5">
|
<g fill-opacity="0.2" stroke-opacity="0.5">
|
||||||
<% @status_changes.each do |status_change| %>
|
<% @status_changes.each do |status_change| %>
|
||||||
<%
|
<%
|
||||||
changes_count = [status_change["changes_count"].to_i,40].min
|
changes_count = [status_change["changes_count"].to_i,40].min
|
||||||
|
@ -38,6 +38,7 @@
|
||||||
<polygon
|
<polygon
|
||||||
points="<%= x1a %>,<%= y1a %> <%= x1b %>,<%= y1b %> <%= x2 %>,<%= y2 %>"
|
points="<%= x1a %>,<%= y1a %> <%= x1b %>,<%= y1b %> <%= x2 %>,<%= y2 %>"
|
||||||
fill="<%= issue_statuses_by_id[old_status].position > issue_statuses_by_id[new_status].position ? "red" : "green" %>"
|
fill="<%= issue_statuses_by_id[old_status].position > issue_statuses_by_id[new_status].position ? "red" : "green" %>"
|
||||||
|
stroke="<%= issue_statuses_by_id[old_status].position > issue_statuses_by_id[new_status].position ? "red" : "green" %>"
|
||||||
/>
|
/>
|
||||||
<% end %>
|
<% end %>
|
||||||
</g>
|
</g>
|
||||||
|
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue
Block a user