Skip to content

Commit

Permalink
最近の記録を下にしてみた
Browse files Browse the repository at this point in the history
  • Loading branch information
eiel committed Feb 12, 2014
1 parent cc5a597 commit ebd54ef
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions app/views/records/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
%h1 記録する
.row
%h1 記録する
= render 'form'

%table.table
%tr
%th 日付
%th 体重
%th コメント
%th 目標まで

- @records.reverse_each do |record|
.row
%h1 最近の記録
%table.table
%tr
%td=l record.target_date
%td= show_weight record.weight
%td= record.comment
%td= "あと#{show_weight record.to_goal}kg"
%th 日付
%th 体重
%th コメント
%th 目標まで

= render 'form'
- @records.each do |record|
%tr
%td=l record.target_date
%td= show_weight record.weight
%td= record.comment
%td= "あと#{show_weight record.to_goal}kg"

0 comments on commit ebd54ef

Please sign in to comment.