Browse Source

fix display of color

main
Christoph Marzell 4 weeks ago
parent
commit
36681fbbd3
  1. 5
      app/views/entries/monthly_report.html.erb

5
app/views/entries/monthly_report.html.erb

@ -1,12 +1,13 @@
<h1 class="mb‑4">Monats‑Report</h1> <h1 class="mb‑4">Monats‑Report</h1>
<% @report.each do |month, groups| %> <% @report.each do |month, groups| %>
<div class="card mb‑4 mt-4">
<% is_current_month = month.month == Date.today.month && month.year == Date.today.year %>
<div class="card mb‑4 mt-4 <%= 'bg-secondary text-white' if is_current_month %>">
<div class="card-header"> <div class="card-header">
<strong><%= month.strftime("%B %Y") %></strong> <strong><%= month.strftime("%B %Y") %></strong>
</div> </div>
<div class="card-body"> <div class="card-body">
<table class="table table‑sm table‑bordered table-striped ">
<table class="table table‑sm table‑bordered table-stripe">
<thead> <thead>
<tr> <tr>
<th style="width: 33%">Typ</th> <th style="width: 33%">Typ</th>

Loading…
Cancel
Save