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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b68f2d665c0d194880be50bc972c2b6fa2cb47bd3003011422e28b6bd252c86a
|
4
|
+
data.tar.gz: 73233cd3ceaecf0e0ccd4e78ad99f56749bc89711dfaee390996cd5e1df8bc6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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-
|
11
|
+
date: 2018-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for events
|
14
14
|
email:
|