wiser_timezone 0.1.5 → 0.1.6
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 +8 -8
- data/README.md +1 -1
- data/app/assets/javascripts/wiser_timezone.js +5 -3
- data/app/assets/stylesheets/wiser_timezone.css +1 -1
- data/app/controllers/wiser_timezone/wiser_timezone_controller.rb +1 -5
- data/app/helpers/wiser_timezone/wiser_timezone_helper.rb +2 -2
- data/lib/wiser_timezone/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NWZlN2E3ODkzZjQwYTVhNGQzZWIwYmUyNjM5NzBjN2EyOWRjYTVjNQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ODdjNWRmOWMyNTIzNjY2NDNkMzNmMTRjMWE0NGM5YTgwNWQxNzcyOQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YTIxYWNhODY0ZGNiMzg5N2U3M2ZhMWU1YTRlMjA2YWM3MTNlMDg4OTAxYjBm
|
|
10
|
+
ZjdhMGE1NmFlZDc1ZjZlY2MyMWUxMzcyZDE0NzAyODY1NGU2NDE4MDk5NmU1
|
|
11
|
+
MmM0ZmVjMDA3YTMyYWY2NjgzZWM5MzMzMGIxMTk1NWFjY2NiZjU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MzU4ODdhNGQ3ZDkxNjlmZGJlODE1YmQwZTkzM2I1YzBiNDU3OWZlOWE0N2Ey
|
|
14
|
+
Y2Q4NDFmZmNhMDlkMmI3MzcwNjcyMmE0ZWY2ODBiY2MxNjE2NTcyMzAzNTA5
|
|
15
|
+
M2Q1OTk5OTA1ZDAwYmI4OTUyNDI0OWQwZDkzZmY4NmRjNzlhYmI=
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ You can do normal gem installation for `wiser_timezone` from your terminal:
|
|
|
16
16
|
|
|
17
17
|
or add this line in your Gemfile:
|
|
18
18
|
|
|
19
|
-
gem 'wiser_timezone', '~> 0.1.
|
|
19
|
+
gem 'wiser_timezone', '~> 0.1.5'
|
|
20
20
|
|
|
21
21
|
Be sure to restart your application if it is already running.
|
|
22
22
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
$(document).ready(function(){
|
|
2
|
-
|
|
2
|
+
if($('#wiser_timezone_container').hasClass('no_user')){
|
|
3
|
+
$('#wiser_timezone_container #wiser_timezone_link')[0].click()
|
|
4
|
+
}else{
|
|
5
|
+
wiser_timezone_reload();
|
|
6
|
+
}
|
|
3
7
|
$(window).resize()
|
|
4
8
|
});
|
|
5
9
|
|
|
@@ -7,8 +11,6 @@ $(window).resize(function(){
|
|
|
7
11
|
if($('#wiser_timezone_container').is(':visible')){
|
|
8
12
|
if(!$('#wiser_timezone_container').hasClass('force'))
|
|
9
13
|
$('html').css('margin-top', $('#wiser_timezone_container').height() + 'px')
|
|
10
|
-
if($('#wiser_timezone_container').hasClass('no_user'))
|
|
11
|
-
$('#wiser_timezone_container #wiser_timezone_link')[0].click()
|
|
12
14
|
}
|
|
13
15
|
})
|
|
14
16
|
|
|
@@ -54,9 +54,9 @@ module WiserTimezone
|
|
|
54
54
|
close_link = link_to('skip', set_timezone_path(offset: 'skip'), :id => 'wiser_timezone_close', :remote => true)
|
|
55
55
|
|
|
56
56
|
if offset.present?
|
|
57
|
-
msg = "Your system's timezone does not match your current setting #{current_timezone_slim}, <span class='no_wrap'>#{set_link} to update the timezone to ~TZ
|
|
57
|
+
msg = "Your system's timezone does not match your current setting #{current_timezone_slim}, <span class='no_wrap'>#{set_link}</span> to update the timezone to ~TZ~.#{'<br/>' if force}Otherwise, #{close_link} setting your timezone."
|
|
58
58
|
else
|
|
59
|
-
msg = "You do not have timezone in your settings, <span class='no_wrap'>#{set_link} to update the timezone to ~TZ
|
|
59
|
+
msg = "You do not have timezone in your settings, <span class='no_wrap'>#{set_link}</span> to update the timezone to ~TZ~.#{'<br/>' if force}Otherwise, #{close_link} setting your timezone."
|
|
60
60
|
end
|
|
61
61
|
classes = "#{'force' if force} #{'no_user' if auto_set_guest}"
|
|
62
62
|
space = "<div id='wiser_timezone_space' data-offset='#{offset}'>#{msg}</div>"
|