rails_admin_featured_content 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/app/assets/images/fc-snippet-float-one.jpg +0 -0
- data/app/assets/images/fc-snippet-float-one.psd +0 -0
- data/app/assets/images/fc-snippet-float-three.jpg +0 -0
- data/app/assets/images/fc-snippet-float-three.psd +0 -0
- data/app/assets/images/fc-snippet-float-two.jpg +0 -0
- data/app/assets/images/fc-snippet-float-two.psd +0 -0
- data/app/assets/images/fc-snippet-one.jpg +0 -0
- data/app/assets/images/fc-snippet-one.psd +0 -0
- data/app/assets/images/fc-snippet-text-one.jpg +0 -0
- data/app/assets/images/fc-snippet-text-one.psd +0 -0
- data/app/assets/images/fc-snippet-text-three.jpg +0 -0
- data/app/assets/images/fc-snippet-text-three.psd +0 -0
- data/app/assets/images/fc-snippet-text-two.jpg +0 -0
- data/app/assets/images/fc-snippet-text-two.psd +0 -0
- data/app/assets/javascripts/rails_admin/featured_content.js.erb +265 -2
- data/app/assets/stylesheets/rails_admin/featured_content.scss +7 -13
- data/app/views/rails_admin/main/featured_content.html.erb +51 -2
- data/config/initializers/assets.rb +7 -0
- data/config/locales/featured_content.en.yml +10 -3
- data/config/locales/featured_content.pt-BR.yml +10 -3
- data/lib/rails_admin_featured_content/version.rb +1 -1
- data/spec/version_spec.rb +1 -1
- data/vendor/assets/stylesheets/rails_admin_featured_content.scss +56 -42
- metadata +53 -49
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -17
- data/spec/dummy/log/test.log +0 -332
- data/spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/example.jpg +0 -0
- data/spec/dummy/public/uploads/rails_admin_featured_content/featured_content_image/image/1/thumb_example.jpg +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36a250ed007f3b4f11b62fb7a23cd7e98065bd6a
|
4
|
+
data.tar.gz: b6f30935c5743eed5d9f91ee01850bd70b89def9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3ec932298a81007705bd81bc42c2587216a4e87b6a1b201479c45655dfa451619fd19133cb2afb21d2ad2617a39fb20c11bf776608f818164026e9f5bf1959
|
7
|
+
data.tar.gz: d93237c73a41507b613aa4590abbb5ac3ff44b6232efc52f0c274f4322fc8e03c2f2db665215a77c036684def9fbe5f62bb4337dc3ca646ca6870c732ed8568d
|
data/.gitignore
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -163,6 +163,42 @@ $(document).on('click', '.fc-snippet__btn', function(e) {
|
|
163
163
|
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
164
164
|
element += '</div>';
|
165
165
|
|
166
|
+
element += '<div class="fc-row">';
|
167
|
+
|
168
|
+
element += '<section id="'+ section_id +'" class="fc-item fc-item--border">';
|
169
|
+
element += '<input class="fc-search" type="text" name="search" placeholder="Buscar notícia">';
|
170
|
+
element += '<a href="#" class="fc-link fc-link--absolute"></a>';
|
171
|
+
element += '<h2 class="fc-caption"></h2>';
|
172
|
+
element += '<figure class="fc-figure fc-figure--block fc-figure--large">';
|
173
|
+
element += '<img class="fc-image" src="<%= image_url('cb-image-default.jpg') %>">';
|
174
|
+
element += '<input class="fc-tools__input fc-tools__input--upload" type="file" name="image" id="'+ section_id +'">';
|
175
|
+
element += '<div class="fc-tools fc-tools--center">';
|
176
|
+
element += '<a class="fc-tools__btn fc-tools__btn--upload fa fa-camera" href="#'+ section_id + '"></a>';
|
177
|
+
element += '</div>';
|
178
|
+
element += '</figure>';
|
179
|
+
element += '<h1 class="fc-title fc-title--small"></h1>';
|
180
|
+
element += '<p class="fc-text"></p>';
|
181
|
+
element += '</section>';
|
182
|
+
|
183
|
+
element += '</div>';
|
184
|
+
element += '</div>';
|
185
|
+
|
186
|
+
container.append(element);
|
187
|
+
|
188
|
+
autocomplete(section_id);
|
189
|
+
addEventToInputFile(section_id);
|
190
|
+
scrollTo(row_id);
|
191
|
+
break;
|
192
|
+
|
193
|
+
case '5':
|
194
|
+
var sections = [];
|
195
|
+
|
196
|
+
var element = '<div id="'+ row_id +'" class="fc-row">';
|
197
|
+
element += '<div class="fc-tools">';
|
198
|
+
element += '<a class="fc-tools__btn fc-tools__btn--move fa fa-arrows" href="#"></a>';
|
199
|
+
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
200
|
+
element += '</div>';
|
201
|
+
|
166
202
|
element += '<div class="fc-row fc-row--flex">';
|
167
203
|
|
168
204
|
for(var i = 0; i < 2; i++) {
|
@@ -198,7 +234,7 @@ $(document).on('click', '.fc-snippet__btn', function(e) {
|
|
198
234
|
scrollTo(row_id);
|
199
235
|
break;
|
200
236
|
|
201
|
-
case '
|
237
|
+
case '6':
|
202
238
|
var sections = [];
|
203
239
|
|
204
240
|
var element = '<div id="'+ row_id +'" class="fc-row">';
|
@@ -242,7 +278,7 @@ $(document).on('click', '.fc-snippet__btn', function(e) {
|
|
242
278
|
scrollTo(row_id);
|
243
279
|
break;
|
244
280
|
|
245
|
-
case '
|
281
|
+
case '7':
|
246
282
|
var sections = [];
|
247
283
|
|
248
284
|
var element = '<div id="'+ row_id +'" class="fc-row">';
|
@@ -285,6 +321,233 @@ $(document).on('click', '.fc-snippet__btn', function(e) {
|
|
285
321
|
|
286
322
|
scrollTo(row_id);
|
287
323
|
break;
|
324
|
+
|
325
|
+
case '8':
|
326
|
+
var sections = [];
|
327
|
+
|
328
|
+
var element = '<div id="'+ row_id +'" class="fc-row">';
|
329
|
+
element += '<div class="fc-tools">';
|
330
|
+
element += '<a class="fc-tools__btn fc-tools__btn--move fa fa-arrows" href="#"></a>';
|
331
|
+
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
332
|
+
element += '</div>';
|
333
|
+
|
334
|
+
element += '<div class="fc-row">';
|
335
|
+
|
336
|
+
element += '<section id="'+ section_id +'" class="fc-item fc-item--border">';
|
337
|
+
element += '<input class="fc-search" type="text" name="search" placeholder="Buscar notícia">';
|
338
|
+
element += '<a href="#" class="fc-link fc-link--absolute"></a>';
|
339
|
+
element += '<h2 class="fc-caption"></h2>';
|
340
|
+
element += '<h1 class="fc-title fc-title--small"></h1>';
|
341
|
+
element += '<figure class="fc-figure fc-figure--small">';
|
342
|
+
element += '<img class="fc-image" src="<%= image_url('cb-image-default.jpg') %>">';
|
343
|
+
element += '<input class="fc-tools__input fc-tools__input--upload" type="file" name="image" id="'+ section_id +'">';
|
344
|
+
element += '<div class="fc-tools fc-tools--center">';
|
345
|
+
element += '<a class="fc-tools__btn fc-tools__btn--upload fa fa-camera" href="#'+ section_id + '"></a>';
|
346
|
+
element += '</div>';
|
347
|
+
element += '</figure>';
|
348
|
+
element += '<p class="fc-text"></p>';
|
349
|
+
element += '</section>';
|
350
|
+
|
351
|
+
element += '</div>';
|
352
|
+
element += '</div>';
|
353
|
+
|
354
|
+
container.append(element);
|
355
|
+
|
356
|
+
autocomplete(section_id);
|
357
|
+
addEventToInputFile(section_id);
|
358
|
+
scrollTo(row_id);
|
359
|
+
break;
|
360
|
+
|
361
|
+
case '9':
|
362
|
+
var sections = [];
|
363
|
+
|
364
|
+
var element = '<div id="'+ row_id +'" class="fc-row">';
|
365
|
+
element += '<div class="fc-tools">';
|
366
|
+
element += '<a class="fc-tools__btn fc-tools__btn--move fa fa-arrows" href="#"></a>';
|
367
|
+
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
368
|
+
element += '</div>';
|
369
|
+
|
370
|
+
element += '<div class="fc-row fc-row--flex">';
|
371
|
+
|
372
|
+
for(var i = 0; i < 2; i++) {
|
373
|
+
element += '<section id="'+ section_id +'" class="fc-item fc-item--two fc-item--border">';
|
374
|
+
element += '<input class="fc-search" type="text" name="search" placeholder="Buscar notícia">';
|
375
|
+
element += '<a href="#" class="fc-link fc-link--absolute"></a>';
|
376
|
+
element += '<h2 class="fc-caption"></h2>';
|
377
|
+
element += '<h1 class="fc-title fc-title--small"></h1>';
|
378
|
+
element += '<figure class="fc-figure fc-figure--small">';
|
379
|
+
element += '<img class="fc-image" src="<%= image_url('cb-image-default.jpg') %>">';
|
380
|
+
element += '<input class="fc-tools__input fc-tools__input--upload" type="file" name="image" id="'+ section_id +'">';
|
381
|
+
element += '<div class="fc-tools fc-tools--center">';
|
382
|
+
element += '<a class="fc-tools__btn fc-tools__btn--upload fa fa-camera" href="#'+ section_id + '"></a>';
|
383
|
+
element += '</div>';
|
384
|
+
element += '</figure>';
|
385
|
+
element += '<p class="fc-text"></p>';
|
386
|
+
element += '</section>';
|
387
|
+
|
388
|
+
sections.push(section_id);
|
389
|
+
section_id = generateID();
|
390
|
+
}
|
391
|
+
|
392
|
+
element += '</div>';
|
393
|
+
element += '</div>';
|
394
|
+
|
395
|
+
container.append(element);
|
396
|
+
|
397
|
+
for(var i = 0; i < sections.length; i++) {
|
398
|
+
autocomplete(sections[i]);
|
399
|
+
addEventToInputFile(sections[i]);
|
400
|
+
}
|
401
|
+
|
402
|
+
scrollTo(row_id);
|
403
|
+
break;
|
404
|
+
|
405
|
+
case '10':
|
406
|
+
var sections = [];
|
407
|
+
|
408
|
+
var element = '<div id="'+ row_id +'" class="fc-row">';
|
409
|
+
element += '<div class="fc-tools">';
|
410
|
+
element += '<a class="fc-tools__btn fc-tools__btn--move fa fa-arrows" href="#"></a>';
|
411
|
+
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
412
|
+
element += '</div>';
|
413
|
+
|
414
|
+
element += '<div class="fc-row fc-row--flex">';
|
415
|
+
|
416
|
+
for(var i = 0; i < 3; i++) {
|
417
|
+
element += '<section id="'+ section_id +'" class="fc-item fc-item--three fc-item--border">';
|
418
|
+
element += '<input class="fc-search" type="text" name="search" placeholder="Buscar notícia">';
|
419
|
+
element += '<a href="#" class="fc-link fc-link--absolute"></a>';
|
420
|
+
element += '<h2 class="fc-caption"></h2>';
|
421
|
+
element += '<h1 class="fc-title fc-title--small"></h1>';
|
422
|
+
element += '<figure class="fc-figure fc-figure--small">';
|
423
|
+
element += '<img class="fc-image" src="<%= image_url('cb-image-default.jpg') %>">';
|
424
|
+
element += '<input class="fc-tools__input fc-tools__input--upload" type="file" name="image" id="'+ section_id +'">';
|
425
|
+
element += '<div class="fc-tools fc-tools--center">';
|
426
|
+
element += '<a class="fc-tools__btn fc-tools__btn--upload fa fa-camera" href="#'+ section_id + '"></a>';
|
427
|
+
element += '</div>';
|
428
|
+
element += '</figure>';
|
429
|
+
element += '<p class="fc-text"></p>';
|
430
|
+
element += '</section>';
|
431
|
+
|
432
|
+
sections.push(section_id);
|
433
|
+
section_id = generateID();
|
434
|
+
}
|
435
|
+
|
436
|
+
element += '</div>';
|
437
|
+
element += '</div>';
|
438
|
+
|
439
|
+
container.append(element);
|
440
|
+
|
441
|
+
for(var i = 0; i < sections.length; i++) {
|
442
|
+
autocomplete(sections[i]);
|
443
|
+
addEventToInputFile(sections[i]);
|
444
|
+
}
|
445
|
+
|
446
|
+
scrollTo(row_id);
|
447
|
+
break;
|
448
|
+
|
449
|
+
case '11':
|
450
|
+
var sections = [];
|
451
|
+
|
452
|
+
var element = '<div id="'+ row_id +'" class="fc-row">';
|
453
|
+
element += '<div class="fc-tools">';
|
454
|
+
element += '<a class="fc-tools__btn fc-tools__btn--move fa fa-arrows" href="#"></a>';
|
455
|
+
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
456
|
+
element += '</div>';
|
457
|
+
|
458
|
+
element += '<div class="fc-row">';
|
459
|
+
|
460
|
+
element += '<section id="'+ section_id +'" class="fc-item fc-item--border">';
|
461
|
+
element += '<input class="fc-search" type="text" name="search" placeholder="Buscar notícia">';
|
462
|
+
element += '<a href="#" class="fc-link fc-link--absolute"></a>';
|
463
|
+
element += '<h2 class="fc-caption"></h2>';
|
464
|
+
element += '<h1 class="fc-title fc-title--small"></h1>';
|
465
|
+
element += '<p class="fc-text"></p>';
|
466
|
+
element += '</section>';
|
467
|
+
|
468
|
+
element += '</div>';
|
469
|
+
element += '</div>';
|
470
|
+
|
471
|
+
container.append(element);
|
472
|
+
|
473
|
+
autocomplete(section_id);
|
474
|
+
addEventToInputFile(section_id);
|
475
|
+
scrollTo(row_id);
|
476
|
+
break;
|
477
|
+
|
478
|
+
case '12':
|
479
|
+
var sections = [];
|
480
|
+
|
481
|
+
var element = '<div id="'+ row_id +'" class="fc-row">';
|
482
|
+
element += '<div class="fc-tools">';
|
483
|
+
element += '<a class="fc-tools__btn fc-tools__btn--move fa fa-arrows" href="#"></a>';
|
484
|
+
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
485
|
+
element += '</div>';
|
486
|
+
|
487
|
+
element += '<div class="fc-row fc-row--flex">';
|
488
|
+
|
489
|
+
for(var i = 0; i < 2; i++) {
|
490
|
+
element += '<section id="'+ section_id +'" class="fc-item fc-item--two fc-item--border">';
|
491
|
+
element += '<input class="fc-search" type="text" name="search" placeholder="Buscar notícia">';
|
492
|
+
element += '<a href="#" class="fc-link fc-link--absolute"></a>';
|
493
|
+
element += '<h2 class="fc-caption"></h2>';
|
494
|
+
element += '<h1 class="fc-title fc-title--small"></h1>';
|
495
|
+
element += '<p class="fc-text"></p>';
|
496
|
+
element += '</section>';
|
497
|
+
|
498
|
+
sections.push(section_id);
|
499
|
+
section_id = generateID();
|
500
|
+
}
|
501
|
+
|
502
|
+
element += '</div>';
|
503
|
+
element += '</div>';
|
504
|
+
|
505
|
+
container.append(element);
|
506
|
+
|
507
|
+
for(var i = 0; i < sections.length; i++) {
|
508
|
+
autocomplete(sections[i]);
|
509
|
+
addEventToInputFile(sections[i]);
|
510
|
+
}
|
511
|
+
|
512
|
+
scrollTo(row_id);
|
513
|
+
break;
|
514
|
+
|
515
|
+
case '13':
|
516
|
+
var sections = [];
|
517
|
+
|
518
|
+
var element = '<div id="'+ row_id +'" class="fc-row">';
|
519
|
+
element += '<div class="fc-tools">';
|
520
|
+
element += '<a class="fc-tools__btn fc-tools__btn--move fa fa-arrows" href="#"></a>';
|
521
|
+
element += '<a class="fc-tools__btn fc-tools__btn--delete fa fa-trash" href="#'+ row_id +'"></a>';
|
522
|
+
element += '</div>';
|
523
|
+
|
524
|
+
element += '<div class="fc-row fc-row--flex">';
|
525
|
+
|
526
|
+
for(var i = 0; i < 3; i++) {
|
527
|
+
element += '<section id="'+ section_id +'" class="fc-item fc-item--three fc-item--border">';
|
528
|
+
element += '<input class="fc-search" type="text" name="search" placeholder="Buscar notícia">';
|
529
|
+
element += '<a href="#" class="fc-link fc-link--absolute"></a>';
|
530
|
+
element += '<h2 class="fc-caption"></h2>';
|
531
|
+
element += '<h1 class="fc-title fc-title--small"></h1>';
|
532
|
+
element += '<p class="fc-text"></p>';
|
533
|
+
element += '</section>';
|
534
|
+
|
535
|
+
sections.push(section_id);
|
536
|
+
section_id = generateID();
|
537
|
+
}
|
538
|
+
|
539
|
+
element += '</div>';
|
540
|
+
element += '</div>';
|
541
|
+
|
542
|
+
container.append(element);
|
543
|
+
|
544
|
+
for(var i = 0; i < sections.length; i++) {
|
545
|
+
autocomplete(sections[i]);
|
546
|
+
addEventToInputFile(sections[i]);
|
547
|
+
}
|
548
|
+
|
549
|
+
scrollTo(row_id);
|
550
|
+
break;
|
288
551
|
}
|
289
552
|
|
290
553
|
editable();
|
@@ -266,7 +266,8 @@
|
|
266
266
|
|
267
267
|
text-align: center;
|
268
268
|
|
269
|
-
|
269
|
+
width: 150px;
|
270
|
+
height: 100px;
|
270
271
|
border-radius: 4px;
|
271
272
|
overflow: hidden;
|
272
273
|
}
|
@@ -296,7 +297,7 @@
|
|
296
297
|
font-size: 10px;
|
297
298
|
text-transform: uppercase;
|
298
299
|
|
299
|
-
margin: 0 0
|
300
|
+
margin: 0 0 5px;
|
300
301
|
}
|
301
302
|
|
302
303
|
.fc-title {
|
@@ -308,10 +309,12 @@
|
|
308
309
|
font-size: 16px;
|
309
310
|
letter-spacing: -.04em;
|
310
311
|
|
311
|
-
margin: 0;
|
312
|
+
margin: 0 0 5px;
|
312
313
|
}
|
313
314
|
|
314
315
|
.fc-title--highlight {
|
316
|
+
margin: 0;
|
317
|
+
|
315
318
|
padding: 8px;
|
316
319
|
background: #333;
|
317
320
|
border-radius: 4px;
|
@@ -321,12 +324,11 @@
|
|
321
324
|
}
|
322
325
|
|
323
326
|
.fc-text {
|
327
|
+
margin: 0;
|
324
328
|
line-height: 1.5;
|
325
329
|
|
326
330
|
color: lighten(#111, 30%);
|
327
331
|
font-size: 14px;
|
328
|
-
|
329
|
-
margin: 10px 0 0;
|
330
332
|
}
|
331
333
|
|
332
334
|
|
@@ -520,14 +522,6 @@
|
|
520
522
|
transform: translateY(-50%);
|
521
523
|
}
|
522
524
|
}
|
523
|
-
|
524
|
-
.fc-figure--small {
|
525
|
-
padding-bottom: 40%;
|
526
|
-
}
|
527
|
-
|
528
|
-
.fc-figure--large {
|
529
|
-
padding-bottom: 60%;
|
530
|
-
}
|
531
525
|
}
|
532
526
|
|
533
527
|
|
@@ -24,25 +24,74 @@
|
|
24
24
|
<% end %>
|
25
25
|
|
26
26
|
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '4'} do %>
|
27
|
+
<%= image_tag 'fc-snippet-one.jpg', class: 'fc-snippet__image' %>
|
28
|
+
<span class="fc-snippet__caption">
|
29
|
+
<%= t('admin.actions.featured_content.snippet.one') %>
|
30
|
+
</span>
|
31
|
+
<% end %>
|
32
|
+
|
33
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '5'} do %>
|
27
34
|
<%= image_tag 'fc-snippet-two.jpg', class: 'fc-snippet__image' %>
|
28
35
|
<span class="fc-snippet__caption">
|
29
36
|
<%= t('admin.actions.featured_content.snippet.list_two') %>
|
30
37
|
</span>
|
31
38
|
<% end %>
|
32
39
|
|
33
|
-
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '
|
40
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '6'} do %>
|
34
41
|
<%= image_tag 'fc-snippet-three.jpg', class: 'fc-snippet__image' %>
|
35
42
|
<span class="fc-snippet__caption">
|
36
43
|
<%= t('admin.actions.featured_content.snippet.list_three') %>
|
37
44
|
</span>
|
38
45
|
<% end %>
|
39
46
|
|
40
|
-
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '
|
47
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '7'} do %>
|
41
48
|
<%= image_tag 'fc-snippet-four.jpg', class: 'fc-snippet__image' %>
|
42
49
|
<span class="fc-snippet__caption">
|
43
50
|
<%= t('admin.actions.featured_content.snippet.list_four') %>
|
44
51
|
</span>
|
45
52
|
<% end %>
|
53
|
+
|
54
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '8'} do %>
|
55
|
+
<%= image_tag 'fc-snippet-float-one.jpg', class: 'fc-snippet__image' %>
|
56
|
+
<span class="fc-snippet__caption">
|
57
|
+
<%= t('admin.actions.featured_content.snippet.float_one') %>
|
58
|
+
</span>
|
59
|
+
<% end %>
|
60
|
+
|
61
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '9'} do %>
|
62
|
+
<%= image_tag 'fc-snippet-float-two.jpg', class: 'fc-snippet__image' %>
|
63
|
+
<span class="fc-snippet__caption">
|
64
|
+
<%= t('admin.actions.featured_content.snippet.list_float_two') %>
|
65
|
+
</span>
|
66
|
+
<% end %>
|
67
|
+
|
68
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '10'} do %>
|
69
|
+
<%= image_tag 'fc-snippet-float-three.jpg', class: 'fc-snippet__image' %>
|
70
|
+
<span class="fc-snippet__caption">
|
71
|
+
<%= t('admin.actions.featured_content.snippet.list_float_three') %>
|
72
|
+
</span>
|
73
|
+
<% end %>
|
74
|
+
|
75
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '11'} do %>
|
76
|
+
<%= image_tag 'fc-snippet-text-one.jpg', class: 'fc-snippet__image' %>
|
77
|
+
<span class="fc-snippet__caption">
|
78
|
+
<%= t('admin.actions.featured_content.snippet.text_one') %>
|
79
|
+
</span>
|
80
|
+
<% end %>
|
81
|
+
|
82
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '12'} do %>
|
83
|
+
<%= image_tag 'fc-snippet-text-two.jpg', class: 'fc-snippet__image' %>
|
84
|
+
<span class="fc-snippet__caption">
|
85
|
+
<%= t('admin.actions.featured_content.snippet.list_text_two') %>
|
86
|
+
</span>
|
87
|
+
<% end %>
|
88
|
+
|
89
|
+
<%= link_to '#', class: 'fc-snippet__btn', data: {snippet: '13'} do %>
|
90
|
+
<%= image_tag 'fc-snippet-text-three.jpg', class: 'fc-snippet__image' %>
|
91
|
+
<span class="fc-snippet__caption">
|
92
|
+
<%= t('admin.actions.featured_content.snippet.list_text_three') %>
|
93
|
+
</span>
|
94
|
+
<% end %>
|
46
95
|
</div>
|
47
96
|
|
48
97
|
<%= simple_form_for rails_admin.featured_content_url(@abstract_model.to_param, id: @object.id), html: { class: 'fc-form' }, remote: false do |f| %>
|
@@ -3,6 +3,13 @@ Rails.application.config.assets.precompile += %w( fc-image-default.jpg )
|
|
3
3
|
Rails.application.config.assets.precompile += %w( fc-snippet-highlight.jpg )
|
4
4
|
Rails.application.config.assets.precompile += %w( fc-snippet-slide.jpg )
|
5
5
|
Rails.application.config.assets.precompile += %w( fc-snippet-text.jpg )
|
6
|
+
Rails.application.config.assets.precompile += %w( fc-snippet-one.jpg )
|
6
7
|
Rails.application.config.assets.precompile += %w( fc-snippet-two.jpg )
|
7
8
|
Rails.application.config.assets.precompile += %w( fc-snippet-three.jpg )
|
8
9
|
Rails.application.config.assets.precompile += %w( fc-snippet-four.jpg )
|
10
|
+
Rails.application.config.assets.precompile += %w( fc-snippet-float-one.jpg )
|
11
|
+
Rails.application.config.assets.precompile += %w( fc-snippet-float-two.jpg )
|
12
|
+
Rails.application.config.assets.precompile += %w( fc-snippet-float-three.jpg )
|
13
|
+
Rails.application.config.assets.precompile += %w( fc-snippet-text-one.jpg )
|
14
|
+
Rails.application.config.assets.precompile += %w( fc-snippet-text-two.jpg )
|
15
|
+
Rails.application.config.assets.precompile += %w( fc-snippet-text-three.jpg )
|
@@ -19,6 +19,13 @@ en:
|
|
19
19
|
targe: "Targe"
|
20
20
|
title_large: "Title large"
|
21
21
|
slide: "Slide"
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
one: "Block image"
|
23
|
+
list_two: "List with two block image"
|
24
|
+
list_three: "List with three block image"
|
25
|
+
list_four: "List with four block image"
|
26
|
+
float_one: "Float image"
|
27
|
+
list_float_two: "List with two float image"
|
28
|
+
list_float_three: "List with three float image"
|
29
|
+
text_one: "No image"
|
30
|
+
list_text_two: "List with two no image"
|
31
|
+
list_text_three: "List with three no image"
|
@@ -19,6 +19,13 @@ pt-BR:
|
|
19
19
|
targe: "Tarja"
|
20
20
|
title_large: "Título grande"
|
21
21
|
slide: "Slide"
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
one: "Imagem em bloco"
|
23
|
+
list_two: "Lista com duas em bloco"
|
24
|
+
list_three: "Lista com três em bloco"
|
25
|
+
list_four: "Lista com quatro em bloco"
|
26
|
+
float_one: "Imagem fluída"
|
27
|
+
list_float_two: "Lista com duas fluídas"
|
28
|
+
list_float_three: "Lista com três fluídas"
|
29
|
+
text_one: "Sem imagem"
|
30
|
+
list_text_two: "Lista com duas sem imagem"
|
31
|
+
list_text_three: "Lista com três sem imagem"
|