BS3: cleanup

This commit is contained in:
Ilya Konanykhin
2016-12-27 09:53:47 +06:00
parent 9bb5190c4d
commit b503ec6fbd
9 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
- @user_time_entries.each do |entry|
-# data: {start_date: ..} gets transformed to data-start-date instead of data-start_date, we don't want this
%tr{data: {id: entry.id, description: entry.description, duration: entry.duration_in_hours},
"data-start_date" => entry.start_date.to_date.to_formatted_s(:rfc822)}
'data-start_date' => entry.start_date.to_date.to_formatted_s(:rfc822)}
%td= entry.start_date.to_date.to_formatted_s(:rfc822)
%td= entry.duration_in_hours
%td= entry.type
+1 -1
View File
@@ -53,4 +53,4 @@
.control-group
.controls
= button_tag 'Add Time Entry', id: 'add_time_entry_submit', class: 'btn btn-primary', data: {url: "#{api_create_time_entry_path}", forward: "#{"."}"}
= button_tag 'Add Time Entry', id: 'add_time_entry_submit', class: 'btn btn-primary', data: {url: api_create_time_entry_path, forward: '.'}