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: ac5ad4fa77c2f7dd36146ea2b9f51002313f318b
4
- data.tar.gz: ba009bda5675a238ed8e15345094f7ae79b4a501
3
+ metadata.gz: 0c17bc8880a4c8c1524641b8d14203b426ebfdb7
4
+ data.tar.gz: be51d294bcb4aab2e716c651fbf7f8990d993b8d
5
5
  SHA512:
6
- metadata.gz: 9f043cc7bc30a4adde94d2fb8de5801dbbe2de9abea7c8c7edec80591e4eb8197a7d4403d6c317043d152907f00ddfb77cd07c12ea7bfed75538d640f8f1a6a8
7
- data.tar.gz: 82745453f1b7d5a676832e25673e12124a07d5930cae9dc9d12f2f35675ce4b092efde2670d7fc53b683321fb531d51886f5268fad429c3cd6add4521062e61b
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
- .val {
27
- font-size: 30px;
28
- font-weight: bold;
29
- margin: 0 0 5px 0;
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
- .title {
32
- @include mono-font;
33
- color: gray(200);
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: 32.333333%;
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.999999%;
100
+ width: 19.8%;
69
101
  }
70
102
  }
71
103
  }
72
104
  &.count_6 {
73
105
  ul {
74
106
  li {
75
- width: 15.66666666%;
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
  }
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.0.0"
3
- BUILD = "291"
3
+ BUILD = "313"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
@@ -6,20 +6,27 @@
6
6
  @user_total = Lalala::AdminUser::all.count
7
7
 
8
8
  # fill array
9
- @values << ["pages",@page_total]
10
- @values << ["posts",@post_total]
11
- @values << ["files",@assets_total]
12
- @values << ["user(s)",@user_total]
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
- <p class="val"><%= val %></p>
22
- <p class="title"><%= title %></p>
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.291
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-02-25 00:00:00.000000000 Z
16
+ date: 2014-03-06 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activeadmin