Narrowed date column
This commit is contained in:
parent
e7ede4cce6
commit
9268b2dcc1
@ -2,7 +2,7 @@
|
|||||||
<table class="list">
|
<table class="list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<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_name) %></th>
|
||||||
<th><%= l(:field_source) %></th>
|
<th><%= l(:field_source) %></th>
|
||||||
<th style="width:10%"><%= l(:field_action) %></th>
|
<th style="width:10%"><%= l(:field_action) %></th>
|
||||||
@ -12,7 +12,9 @@
|
|||||||
<% @measurements.each do |m| %>
|
<% @measurements.each do |m| %>
|
||||||
<% next if m.new_record? %>
|
<% next if m.new_record? %>
|
||||||
<tr id="measurement-<%= m.id %>" class="measurement <%= 'hidden' if m.hidden %>">
|
<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">
|
<td class="name">
|
||||||
<div style="float:left;"><%= m.name %></div>
|
<div style="float:left;"><%= m.name %></div>
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
|
@ -5,6 +5,7 @@ table.nutrients.list td.space {border-top: none; border-bottom: none;}
|
|||||||
table.nutrients.list td.value {border-top: none;}
|
table.nutrients.list td.value {border-top: none;}
|
||||||
table.list tr.ingredient.hidden {opacity: 0.4}
|
table.list tr.ingredient.hidden {opacity: 0.4}
|
||||||
table.list td.action,
|
table.list td.action,
|
||||||
|
table.list td.date,
|
||||||
table.list td.name {white-space: nowrap;}
|
table.list td.name {white-space: nowrap;}
|
||||||
table.list td.action,
|
table.list td.action,
|
||||||
table.list td.value {text-align: right;}
|
table.list td.value {text-align: right;}
|
||||||
|
Reference in New Issue
Block a user