tramway-profiles 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/helpers/tramway/profiles/links_helper.rb +9 -9
- data/lib/tramway/profiles/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1c5b65d8c3a9a102de035b61a5ee957d6c14eb780f6e5487163f9e57da4457f
|
|
4
|
+
data.tar.gz: 1570708447a4140558a4a99e34729cf491fafbb2fc8ccacc3152017bbd0a517c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34569404cfee8292f9b7b8b7a724ba1dacc1af90c3723a55b8d98944b34785ac2c3439c94b23734bff7ddb548c9050b46546da8b57bc64816c980979ef57a79c
|
|
7
|
+
data.tar.gz: 2ab21dd4b388c5b6ea8085d5523db491f2e92156e11436b8ebfe17188764f91d72cd363a9cb0b181930fe8f0605c889e8837976082e29bb9695a8350b994d279
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
module Tramway::Profiles::LinksHelper
|
|
2
2
|
def profile_link(profile)
|
|
3
|
-
send profile.network_name, profile.uid
|
|
3
|
+
send profile.network_name, profile.uid, profile.title
|
|
4
4
|
end
|
|
5
5
|
|
|
6
6
|
private
|
|
7
7
|
|
|
8
|
-
def vk(uid)
|
|
9
|
-
profile_link_template
|
|
8
|
+
def vk(uid, title)
|
|
9
|
+
profile_link_template title, "https://vk.com/#{uid}", :vk
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def facebook(uid)
|
|
13
|
-
profile_link_template
|
|
12
|
+
def facebook(uid, title)
|
|
13
|
+
profile_link_template title, "https://facebook.com/#{uid}", :facebook
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def twitter(uid)
|
|
17
|
-
profile_link_template
|
|
16
|
+
def twitter(uid, title)
|
|
17
|
+
profile_link_template title, "https://twitter.com/#{uid}", :twitter
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def profile_link_template(
|
|
20
|
+
def profile_link_template(title, link, icon)
|
|
21
21
|
link_to link, target: '_blank' do
|
|
22
22
|
concat fa_icon icon
|
|
23
23
|
concat ' '
|
|
24
|
-
concat
|
|
24
|
+
concat title
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
end
|