tusur_header 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tusur_header/menu_links.rb +6 -3
- data/lib/tusur_header/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4657ce71e37c0baf00d4553b6afc990182f22f3e
|
4
|
+
data.tar.gz: ff0d8975de0a2425fe4a7fce3caf74b888325d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6f8573fc8aa094943644fbe77dbc5863005cb3002603ddb3c79a0a81d1c6be7814a958a74de06b45557e74bf043471685b1c32ed41f17bec6e1a529059a11aa
|
7
|
+
data.tar.gz: 174e6479ef7d6dcbbc9156d0daa45012e374b380d2d0f1030130971365d8d9e5666ee9b5d889627d2b49a587f006d4a3276b03d35e46ac4ceb6494664952161c
|
@@ -58,7 +58,7 @@ module TusurHeader
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def edit_user_url
|
61
|
-
I18n.locale
|
61
|
+
%(#{edit_user_link}/#{ I18n.locale == :ru ? nil : %(#{I18n.locale}/) }users/edit)
|
62
62
|
end
|
63
63
|
|
64
64
|
def sign_out_link
|
@@ -66,7 +66,7 @@ module TusurHeader
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def sign_out_url
|
69
|
-
"#{sign_out_link}/#{I18n.locale}/users/sign_out?redirect_url=#{Settings['app.url']}"
|
69
|
+
"#{sign_out_link}/#{ I18n.locale == :ru ? nil : %(#{I18n.locale}/) }users/sign_out?redirect_url=#{Settings['app.url']}"
|
70
70
|
end
|
71
71
|
|
72
72
|
def links_from_system_infos(key)
|
@@ -89,7 +89,10 @@ module TusurHeader
|
|
89
89
|
end
|
90
90
|
|
91
91
|
urls = []
|
92
|
-
urls << {
|
92
|
+
urls << {
|
93
|
+
title: I18n.t('menu_links.profile'),
|
94
|
+
url: "#{profile_url}/#{ I18n.locale == :ru ? nil : %(#{I18n.locale}/) }dashboard"
|
95
|
+
}
|
93
96
|
if links_from_system_infos('url').any?
|
94
97
|
links_from_system_infos('url').reject{ |elem| elem['link'].blank? }.each do |elem|
|
95
98
|
urls << { title: elem['title'], url: elem['link'] }
|
data/lib/tusur_header/version.rb
CHANGED