sinatra-hexacta 0.9.4 → 0.9.9

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: 6aaec32790752b72c99527ea6fab74f017349baa383b7e34c806d0d51abc97be
4
- data.tar.gz: e2eea2b2586a3c8fa5ba99981b1c2bcb5896566721dba5ffc7e5194f9e0af4cf
3
+ metadata.gz: 1527a6976dccdc8e0671ca368db4dede08837652c36ca2c544543d3ff9fcb3be
4
+ data.tar.gz: c3e02dbeeead7c8615df1a93b10755388f824a129f097b159658e00db3a2c073
5
5
  SHA512:
6
- metadata.gz: bc9c270af10de54c5bb1d7e56c1b901892dc4dc035267fb439101ea94797a7d11942fe925cc0f740123894b327a2926f18e154008faf5e8a0df79fc39d29aaea
7
- data.tar.gz: 7fac0d0de897c15fcf63055e7c3b650f95dad234ad3bf599f019cc9bfa57b7cd8249df4ec8fe225220e18b40b1a0c78d2c867b004153a20e40e80dcfa5d05d24
6
+ metadata.gz: 898e87e91e11e7927f95d2176f8b1a68dbd71ee4ac64c0ba892effe154b43b0e86af7ce9e767243f5a2fc661dea24cddfcff40b8262b1ce4849174a38c98d9f1
7
+ data.tar.gz: 220b078e0f853f178245153a18de06a3e68f4a556e2ea0a8d01d38c6c4b372f1379b4f30ac22568840b78ad03fbe2f508e2bd975c70d20773f153289e834d6b0
@@ -17,8 +17,8 @@ class Antiquity
17
17
  months.divmod(12).first
18
18
  end
19
19
 
20
- def to_s
21
- date = (@periods.last && @periods.last.end_date) || Date.today
20
+ def to_s(upto_date=Date.today)
21
+ date = (@periods.last && @periods.last.end_date) || upto_date
22
22
  result = ""
23
23
  return result if @periods.empty?
24
24
  if date >= @periods.first.start_date
@@ -15859,6 +15859,30 @@ body.login-content:before {
15859
15859
  width: 100%;
15860
15860
  }
15861
15861
 
15862
+ #profile-main .pm-overview {
15863
+ transition: width 300ms ease-in-out;
15864
+ }
15865
+
15866
+ #profile-main .pm-overview .pmo-block, #profile-main .pm-overview .pmop-message {
15867
+ transition: opacity 300ms ease-in-out;
15868
+ }
15869
+
15870
+ #profile-main .pm-body {
15871
+ transition: padding 300ms ease-in-out;
15872
+ }
15873
+
15874
+ #profile-main .pm-overview.detail_view {
15875
+ width:112px !Important;
15876
+ }
15877
+
15878
+ #profile-main .pm-overview.detail_view .pmo-block, #profile-main .pm-overview.detail_view .pmop-message{
15879
+ opacity: 0;
15880
+ }
15881
+
15882
+ #profile-main .pm-body.detail_view {
15883
+ padding-left: 112px !Important;
15884
+ }
15885
+
15862
15886
  @media (max-width: 767px) {
15863
15887
  .c-timeline {
15864
15888
  background: #edecec;
@@ -45,6 +45,14 @@ $(document).ready(function(){
45
45
  }
46
46
  });
47
47
 
48
+ // Expand and reduce profile view
49
+ $(".detail_view").on('click',function() {
50
+ $('.toggled_view').addClass('detail_view');
51
+ })
52
+ $(".regular_view").on('click',function() {
53
+ $('.toggled_view').removeClass('detail_view');
54
+ })
55
+
48
56
  /* --------------------------------------------------------
49
57
  Scrollbar
50
58
  -----------------------------------------------------------*/
@@ -10,21 +10,23 @@
10
10
  -readonly = false
11
11
  - unless defined? clazz
12
12
  - clazz = nil
13
+ - unless defined? step
14
+ - step = 1
13
15
 
14
16
  -if required
15
17
  .form-group.has-feedback.has-success
16
18
  label #{title}
17
19
  .fg-line
18
20
  -if readonly
19
- input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" required="" value="#{value}" class="#{clazz}" onkeyup="#{onkeyup}" readonly=''
21
+ input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" required="" value="#{value}" class="#{clazz}" onkeyup="#{onkeyup}" readonly='' step="#{step}"
20
22
  -else
21
- input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" required="" value="#{value}" class="#{clazz}" onkeyup="#{onkeyup}"
23
+ input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" required="" value="#{value}" class="#{clazz}" onkeyup="#{onkeyup}" step="#{step}"
22
24
 
23
25
  -else
24
26
  .form-group
25
27
  label #{title}
26
28
  .fg-line
27
29
  -if readonly
28
- input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" value="#{value}" onkeyup="#{onkeyup}" class="#{clazz}" readonly=''
30
+ input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" value="#{value}" onkeyup="#{onkeyup}" class="#{clazz}" readonly='' step="#{step}"
29
31
  -else
30
- input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" value="#{value}" onkeyup="#{onkeyup}" class="#{clazz}"
32
+ input.form-control.fg-input id="#{id}" type="#{type}" placeholder="#{placeholder}" name="#{name}" value="#{value}" onkeyup="#{onkeyup}" class="#{clazz}" step="#{step}"
@@ -10,6 +10,8 @@
10
10
  - selected_elements = []
11
11
  - if selected_elements.nil?
12
12
  - selected_elements = []
13
+ - if !selected_elements.kind_of?(Array)
14
+ - selected_elements = selected_elements.to_s.split(',')
13
15
  - selected_elements = selected_elements.collect { |element| element.to_s }
14
16
 
15
17
  -if required
@@ -1,28 +1,29 @@
1
- .footer-text
2
- a.text.btn.bgm-white.c-gray onclick='toggle_menu()' Menu
1
+ -unless menu.empty?
2
+ .footer-text
3
+ a.text.btn.bgm-white.c-gray onclick='toggle_menu()' Menu
3
4
 
4
- .actions-menu.hidden
5
- -for item in menu
6
- -idx = menu.index(item) + 1
7
- -if item[:type] == 'link'
8
- a.text.btn.bgm-white.c-gray type="button" href="#{item[:link]}" target="#{item[:target]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s" #{item[:text]}
9
- -if item[:type] == 'modal'
10
- a.text.btn.bgm-white.c-gray type="button" data-toggle="modal" data-target="#{item[:link]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s" #{item[:text]}
5
+ .actions-menu.hidden
6
+ -for item in menu
7
+ -idx = menu.index(item) + 1
8
+ -if item[:type] == 'link'
9
+ a.text.btn.bgm-white.c-gray type="button" href="#{item[:link]}" target="#{item[:target]}" style="bottom:#{50+idx*45}px;animation-duration: #{(idx.to_f/10.0).round(2)}s" #{item[:text]}
10
+ -if item[:type] == 'modal'
11
+ a.text.btn.bgm-white.c-gray type="button" data-toggle="modal" data-target="#{item[:link]}" style="bottom:#{50+idx*45}px;animation-duration: #{(idx.to_f/10.0).round(2)}s" #{item[:text]}
11
12
 
12
- .footer-btn
13
- a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float onclick='toggle_menu()'
14
- i.zmdi.zmdi-menu
13
+ .footer-btn
14
+ a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float onclick='toggle_menu()'
15
+ i.zmdi.zmdi-menu
15
16
 
16
- .actions-menu.hidden
17
- -for item in menu
18
- -idx = menu.index(item) + 1
19
- -if item[:type] == 'link'
20
- a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float type="button" href="#{item[:link]}" target="#{item[:target]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s"
21
- i.zmdi class="zmdi-#{item[:icon]}"
17
+ .actions-menu.hidden
18
+ -for item in menu
19
+ -idx = menu.index(item) + 1
20
+ -if item[:type] == 'link'
21
+ a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float type="button" href="#{item[:link]}" target="#{item[:target]}" style="bottom:#{50+idx*45}px;animation-duration: #{(idx.to_f/10.0).round(2)}s"
22
+ i.zmdi class="zmdi-#{item[:icon]}"
22
23
 
23
- -if item[:type] == 'modal'
24
- a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float type="button" data-toggle="modal" data-target="#{item[:link]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s"
25
- i.zmdi class="zmdi-#{item[:icon]}"
24
+ -if item[:type] == 'modal'
25
+ a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float type="button" data-toggle="modal" data-target="#{item[:link]}" style="bottom:#{50+idx*45}px;animation-duration: #{(idx.to_f/10.0).round(2)}s"
26
+ i.zmdi class="zmdi-#{item[:icon]}"
26
27
 
27
28
 
28
29
  css:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-hexacta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger