lalala 4.0.0.dev.291 → 4.0.0.dev.313
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c17bc8880a4c8c1524641b8d14203b426ebfdb7
|
4
|
+
data.tar.gz: be51d294bcb4aab2e716c651fbf7f8990d993b8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 821eac2282d2e625aedff0f7e62ea2f4abe7c47ad44b6ace27e878b071f9d231647a1485acecd08035225a5e16ca7bd6057a314928a2b6e1413b6622bc840be1
|
7
|
+
data.tar.gz: bb5f14259b84b5a1d3f3ec33438c561f8098644be408ad5adccb72d28f5f8aec1c2e40e93ed429e78fe1fd74eaf968a13f9bd5e12d67a64a6559961d92aa5101
|
@@ -21,17 +21,49 @@
|
|
21
21
|
float: left;
|
22
22
|
margin: 0;
|
23
23
|
padding: 20px 0;
|
24
|
+
position: relative;
|
24
25
|
text-align: center;
|
25
26
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
// default shows the values
|
28
|
+
.default {
|
29
|
+
|
30
|
+
.val {
|
31
|
+
font-size: 30px;
|
32
|
+
font-weight: bold;
|
33
|
+
margin: 0 0 5px 0;
|
34
|
+
}
|
35
|
+
.title {
|
36
|
+
@include mono-font;
|
37
|
+
color: gray(200);
|
38
|
+
}
|
30
39
|
}
|
31
|
-
|
32
|
-
|
33
|
-
|
40
|
+
|
41
|
+
// hover has the action to create a new instance
|
42
|
+
.hover {
|
43
|
+
position: absolute;
|
44
|
+
height: 100%;
|
45
|
+
top: 0;
|
46
|
+
left: 0;
|
47
|
+
width: 100%;
|
48
|
+
|
49
|
+
a.button {
|
50
|
+
@include transition(all 150ms);
|
51
|
+
@include icon('add', 'button');
|
52
|
+
background-position: -20px center;
|
53
|
+
display: block;
|
54
|
+
height: 100%;
|
55
|
+
text-indent: -9999px;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&:hover {
|
60
|
+
.hover {
|
61
|
+
a {
|
62
|
+
background-position: 30px center;
|
63
|
+
}
|
64
|
+
}
|
34
65
|
}
|
66
|
+
|
35
67
|
}
|
36
68
|
|
37
69
|
}
|
@@ -51,7 +83,7 @@
|
|
51
83
|
&.count_3 {
|
52
84
|
ul {
|
53
85
|
li {
|
54
|
-
width:
|
86
|
+
width: 33%;
|
55
87
|
}
|
56
88
|
}
|
57
89
|
}
|
@@ -65,14 +97,14 @@
|
|
65
97
|
&.count_5 {
|
66
98
|
ul {
|
67
99
|
li {
|
68
|
-
width: 19.
|
100
|
+
width: 19.8%;
|
69
101
|
}
|
70
102
|
}
|
71
103
|
}
|
72
104
|
&.count_6 {
|
73
105
|
ul {
|
74
106
|
li {
|
75
|
-
width:
|
107
|
+
width: 16.5%;
|
76
108
|
}
|
77
109
|
}
|
78
110
|
}
|
@@ -116,6 +148,15 @@ body.lalala_dashboard {
|
|
116
148
|
.panel {
|
117
149
|
@extend %pnl;
|
118
150
|
|
151
|
+
// overwrite default link behaviour on panel
|
152
|
+
a {
|
153
|
+
color: $blue !important;
|
154
|
+
|
155
|
+
&:hover {
|
156
|
+
color: $blue !important;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
119
160
|
}
|
120
161
|
|
121
162
|
}
|
data/lib/lalala/version.rb
CHANGED
@@ -6,20 +6,27 @@
|
|
6
6
|
@user_total = Lalala::AdminUser::all.count
|
7
7
|
|
8
8
|
# fill array
|
9
|
-
@values << ["
|
10
|
-
@values << ["
|
11
|
-
@values << ["
|
12
|
-
@values << ["user
|
9
|
+
@values << ["page",@page_total, nil]
|
10
|
+
@values << ["post",@post_total, "/lalala/articles/new"]
|
11
|
+
@values << ["file",@assets_total, nil]
|
12
|
+
@values << ["user",@user_total, "/lalala/admin_users/new"]
|
13
13
|
|
14
14
|
%>
|
15
15
|
<div class="mod-dashboard">
|
16
16
|
|
17
17
|
<div class="stats count_<%= @values.length %>">
|
18
18
|
<ul>
|
19
|
-
<% @values.each do |title,val| %>
|
19
|
+
<% @values.each do |title,val,link| %>
|
20
20
|
<li>
|
21
|
-
<
|
22
|
-
|
21
|
+
<div class="default">
|
22
|
+
<p class="val"><%= val %></p>
|
23
|
+
<p class="title"><%= title.pluralize %></p>
|
24
|
+
</div>
|
25
|
+
<% unless link.nil? %>
|
26
|
+
<div class="hover">
|
27
|
+
<a href="<%= link %>" class="button">New <%= title %></a>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
23
30
|
</li>
|
24
31
|
<% end %>
|
25
32
|
</ul>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.dev.
|
4
|
+
version: 4.0.0.dev.313
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activeadmin
|