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 +4 -4
- data/lib/sinatra/extensions/antiquity.rb +2 -2
- data/lib/sinatra/extensions/init.rb +6 -5
- data/lib/sinatra/public/css/app.min.1.css +24 -0
- data/lib/sinatra/public/js/app.js +8 -0
- data/lib/sinatra/views/inputs/input.slim +6 -4
- data/lib/sinatra/views/inputs/multiple_select.slim +2 -0
- data/lib/sinatra/views/menu/menu.slim +22 -21
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7237053cbdcc440bd4fde16b66c6ff8cc28d6d63a27596b4a9b962dc1e678ae2
|
4
|
+
data.tar.gz: 0523dc1442a53cf68febcaed9ebe460a96f80daa7f1d89a1470f73eafcda26ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) ||
|
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 '
|
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 '
|
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
|
-
.
|
2
|
-
|
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
-
|
14
|
-
|
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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
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:
|