tramway-event 0.7 → 1.0

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
  SHA256:
3
- metadata.gz: 718a0e6f7d6e0f92f69447680d26c7d9c332b1dbfd2ccff67eb6bb7f3611d5e4
4
- data.tar.gz: e5b8dc51139ad155fd6f95c0d64b92d5f0edba270947e37ddab6804a6699406d
3
+ metadata.gz: b68f2d665c0d194880be50bc972c2b6fa2cb47bd3003011422e28b6bd252c86a
4
+ data.tar.gz: 73233cd3ceaecf0e0ccd4e78ad99f56749bc89711dfaee390996cd5e1df8bc6e
5
5
  SHA512:
6
- metadata.gz: f40c748647ca5ea4331feee2c5ac5df6d2b7ed1a61bebaf740cd84f177dc7286d72b95ffd079d072c4b008c20d66088116df9e7950a1bc77c8c64432148081c0
7
- data.tar.gz: 2cffc2d16a51f96213bc484228062a99337b096b382d71671bbb207825b238ddbcaa2b25ad8e48774d89b4025221667b0a572d4e09d47b30e515fa99b65224ce
6
+ metadata.gz: ae4346afafcadd0ff12986f25c2ee6504a695866be09c33e669a872c73319a71dfe896f56c2e14647b11b8101d8bd5a365a9d5d8b5a82c7b369467d3a9f4def8
7
+ data.tar.gz: 1b4dd83e339feb17d46f200821fb2d747337632cce9e0d9928cf80537d1d9b7d1b55167a44729da6613d750c60ae153f288c51fa6ab1c692de6dade84195cc05
@@ -4,4 +4,26 @@ class Tramway::Event::ParticipantDecorator < ::Tramway::Core::ApplicationDecorat
4
4
  [ :all ]
5
5
  end
6
6
  end
7
+
8
+ def title
9
+ first_name = object.values['Фамилия']
10
+ last_name = object.values['Имя']
11
+ patronymic = object.values['Отчество']
12
+ "#{first_name} #{last_name} #{patronymic}"
13
+ end
14
+
15
+ def values
16
+ content_tag :table, class: :table do
17
+ object.values.each do |key, value|
18
+ concat(content_tag(:tr) do
19
+ concat(content_tag(:td) do
20
+ key
21
+ end)
22
+ concat(content_tag(:td) do
23
+ value
24
+ end)
25
+ end)
26
+ end
27
+ end
28
+ end
7
29
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '0.7'
3
+ VERSION = '1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: '1.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-15 00:00:00.000000000 Z
11
+ date: 2018-09-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: