sinatra-hexacta 0.9.5 → 0.9.10

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: d79ff3433bcac2fb8f84b38f2847eb2807a481f952d7940e9015f703c189afd3
4
- data.tar.gz: 5b14042aab9d75bf41cc2804f10e6df792f833c480de934ec14c0d03b9df22d3
3
+ metadata.gz: 7237053cbdcc440bd4fde16b66c6ff8cc28d6d63a27596b4a9b962dc1e678ae2
4
+ data.tar.gz: 0523dc1442a53cf68febcaed9ebe460a96f80daa7f1d89a1470f73eafcda26ca
5
5
  SHA512:
6
- metadata.gz: 60566a5a7826baa9993d1d5f4b61dc57cfde3a99ced5af08daa80d5436099ca74d1f8625c2f76007d5662f2278356a1f8e4de61d8de277fef15973b309e39dd3
7
- data.tar.gz: 4b5263301f5e43d3541f252d404f02028565adf9728b01e96fb145040eea19e774201b42ca727402f618b08247cbadc7800a99867b12809be0e8d6f957ba7ef4
6
+ metadata.gz: 9561c5a10a2b0c49283f19c4ac79a09af68ab7c11d5c219b61800ce642faebd1aaeb3059411bfbd7b8b489bcd17ac05e4ea8234b5ca2a64eb0e47c2ee90d8a7e
7
+ data.tar.gz: 7752262c0cd58d447facd1aabaab19e0fd2451c58d19f4accd908b5ba08b63bdf06fad992161c7399be4e816377cbddcde2e8ca4f621b13052cf8ebb2a0a3c62
@@ -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
@@ -1,10 +1,11 @@
1
1
  # encoding: utf-8
2
- require_relative 'date'
3
2
  require_relative 'antiquity'
4
- require_relative 'notification'
5
- require_relative 'mailsender'
6
- require_relative 'mail'
3
+ require_relative 'date'
7
4
  require_relative 'generalmail'
5
+ require_relative 'generalmailnolink'
6
+ require_relative 'mail'
8
7
  require_relative 'mailbuilder'
9
- require_relative 'processmanager'
8
+ require_relative 'mailsender'
10
9
  require_relative 'menu'
10
+ require_relative 'notification'
11
+ require_relative 'processmanager'
@@ -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: #{(idx.to_f/10.0).round(2)}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: #{(idx.to_f/10.0).round(2)}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: #{(idx.to_f/10.0).round(2)}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: #{(idx.to_f/10.0).round(2)}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.5
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger