Skip to content

Commit

Permalink
Rojo cuando sobrepasa espacio
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Jul 11, 2023
1 parent bfe18a8 commit 9e70d57
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/views/msip/hogar/_barra_espacio.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<% color = "blue" %>
<% if t >= ep %>
<% color = "red" %>
<% end %>
<% ancho = t * 200 / ep %>
<div style="display: flex;width:200px; border: 1px solid blue; height: 20px" >
<div style="width: <%= ancho %>px; background-color: blue; height: 18px"></div>
<div style="width: 150px;"></div>
<div style="display: flex;width:200px; border: 1px solid <%= color %>; height: 20px" >
<div style="width: <%= ancho %>px; background-color: <%= color %>; height: 18px"></div>
</div>
<% if defined?(enlace) && enlace %>
<a href="<%= msip.espacio_path %>"><%= Msip::ProcesosHelper.tamhumano(t) %></a>
Expand Down

0 comments on commit 9e70d57

Please sign in to comment.