sinatra-hexacta 0.9.4 → 0.9.9
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 +4 -4
- data/lib/sinatra/extensions/antiquity.rb +2 -2
- 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: 1527a6976dccdc8e0671ca368db4dede08837652c36ca2c544543d3ff9fcb3be
|
4
|
+
data.tar.gz: c3e02dbeeead7c8615df1a93b10755388f824a129f097b159658e00db3a2c073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) ||
|
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
|
-
.
|
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:
|