1
0

Narrowed date column

This commit is contained in:
cryptogopher 2019-12-07 00:50:07 +01:00
parent e7ede4cce6
commit 9268b2dcc1
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<table class="list">
<thead>
<tr>
<th><%= l(:field_taken_at_date) %></th>
<th style="width:5%"><%= l(:field_taken_at_date) %></th>
<th><%= l(:field_name) %></th>
<th><%= l(:field_source) %></th>
<th style="width:10%"><%= l(:field_action) %></th>
@ -12,7 +12,9 @@
<% @measurements.each do |m| %>
<% next if m.new_record? %>
<tr id="measurement-<%= m.id %>" class="measurement <%= 'hidden' if m.hidden %>">
<td class="date"><%= m.taken_at.getlocal.strftime("%F %R") %></td>
<td class="date">
<%= m.taken_at.getlocal.strftime("%F <small>%R</small>").html_safe %>
</td>
<td class="name">
<div style="float:left;"><%= m.name %></div>
<div style="float:right;">

View File

@ -5,6 +5,7 @@ table.nutrients.list td.space {border-top: none; border-bottom: none;}
table.nutrients.list td.value {border-top: none;}
table.list tr.ingredient.hidden {opacity: 0.4}
table.list td.action,
table.list td.date,
table.list td.name {white-space: nowrap;}
table.list td.action,
table.list td.value {text-align: right;}