shakes 0.8.0 → 0.8.1
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.
- data/README.md +1 -2
- data/app/views/shakes/_form.html.erb +1 -1
- data/app/views/shakes/edit.html.erb +1 -1
- data/app/views/shakes/form/_field.html.erb +4 -1
- data/app/views/shakes/index.html.erb +1 -1
- data/app/views/shakes/show.html.erb +2 -2
- data/generators/shakes_layout/templates/shakes.css +44 -54
- metadata +4 -4
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<% form_for(@resource, :url => action_path(((action.eql? :new) ? :create : :update ), @resource)) do |form| %>
|
|
2
|
-
<fieldset class="
|
|
2
|
+
<fieldset class="attributes">
|
|
3
3
|
<ol>
|
|
4
4
|
<%- form_attributes(action).each do |attribute| -%>
|
|
5
5
|
<% content_tag :li, :class => ['attribute', attribute_type(attribute).to_s].join(' ') do -%>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="section">
|
|
9
9
|
<h1>Related Links</h1>
|
|
10
10
|
<ul class="links">
|
|
11
|
-
<%- links_to_actions([:show, :destroy, :index], @resource).each do |link| -%>
|
|
11
|
+
<%- links_to_actions([:show, :destroy, :index, :new], @resource).each do |link| -%>
|
|
12
12
|
<%= content_tag :li, link%>
|
|
13
13
|
<%- end -%>
|
|
14
14
|
</ul>
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
<%= form.label attribute, attribute_human_name(attribute).titleize %>
|
|
2
|
-
<%= form.text_field attribute %>
|
|
2
|
+
<%= form.text_field attribute %>
|
|
3
|
+
<%- if resource.errors[attribute] -%>
|
|
4
|
+
<%= content_tag :p, [*resource.errors[attribute]].join(' and '), :class => 'error' %>
|
|
5
|
+
<%- end -%>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<%= content_tag :th, 'Actions', :class => 'actions' %>
|
|
10
10
|
</tr>
|
|
11
11
|
<%- @resources.each do |resource| -%>
|
|
12
|
-
<tr class="
|
|
12
|
+
<tr class="attributes">
|
|
13
13
|
<%- index_attributes.each do |attribute| -%>
|
|
14
14
|
<%= content_tag :td, render_attribute(:index, attribute, resource),
|
|
15
15
|
:class => ['field', attribute_type(attribute).to_s].join(' ') %>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="article">
|
|
2
2
|
<div class="section">
|
|
3
3
|
<%= title "Show #{controller_human_name}", :h1 %>
|
|
4
|
-
<ol class="
|
|
4
|
+
<ol class="attributes">
|
|
5
5
|
<%- show_attributes.each do |attribute| -%>
|
|
6
6
|
<% content_tag :li, :class => ['attribute', attribute_type(attribute).to_s].join(' ') do -%>
|
|
7
7
|
<%= render_attribute :show, attribute, @resource %>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div class="section">
|
|
15
15
|
<h1>Related Links</h1>
|
|
16
16
|
<ul class="links">
|
|
17
|
-
<%- links_to_actions([:edit, :destroy, :index], @resource).each do |link| -%>
|
|
17
|
+
<%- links_to_actions([:edit, :destroy, :index, :new], @resource).each do |link| -%>
|
|
18
18
|
<%= content_tag :li, link%>
|
|
19
19
|
<%- end -%>
|
|
20
20
|
</ul>
|
|
@@ -1,54 +1,3 @@
|
|
|
1
|
-
/* RESET.CSS */
|
|
2
|
-
/* http://meyerweb.com/eric/tools/css/reset/ */
|
|
3
|
-
/* v1.0 | 20080212 */
|
|
4
|
-
html, body, div, span, applet, object, iframe,
|
|
5
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
6
|
-
a, abbr, acronym, address, big, cite, code,
|
|
7
|
-
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
|
8
|
-
small, strike, strong, sub, sup, tt, var,
|
|
9
|
-
b, u, i, center,
|
|
10
|
-
dl, dt, dd, ol, ul, li,
|
|
11
|
-
fieldset, form, label, legend,
|
|
12
|
-
table, caption, tbody, tfoot, thead, tr, th, td {
|
|
13
|
-
margin: 0;
|
|
14
|
-
padding: 0;
|
|
15
|
-
border: 0;
|
|
16
|
-
outline: 0;
|
|
17
|
-
font-size: 100%;
|
|
18
|
-
vertical-align: baseline;
|
|
19
|
-
background: transparent;
|
|
20
|
-
}
|
|
21
|
-
body {
|
|
22
|
-
line-height: 1;
|
|
23
|
-
}
|
|
24
|
-
ol, ul {
|
|
25
|
-
list-style: none;
|
|
26
|
-
}
|
|
27
|
-
blockquote, q {
|
|
28
|
-
quotes: none;
|
|
29
|
-
}
|
|
30
|
-
blockquote:before, blockquote:after,
|
|
31
|
-
q:before, q:after {
|
|
32
|
-
content: '';
|
|
33
|
-
content: none;
|
|
34
|
-
}
|
|
35
|
-
/* remember to define focus styles! */
|
|
36
|
-
:focus {
|
|
37
|
-
outline: 0;
|
|
38
|
-
}
|
|
39
|
-
/* remember to highlight inserts somehow! */
|
|
40
|
-
ins {
|
|
41
|
-
text-decoration: none;
|
|
42
|
-
}
|
|
43
|
-
del {
|
|
44
|
-
text-decoration: line-through;
|
|
45
|
-
}
|
|
46
|
-
/* tables still need 'cellspacing="0"' in the markup */
|
|
47
|
-
table {
|
|
48
|
-
border-collapse: collapse;
|
|
49
|
-
border-spacing: 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
1
|
/* SHAKES.CSS */
|
|
53
2
|
/* General */
|
|
54
3
|
body {
|
|
@@ -56,6 +5,7 @@ body {
|
|
|
56
5
|
color: #666;
|
|
57
6
|
font-family: Tahoma,Arial,Helvetica,sans-serif;
|
|
58
7
|
font-size: 100%;
|
|
8
|
+
line-height: 1;
|
|
59
9
|
margin: 1em auto;
|
|
60
10
|
width: 960px;
|
|
61
11
|
}
|
|
@@ -63,6 +13,11 @@ a {
|
|
|
63
13
|
color: #000;
|
|
64
14
|
font-weight: bold;
|
|
65
15
|
}
|
|
16
|
+
fieldset, li, ol, ul {
|
|
17
|
+
border: 0;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
66
21
|
h1,h2,h3,h4,h5,h6 {
|
|
67
22
|
margin: 1em 0em;
|
|
68
23
|
}
|
|
@@ -73,8 +28,12 @@ h1,h2,h3,h4,h5,h6,label,th {
|
|
|
73
28
|
margin: 0em 0em 1em 0em;
|
|
74
29
|
text-align: inherit;
|
|
75
30
|
}
|
|
31
|
+
ol, ul {
|
|
32
|
+
list-style: none;
|
|
33
|
+
}
|
|
76
34
|
td, th {
|
|
77
35
|
padding: 0.1em;
|
|
36
|
+
vertical-align: baseline;
|
|
78
37
|
}
|
|
79
38
|
|
|
80
39
|
/* Layout */
|
|
@@ -121,6 +80,30 @@ body > div.nav li {
|
|
|
121
80
|
margin-right: 2em;
|
|
122
81
|
}
|
|
123
82
|
|
|
83
|
+
/* Flash */
|
|
84
|
+
p.flash {
|
|
85
|
+
background-color: #eee;
|
|
86
|
+
border: solid #666 1px;
|
|
87
|
+
padding: 1em;
|
|
88
|
+
color: #666;
|
|
89
|
+
text-align: center;
|
|
90
|
+
}
|
|
91
|
+
p#flash_error {
|
|
92
|
+
background-color: #fee;
|
|
93
|
+
border: solid #600 1px;
|
|
94
|
+
color: #600;
|
|
95
|
+
}
|
|
96
|
+
p#flash_notice {
|
|
97
|
+
background-color: #efe;
|
|
98
|
+
border: solid #060 1px;
|
|
99
|
+
color: #060;
|
|
100
|
+
}
|
|
101
|
+
p#flash_warning {
|
|
102
|
+
background-color: #ffe;
|
|
103
|
+
border: solid #660 1px;
|
|
104
|
+
color: #660;
|
|
105
|
+
}
|
|
106
|
+
|
|
124
107
|
/* Article */
|
|
125
108
|
body > div.article > div.section {
|
|
126
109
|
margin: 0em 0em 1em 0em;
|
|
@@ -146,19 +129,26 @@ body > div.article h6 {
|
|
|
146
129
|
body > div.article li {
|
|
147
130
|
margin: 0.5em 0em;
|
|
148
131
|
}
|
|
132
|
+
body > div.article fieldset.attributes li {
|
|
133
|
+
margin: 1em 0em;
|
|
134
|
+
}
|
|
149
135
|
body > div.article tr.headers th {
|
|
150
136
|
border-bottom: solid #060 2px;
|
|
151
137
|
}
|
|
152
|
-
body > div.article fieldset.
|
|
138
|
+
body > div.article fieldset.attributes > ol li, body > div.article ol.attributes li {
|
|
153
139
|
clear: both;
|
|
154
140
|
}
|
|
155
|
-
body > div.article fieldset.
|
|
141
|
+
body > div.article fieldset.attributes > ol label, body > div.article ol.attributes label {
|
|
156
142
|
float: left;
|
|
157
143
|
width: 160px;
|
|
158
144
|
}
|
|
159
|
-
body > div.article fieldset.buttons > ol li, body > div.article ol.
|
|
145
|
+
body > div.article fieldset.buttons > ol li, body > div.article ol.attributes div {
|
|
160
146
|
padding-left: 160px;
|
|
161
147
|
}
|
|
148
|
+
body > div.article fieldset.attributes > ol li p.error {
|
|
149
|
+
color: #600;
|
|
150
|
+
margin: 0.25em 0em;
|
|
151
|
+
}
|
|
162
152
|
|
|
163
153
|
/* Aside */
|
|
164
154
|
body > div.aside > div.section {
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shakes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 61
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 8
|
|
9
|
-
-
|
|
10
|
-
version: 0.8.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.8.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jason Stahl
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-05-
|
|
18
|
+
date: 2010-05-28 00:00:00 -05:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|