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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5af34bb4965438c94cc96bbfb6d371b4f93c5f06
4
- data.tar.gz: 276d3b0ad6646df97e2720c673b24c27cb8f8b4c
3
+ metadata.gz: 4657ce71e37c0baf00d4553b6afc990182f22f3e
4
+ data.tar.gz: ff0d8975de0a2425fe4a7fce3caf74b888325d2b
5
5
  SHA512:
6
- metadata.gz: 7d370be982361995bcfae9fe673f0364e1d1825bdd1616ef323ca9fcb51e994fcebc366d91d688bf1ab1c66d2660e043baeb3ad8dae03043bb6c4f392f66c82a
7
- data.tar.gz: e84fdc49c481ba90b99556e10b7ac44b2440ff6a9aaea8e14fc0aa1e82003247426916552ed18b122d4f38c976393780ef3f87c11c29e85e0e86fc93443b01e0
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 != :ru ? %(#{edit_user_link}/#{I18n.locale}/users/edit) : %(#{edit_user_link}/users/edit)
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 << { title: I18n.t('menu_links.profile'), url: "#{profile_url}/#{I18n.locale}/dashboard" }
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'] }
@@ -1,3 +1,3 @@
1
1
  module TusurHeader
2
- VERSION = '0.2.12'
2
+ VERSION = '0.2.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tusur_header
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Lapin