elements 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +31 -0
  3. data/Rakefile +26 -0
  4. data/app/assets/images/elements/bc_separator.png +0 -0
  5. data/app/assets/images/elements/block.png +0 -0
  6. data/app/assets/images/elements/footer-bg.png +0 -0
  7. data/app/assets/images/elements/footer_logo.png +0 -0
  8. data/app/assets/images/elements/header-logo.png +0 -0
  9. data/app/assets/images/elements/home.png +0 -0
  10. data/app/assets/images/elements/info.png +0 -0
  11. data/app/assets/images/elements/login_bg.jpg +0 -0
  12. data/app/assets/images/elements/plugins/modal-gloss.png +0 -0
  13. data/app/assets/images/elements/plugins/multi_step/button.png +0 -0
  14. data/app/assets/images/elements/plugins/multi_step/container.png +0 -0
  15. data/app/assets/images/elements/plugins/multi_step/input.png +0 -0
  16. data/app/assets/images/elements/plugins/multi_step/progress.png +0 -0
  17. data/app/assets/images/elements/plugins/multi_step/progress_bar.png +0 -0
  18. data/app/assets/images/elements/plugins/multi_step/progress_left.png +0 -0
  19. data/app/assets/images/elements/plugins/multi_step/progress_right.png +0 -0
  20. data/app/assets/images/elements/plugins/multi_step/send.png +0 -0
  21. data/app/assets/images/elements/shadow.png +0 -0
  22. data/app/assets/images/elements/warning.png +0 -0
  23. data/app/assets/javascripts/application.js +1 -0
  24. data/app/assets/javascripts/elements/application.js +5 -0
  25. data/app/assets/javascripts/elements/plugins/jquery.reveal.js +160 -0
  26. data/app/assets/javascripts/elements/plugins/jquery.validate.min.js +51 -0
  27. data/app/assets/javascripts/elements/plugins/modernizr.js +4 -0
  28. data/app/assets/stylesheets/application.css +4 -0
  29. data/app/assets/stylesheets/elements/application.css +14 -0
  30. data/app/assets/stylesheets/elements/buttons.css.scss +126 -0
  31. data/app/assets/stylesheets/elements/fonts/klavika-bold-webfont.eot +0 -0
  32. data/app/assets/stylesheets/elements/fonts/klavika-bold-webfont.svg +231 -0
  33. data/app/assets/stylesheets/elements/fonts/klavika-bold-webfont.ttf +0 -0
  34. data/app/assets/stylesheets/elements/fonts/klavika-bold-webfont.woff +0 -0
  35. data/app/assets/stylesheets/elements/fonts/klavika-medium-webfont.eot +0 -0
  36. data/app/assets/stylesheets/elements/fonts/klavika-medium-webfont.svg +231 -0
  37. data/app/assets/stylesheets/elements/fonts/klavika-medium-webfont.ttf +0 -0
  38. data/app/assets/stylesheets/elements/fonts/klavika-medium-webfont.woff +0 -0
  39. data/app/assets/stylesheets/elements/fonts/klavika-regular-webfont.eot +0 -0
  40. data/app/assets/stylesheets/elements/fonts/klavika-regular-webfont.svg +231 -0
  41. data/app/assets/stylesheets/elements/fonts/klavika-regular-webfont.ttf +0 -0
  42. data/app/assets/stylesheets/elements/fonts/klavika-regular-webfont.woff +0 -0
  43. data/app/assets/stylesheets/elements/fonts/klavika.css +40 -0
  44. data/app/assets/stylesheets/elements/fonts.css.scss +46 -0
  45. data/app/assets/stylesheets/elements/forms.css.scss +11 -0
  46. data/app/assets/stylesheets/elements/helpers.css.scss +64 -0
  47. data/app/assets/stylesheets/elements/ie.css.scss +37 -0
  48. data/app/assets/stylesheets/elements/layout.css.scss +377 -0
  49. data/app/assets/stylesheets/elements/plugins/reveal.css +66 -0
  50. data/app/assets/stylesheets/elements/reset.css.scss +26 -0
  51. data/app/assets/stylesheets/elements/typography.css.scss +120 -0
  52. data/app/controllers/elements/application_controller.rb +4 -0
  53. data/app/helpers/elements/application_helper.rb +4 -0
  54. data/app/helpers/error_messages_helper.rb +23 -0
  55. data/app/helpers/layout_helper.rb +22 -0
  56. data/app/views/layouts/application.html.haml +34 -0
  57. data/app/views/layouts/elements/_flash_messages.html.haml +8 -0
  58. data/app/views/layouts/elements/_footer.html.haml +12 -0
  59. data/app/views/layouts/elements/_header.html.haml +4 -0
  60. data/app/views/layouts/elements/_nav.html.haml +6 -0
  61. data/config/routes.rb +2 -0
  62. data/lib/elements/engine.rb +5 -0
  63. data/lib/elements/version.rb +3 -0
  64. data/lib/elements.rb +4 -0
  65. data/lib/generators/elements/install/install_generator.rb +34 -0
  66. data/lib/tasks/elements_tasks.rake +4 -0
  67. metadata +134 -0
@@ -0,0 +1,377 @@
1
+ /* --------------------------------------------------------------------------------
2
+ * Elements - Rails Starting Base
3
+ *
4
+ * layout.css.scss
5
+ *
6
+ * Defines the basic layout of the page and the elements that can be used to make the
7
+ * page turn into whatever flow we want
8
+ *
9
+ * @author : Jais Cheema
10
+ *
11
+ -----------------------------------------------------------------------------------*/
12
+
13
+ @mixin lr-align {
14
+ &.left {
15
+ float:left;
16
+ margin:20px 0 0 0;
17
+ }
18
+
19
+ &.right {
20
+ float:left;
21
+ margin:20px 0 0 20px;
22
+ }
23
+ }
24
+
25
+
26
+ body {
27
+ .body_container {
28
+ width:100%;
29
+ min-height:100%;
30
+ height:auto !important;
31
+ height:100%;
32
+ margin:0 auto -280px;
33
+
34
+ #login_container {
35
+
36
+ padding-top:30px;
37
+ background:url('/assets/elements/login_bg.jpg');
38
+
39
+ #logo {
40
+ background:url('/assets/elements/header-logo.png') no-repeat;
41
+ height:62px;
42
+ width:278px;
43
+ margin:5px auto;
44
+ }
45
+
46
+ #after_form {
47
+ margin-top:60px;
48
+ }
49
+
50
+ #flash {
51
+ div {
52
+ text-align:left;
53
+ padding:10px 30px;
54
+ background:#f48585;
55
+ text-shadow:0 1px 0 #FCC;
56
+ -moz-border-radius:5px;
57
+ -webkit-border-radius:5px;
58
+ border-radius:5px;
59
+ -moz-box-shadow:0 1px 0 #b7dcea,inset 0 1px 3px #d55e5e;
60
+ -webkit-box-shadow:0 1px 0 #b7dcea,inset 0 1px 3px #d55e5e;
61
+ box-shadow:0 1px 0 #b7dcea,inset 0 1px 3px #d55e5e;
62
+ color:#971E0D;
63
+ font-family:14px;
64
+ }
65
+ margin-bottom:20px;
66
+ }
67
+
68
+ #login_form {
69
+ width:410px;
70
+ margin:auto;
71
+
72
+ h2 {
73
+ font-family:KlavikaMedium;
74
+ font-size:32px;
75
+ -moz-text-shadow:0 1px 0 rgba(255, 255, 255, 0.4);
76
+ -webkit-text-shadow:0 1px 0 rgba(255, 255, 255, 0.4);
77
+ text-shadow:0 1px 0 rgba(255, 255, 255, 0.4);
78
+ letter-spacing:-1px;
79
+ margin-bottom:10px;
80
+ }
81
+
82
+ form {
83
+ margin-top:10px;
84
+ ol {
85
+ list-style:none;
86
+ margin:0 0 12px 0;
87
+
88
+ li {
89
+ list-style-position:outside;
90
+ margin:0 0 12px 0;
91
+
92
+ input[type="text"], input[type="password"] {
93
+ color:#ff9900;
94
+ font:KlavikMedium 20px;
95
+ padding:8px;
96
+ letter-spacing:1px;
97
+ -webkit-border-radius:4px;
98
+ -moz-border-radius:4px;
99
+ border-radius:4px;
100
+ -webkit-box-shadow:0 1px 0 white,inset 0 2px 2px rgba(0,0,0,0.1);
101
+ -moz-box-shadow:0 1px 0 white,inset 0 2px 2px rgba(0,0,0,0.1);
102
+ box-shadow:0 1px 0 white,inset 0 2px 2px rgba(0,0,0,0.1);
103
+ float:left;
104
+ width:390px;
105
+ border:1px solid gray;
106
+ }
107
+ }
108
+ }
109
+
110
+ fieldset {
111
+ &.inputs {
112
+ li {
113
+ overflow:hidden;
114
+ margin-bottom:10px;
115
+
116
+ label {
117
+ margin-top:4px;
118
+ width:180px;
119
+ float:left;
120
+ }
121
+ }
122
+ }
123
+
124
+ &.buttons {
125
+ margin-top:25px;
126
+
127
+ li {
128
+ display:inline;
129
+
130
+ a {
131
+ margin-left:20px;
132
+ text-decoration:none;
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+
141
+ .primary_container {
142
+
143
+ .width_container {
144
+ position:relative;
145
+ margin:0px auto;
146
+ width:1024px;
147
+
148
+ &.modal {
149
+ width:100%;
150
+ }
151
+
152
+ &.padd {
153
+ margin-bottom:50px;
154
+ }
155
+
156
+ .absoluted {
157
+ position:absolute;
158
+ }
159
+
160
+ .join_container {
161
+ overflow:auto;
162
+ }
163
+
164
+ .flash {
165
+
166
+ .box {
167
+ margin:20px;
168
+ margin-bottom:10px;
169
+ padding:5px;
170
+ padding-left:60px;
171
+
172
+ &.alert {
173
+ background:url('/assets/elements/warning.png') no-repeat 20px 1px;
174
+ background-color:#F7e9Af;
175
+ border:1px solid #FFCC00;
176
+ }
177
+
178
+ &.notice {
179
+ background:url('/assets/elements/info.png') no-repeat 20px 1px;
180
+ background-color:#CFC;
181
+ border:solid 1px #6C6;
182
+ }
183
+
184
+ &.error {
185
+ background:url('/assets/elements/block.png') no-repeat 20px 1px;
186
+ background-color:#FCC;
187
+ border:1px solid #C66;
188
+ }
189
+ }
190
+ }
191
+
192
+ header {
193
+ margin-top:20px;
194
+
195
+ nav {
196
+ ul {
197
+ list-style:none;
198
+ height:40px;
199
+ font-size:17px;
200
+
201
+ li {
202
+ display:block;
203
+ float:left;
204
+ text-align:right;
205
+
206
+ a {
207
+ padding:3px 20px;
208
+ display:block;
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ .content {
216
+ &.main {
217
+ width:675px;
218
+
219
+ &.stretch {
220
+ width:1024px;
221
+ clear:both;
222
+ }
223
+
224
+ @include lr-align;
225
+ }
226
+
227
+ &.aside {
228
+ width:325px;
229
+ @include lr-align;
230
+ }
231
+ }
232
+
233
+ .breadcrumbs {
234
+ margin-top:25px;
235
+
236
+ ul {
237
+ height:30px;
238
+ line-height:30px;
239
+ border-top:1px solid #CACACA;
240
+ border-bottom:1px solid #CACACA;
241
+ overflow:hidden;
242
+ margin:0px;
243
+ margin-left:30px;
244
+ margin-right:30px;
245
+ padding:5px;
246
+
247
+ li {
248
+ list-style-type:none;
249
+ float:left;
250
+ padding-left:10px;
251
+ }
252
+
253
+ a {
254
+ height:30px;
255
+ display:block;
256
+ background:url('/assets/elements/bc_separator.png') no-repeat right;
257
+ padding-right:15px;
258
+ }
259
+
260
+ .home
261
+ {
262
+ border:none;
263
+ margin:8px 0px;
264
+ }
265
+ }
266
+ }
267
+
268
+ .top_shadow_border {
269
+ background:url('/assets/elements/shadow.png') no-repeat top center;
270
+ border-top:1px solid gainsboro;
271
+ padding-top:20px;
272
+ }
273
+
274
+ .page_title {
275
+ padding-bottom:40px;
276
+ text-align:center;
277
+ padding-top:20px;
278
+
279
+ h1 {
280
+ display:block;
281
+ margin:auto;
282
+ width:800px;
283
+ }
284
+
285
+ &.left {
286
+ text-align:left;
287
+ padding-bottom:20px;
288
+ padding-left:12px;
289
+
290
+ h1 {
291
+ width:100%;
292
+ }
293
+ }
294
+
295
+ &.right {
296
+ text-align:right;
297
+ padding-bottom:10px;
298
+ padding-right:12px;
299
+
300
+ h1 {
301
+ width:100%;
302
+ }
303
+ }
304
+ }
305
+ }
306
+
307
+ &.special {
308
+ background:#E4E4E4 url('/assets/elements/shadow.png') center 0 no-repeat;
309
+ border-top:1px solid gainsboro;
310
+ margin:14px 0 0 0;
311
+ padding:40px 0;
312
+ }
313
+ }
314
+
315
+ .push {
316
+ height:280px;
317
+ clear:both;
318
+ }
319
+ }
320
+
321
+ .footer {
322
+ width:100%;
323
+ height:229px;
324
+ border-top:1px solid #DDD;
325
+ clear:both;
326
+ padding-top:40px;
327
+ padding-bottom:10px;
328
+
329
+ .container {
330
+ position:relative;
331
+ margin:0px auto;
332
+ width:1024px;
333
+ padding:0px 20px;
334
+
335
+ nav {
336
+ overflow:auto;
337
+
338
+ section {
339
+ float:left;
340
+ margin-right:25px;
341
+ width:200px;
342
+
343
+ ul {
344
+ list-style:none;
345
+ margin-left:10px;
346
+ }
347
+ }
348
+ }
349
+
350
+ p.copyright {
351
+ margin-top:40px;
352
+ display:block;
353
+ float:left;
354
+ height:20px;
355
+ }
356
+ }
357
+ }
358
+
359
+ /** Definite Container classes */
360
+
361
+ .col {
362
+ float:left;
363
+ margin-left:15px;
364
+
365
+ &.oneof2 {
366
+ width:490px;
367
+ }
368
+
369
+ &.oneof3 {
370
+ width:325px;
371
+ }
372
+
373
+ &.oneof4 {
374
+ width:230px;
375
+ }
376
+ }
377
+ }
@@ -0,0 +1,66 @@
1
+ /* --------------------------------------------------
2
+ Reveal Modals
3
+ -------------------------------------------------- */
4
+
5
+ .reveal-modal-bg {
6
+ position: fixed;
7
+ height: 100%;
8
+ width: 100%;
9
+ background: #000;
10
+ background: rgba(0,0,0,.8);
11
+ z-index: 100;
12
+ display: none;
13
+ top: 0;
14
+ left: 0;
15
+ }
16
+
17
+ .reveal-modal {
18
+ visibility: hidden;
19
+ top: 100px;
20
+ left: 50%;
21
+ margin-left: -300px;
22
+ width: 520px;
23
+ background: #eee url('/assets/elements/plugins/modal-gloss.png') no-repeat -200px -80px;
24
+ position: absolute;
25
+ z-index: 101;
26
+ padding: 30px 40px 34px;
27
+ -moz-border-radius: 5px;
28
+ -webkit-border-radius: 5px;
29
+ border-radius: 5px;
30
+ -moz-box-shadow: 0 0 10px rgba(0,0,0,.4);
31
+ -webkit-box-shadow: 0 0 10px rgba(0,0,0,.4);
32
+ -box-shadow: 0 0 10px rgba(0,0,0,.4);
33
+ }
34
+
35
+ .reveal-modal.small { width: 200px; margin-left: -140px;}
36
+ .reveal-modal.medium { width: 400px; margin-left: -240px;}
37
+ .reveal-modal.large { width: 600px; margin-left: -340px;}
38
+ .reveal-modal.xlarge { width: 800px; margin-left: -440px;}
39
+
40
+ .reveal-modal .close-reveal-modal {
41
+ font-size: 22px;
42
+ line-height: .5;
43
+ position: absolute;
44
+ top: 8px;
45
+ right: 11px;
46
+ color: #aaa;
47
+ text-shadow: 0 -1px 1px rbga(0,0,0,.6);
48
+ font-weight: bold;
49
+ cursor: pointer;
50
+ }
51
+ /*
52
+
53
+ NOTES
54
+
55
+ Close button entity is ×
56
+
57
+ Example markup
58
+
59
+ <div id="myModal" class="reveal-modal">
60
+ <h2>Awesome. I have it.</h2>
61
+ <p class="lead">Your couch. I it's mine.</p>
62
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultrices aliquet placerat. Duis pulvinar orci et nisi euismod vitae tempus lorem consectetur. Duis at magna quis turpis mattis venenatis eget id diam. </p>
63
+ <a class="close-reveal-modal">&#215;</a>
64
+ </div>
65
+
66
+ */
@@ -0,0 +1,26 @@
1
+ /* --------------------------------------------------------------------------------
2
+ * Elements - Rails Starting Base
3
+ *
4
+ * reset.css.scss
5
+ *
6
+ * Inherited from Blueprint css framework ( http://blueprintcss.org )
7
+ *
8
+ * @author : Jais Cheema
9
+ *
10
+ -----------------------------------------------------------------------------------*/
11
+
12
+ html {margin:0;padding:0;border:0;}
13
+ body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
14
+ article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
15
+ body {line-height:1.5;background:white;}
16
+ table {border-collapse:separate;border-spacing:0;}
17
+ caption, th, td {text-align:left;font-weight:normal;float:none !important;}
18
+ table, th, td {vertical-align:middle;}
19
+ blockquote:before, blockquote:after, q:before, q:after {content:'';}
20
+ blockquote, q {quotes:"" "";}
21
+ a img {border:none;}
22
+ :focus {outline:0;}
23
+
24
+ html,body {
25
+ height:100%;
26
+ }
@@ -0,0 +1,120 @@
1
+ /* --------------------------------------------------------------------------------
2
+ * Elements - Rails Starting Base
3
+ *
4
+ * typography.css.scss
5
+ *
6
+ * Defines some of the base styles for the elements used in layout
7
+ *
8
+ * @author : Jais Cheema
9
+ *
10
+ -----------------------------------------------------------------------------------*/
11
+
12
+ h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; }
13
+
14
+ h1 { font-size: 3em; }
15
+ h2 { font-size: 2em;}
16
+ h3 { font-size: 1.5em;}
17
+ h4 { font-size: 1.2em;}
18
+ h5 { font-size: 1em;}
19
+ h6 { font-size: 1em; }
20
+
21
+ /** The Colors to be used everywhere */
22
+
23
+ $body_background_color: white;
24
+ $text_color: #999;
25
+ $link_color: #ff9900;
26
+ $link_hover_color : #ddd;
27
+ $nav_color: #666666;
28
+ /** End Colors */
29
+
30
+
31
+ body {
32
+ font-family: Helevetica Neue, Helevetica, Verdana, Georgia, sans-serif;
33
+
34
+ color: $text_color;
35
+ background-color: $body_background_color;
36
+
37
+ header {
38
+ nav {
39
+ color: $nav_color;
40
+
41
+ ul {
42
+ font-size:17px;
43
+
44
+ li {
45
+ a {
46
+ color: $link_color;
47
+ text-decoration:none;
48
+ }
49
+
50
+ &.active a {
51
+ color: $link_hover_color;
52
+ }
53
+
54
+ a:hover {
55
+ color: $link_hover_color;
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ .breadcrumbs {
63
+ ul {
64
+ font-size:12px;
65
+ color:#9b9b9b;
66
+ }
67
+
68
+ a {
69
+ text-decoration:none;
70
+ color:#454545;
71
+
72
+ &:hover {
73
+ color:#35acc5;
74
+ }
75
+ }
76
+ }
77
+
78
+ .page_title{
79
+ h1 {
80
+ font-size:46px;
81
+ font-style:bold;
82
+ letter-spacing:-1px;
83
+ }
84
+
85
+ p {
86
+ font-size:24px;
87
+ }
88
+
89
+ &.left {
90
+ h1 {
91
+ font-size:38px;
92
+ letter-spacing:1px;
93
+ }
94
+ }
95
+ }
96
+
97
+ .footer {
98
+ .container {
99
+ section {
100
+ h3 {
101
+ font-size:20px;
102
+ }
103
+
104
+ a {
105
+ color: $link_color;
106
+ font-size:14px;
107
+ text-decoration:none;
108
+
109
+ &:hover {
110
+ color: $link_hover_color;
111
+ }
112
+ }
113
+ }
114
+
115
+ .copyright {
116
+ font-size:15px;
117
+ }
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,4 @@
1
+ module Elements
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Elements
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,23 @@
1
+ module ErrorMessagesHelper
2
+ # Render error messages for the given objects. The :message and :header_message options are allowed.
3
+ def error_messages_for(*objects)
4
+ options = objects.extract_options!
5
+ options[:header_message] ||= I18n.t(:"activerecord.errors.header", :default => "Invalid Fields")
6
+ options[:message] ||= I18n.t(:"activerecord.errors.message", :default => "Correct the following errors and try again.")
7
+ messages = objects.compact.map { |o| o.errors.full_messages }.flatten
8
+ unless messages.empty?
9
+ content_tag(:div, :class => "error_messages") do
10
+ list_items = messages.map { |msg| content_tag(:li, msg) }
11
+ content_tag(:h2, options[:header_message]) + content_tag(:p, options[:message]) + content_tag(:ul, list_items.join.html_safe)
12
+ end
13
+ end
14
+ end
15
+
16
+ module FormBuilderAdditions
17
+ def error_messages(options = {})
18
+ @template.error_messages_for(@object, options)
19
+ end
20
+ end
21
+ end
22
+
23
+ ActionView::Helpers::FormBuilder.send(:include, ErrorMessagesHelper::FormBuilderAdditions)
@@ -0,0 +1,22 @@
1
+ # These helper methods can be called in your template to set variables to be used in the layout
2
+ # This module should be included in all views globally,
3
+ # to do so you may need to add this line to your ApplicationController
4
+ # helper :layout
5
+ module LayoutHelper
6
+ def title(page_title, show_title = true)
7
+ content_for(:title) { h(page_title.to_s) }
8
+ @show_title = show_title
9
+ end
10
+
11
+ def show_title?
12
+ @show_title
13
+ end
14
+
15
+ def stylesheet(*args)
16
+ content_for(:head) { stylesheet_link_tag(*args) }
17
+ end
18
+
19
+ def javascript(*args)
20
+ content_for(:head) { javascript_include_tag(*args) }
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{'charset' => 'utf-8'}
5
+ %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE-Edge,chrome=1'}
6
+ %meta{:name => 'description', :content => ''}
7
+ %meta{:name => 'author', :content => 'Jais Cheema'}
8
+ %meta{:name => 'viewport', :content => 'width=device-width,initial-scale=1'}
9
+
10
+ %title= content_for?(:title) ? yield(:title) : "Untitled"
11
+
12
+ = stylesheet_link_tag 'elements/application'
13
+ /[if lt IE 8]
14
+ = stylesheet_link_tag 'elements/ie'
15
+
16
+ = stylesheet_link_tag 'application'
17
+
18
+ = javascript_include_tag :application
19
+
20
+ = csrf_meta_tags
21
+
22
+ = yield(:head)
23
+ %body
24
+ .body_container
25
+ = render 'layouts/elements/header'
26
+ = render 'layouts/elements/flash_messages'
27
+ - if show_title?
28
+ .primary_container
29
+ .width_container
30
+ .content.page_title.right
31
+ = content_tag :h1, yield(:title)
32
+ = yield
33
+ .push
34
+ = render 'layouts/elements/footer'
@@ -0,0 +1,8 @@
1
+ - if flash and flash.keys.count > 0
2
+ .primary_container
3
+ .width_container
4
+ .content.flash
5
+ - flash.each do |name,msg|
6
+ - if msg.is_a?(String)
7
+ .box{ :class => "#{name}"}
8
+ = msg
@@ -0,0 +1,12 @@
1
+ .footer
2
+ .container
3
+ %nav
4
+ %section
5
+ %h3 Useful Links
6
+ %ul
7
+ %li
8
+ %a{:href => "/about-us"}About Us
9
+ %li
10
+ %a{:href => "/legal"}Legal
11
+ %p.copyright
12
+ 2011 Jais Cheema.
@@ -0,0 +1,4 @@
1
+ .primary_container
2
+ .width_container
3
+ %header.content
4
+ = render 'layouts/elements/nav'
@@ -0,0 +1,6 @@
1
+ %nav
2
+ %ul
3
+ %li.active
4
+ %a{:href => "/"}Home
5
+ %li
6
+ %a{:href => "/login" }Login