ecm_time_tracking_backend 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1dfbaf0a212a615c72710a50357857005ed7e29
4
- data.tar.gz: 82757d791b96a9a270242ef5a8c051ccc09213c2
3
+ metadata.gz: d71dd7daacb0594ccce10e177b28f324e6860133
4
+ data.tar.gz: 5a0414bf93282b519a6d174e6f812b7c04bf7dde
5
5
  SHA512:
6
- metadata.gz: 63c697d3852d0d87a76029ecfb83dc9ea31400046f28bb6af5d920adf8f52d671112139e1c407e2c893c58a20bd6f14bebc6dfd1541b00495027227c06da380b
7
- data.tar.gz: f38c713e6880c3694acf74b3d9cfc04a25fea87dec7f50fcb0a41d79470adae9f29799e5906c2ea7c10a9d6d1a6f804f640653d4403e908f6ea521dee84d0fbe
6
+ metadata.gz: a844bb3041196e0587b0857e26aaa9eccd47ff82d430d53539ad671f2353e0c3ae3c85262104ba5c03ba0be11b6f929affc28ae408bf46788f2b7556d229cdc6
7
+ data.tar.gz: 538257f7cb586c7c5c7e67d56b87e938a96f79a9d473c19b0d3d9a9903459bd6d857bdfd26b81f62986b1669a7f027a1a7c9f5682039e14c317b43ec41a1a960
@@ -0,0 +1,10 @@
1
+ .panel.panel-default
2
+ .panel-heading= Ecm::TimeTracking::SumsService.model_name.human
3
+ .table
4
+ - @sums = Ecm::TimeTracking::SumsService.call(entries: @collection)
5
+ = render_resource(@sums, as: :bootstrap_attribute_table) do |table|
6
+ = table.row :overtime do |resource|
7
+ = [resource.overtime / 3600, resource.overtime / 60 % 60, resource.overtime % 60].map { |t| t.to_i.to_s.rjust(2,'0') }.join(':')
8
+ - table.resource.count_by_entry_type.each do |entry_type, count|
9
+ = table.row entry_type.identifier do |r|
10
+ = count
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module TimeTracking
3
3
  module Backend
4
- VERSION = '0.0.3'.freeze
4
+ VERSION = '0.0.4'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_time_tracking_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -45,6 +45,7 @@ files:
45
45
  - app/controllers/ecm/time_tracking/backend/home_controller.rb
46
46
  - app/helpers/ecm/time_tracking/backend/application_helper.rb
47
47
  - app/views/ecm/time_tracking/backend/entries/_form.haml
48
+ - app/views/ecm/time_tracking/backend/entries/_index_extras.haml
48
49
  - app/views/ecm/time_tracking/backend/entries/_show.haml
49
50
  - app/views/ecm/time_tracking/backend/entries/_table.haml
50
51
  - app/views/ecm/time_tracking/backend/entry_types/_form.haml