refinerycms-pc_banners 2.0.1 → 2.0.2
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/app/assets/javascripts/banners/banners.js +25 -0
- data/app/assets/javascripts/banners/jquery.tristate.js +94 -0
- data/app/views/refinery/banners/admin/banners/_form.html.erb +77 -74
- data/app/views/refinery/banners/admin/banners/_page.html.erb +19 -0
- data/app/views/refinery/banners/admin/banners/edit.html.erb +1 -1
- data/app/views/refinery/banners/admin/banners/new.html.erb +7 -1
- data/config/locales/en.yml +36 -35
- data/config/locales/es.yml +37 -36
- data/config/locales/fr.yml +36 -35
- data/config/locales/nb.yml +36 -35
- data/config/locales/nl.yml +36 -35
- data/config/locales/sk.yml +37 -0
- data/readme.md +2 -4
- metadata +7 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$(function() {
|
|
2
|
+
$(document).ready(function() {
|
|
3
|
+
$(".tree ul:first > li:first").addClass("branch_start");
|
|
4
|
+
$('.tree ul').find('li:last').addClass("branch_end");
|
|
5
|
+
$('ul.tristate').tristate();
|
|
6
|
+
|
|
7
|
+
$('.tree').delegate('.toggle','click', function(e) {
|
|
8
|
+
e.preventDefault();
|
|
9
|
+
|
|
10
|
+
var $li = $(this).parents('li:first');
|
|
11
|
+
var $icon = $li.find('.icon.toggle');
|
|
12
|
+
var $nested = $li.find('.nested');
|
|
13
|
+
|
|
14
|
+
if ($icon.hasClass('expanded')) {
|
|
15
|
+
$icon.removeClass('expanded');
|
|
16
|
+
$nested.slideUp();
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
$icon.addClass('expanded');
|
|
20
|
+
$nested.slideDown();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**********************************************************************************
|
|
2
|
+
**
|
|
3
|
+
** jQuery Tristate Checkbox Plugin
|
|
4
|
+
** version: 1.0
|
|
5
|
+
**
|
|
6
|
+
** Dual licensed under the MIT and GPL licenses:
|
|
7
|
+
** http://www.opensource.org/licenses/mit-license.php
|
|
8
|
+
** http://www.gnu.org/licenses/gpl.html
|
|
9
|
+
**
|
|
10
|
+
** author: Jeff Leombruno
|
|
11
|
+
** creation date: 09.20.2011
|
|
12
|
+
** dependencies: jQuery v1.6 or higher
|
|
13
|
+
**
|
|
14
|
+
** This file contains the functionality for implementing 3 state checkboxes.
|
|
15
|
+
** Inspired by:
|
|
16
|
+
** http://code.google.com/p/jquery-tristate-checkbox/
|
|
17
|
+
** http://css-tricks.com/13467-indeterminate-checkboxes/
|
|
18
|
+
**
|
|
19
|
+
**********************************************************************************/
|
|
20
|
+
|
|
21
|
+
(function($){
|
|
22
|
+
$.fn.tristate = function(options){
|
|
23
|
+
|
|
24
|
+
var config = {
|
|
25
|
+
selector: $(this).selector,
|
|
26
|
+
checked: null,
|
|
27
|
+
container: null,
|
|
28
|
+
siblings: null
|
|
29
|
+
};
|
|
30
|
+
var opts = $.extend(config, options);
|
|
31
|
+
|
|
32
|
+
return this.each(function(){
|
|
33
|
+
var obj = $(this);
|
|
34
|
+
|
|
35
|
+
var triState = function() {
|
|
36
|
+
|
|
37
|
+
var pub = {};
|
|
38
|
+
|
|
39
|
+
pub.init = function(){
|
|
40
|
+
$('input[type="checkbox"]', obj).change(function(e) {
|
|
41
|
+
config.checked = $(this).prop("checked")
|
|
42
|
+
config.container = $(this).parent()
|
|
43
|
+
config.siblings = config.container.siblings();
|
|
44
|
+
|
|
45
|
+
config.container.find('input[type="checkbox"]').prop({
|
|
46
|
+
indeterminate: false,
|
|
47
|
+
checked: config.checked
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
pub.checkSiblings(config.container);
|
|
51
|
+
});
|
|
52
|
+
// run checkSiblings for every checked checkbox when the page loads
|
|
53
|
+
$('input[type=checkbox]:checked', obj).each( function() {
|
|
54
|
+
pub.checkSiblings($(this).parent());
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
pub.checkSiblings = function(el) {
|
|
59
|
+
var parent = el.parent().parent();
|
|
60
|
+
var all = true;
|
|
61
|
+
|
|
62
|
+
el.siblings().each(function() {
|
|
63
|
+
return all = ($(this).children('input[type="checkbox"]').prop("checked") === config.checked);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
if (all && config.checked) {
|
|
67
|
+
parent.children('input[type="checkbox"]').prop({
|
|
68
|
+
indeterminate: false,
|
|
69
|
+
checked: config.checked
|
|
70
|
+
});
|
|
71
|
+
pub.checkSiblings(parent);
|
|
72
|
+
} else if (all && !config.checked) {
|
|
73
|
+
parent.children('input[type="checkbox"]').prop("checked", config.checked);
|
|
74
|
+
parent.children('input[type="checkbox"]').prop("indeterminate", (parent.find('input[type="checkbox"]:checked').length > 0));
|
|
75
|
+
pub.checkSiblings(parent);
|
|
76
|
+
} else {
|
|
77
|
+
el.parents("li").children('input[type="checkbox"]').prop({
|
|
78
|
+
indeterminate: true,
|
|
79
|
+
checked: false
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
return pub;
|
|
85
|
+
|
|
86
|
+
}();
|
|
87
|
+
|
|
88
|
+
triState.init();
|
|
89
|
+
triState.checkSiblings(obj);
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
})(jQuery);
|
|
@@ -1,74 +1,77 @@
|
|
|
1
|
-
<%= form_for [refinery, :banners_admin, @banner] do |f| -%>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<%= page.
|
|
66
|
-
</
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
<%= form_for [refinery, :banners_admin, @banner] do |f| -%>
|
|
2
|
+
<%= render '/refinery/admin/error_messages',
|
|
3
|
+
:object => @banner,
|
|
4
|
+
:include_object_name => true %>
|
|
5
|
+
|
|
6
|
+
<%= hidden_field_tag 'banner[page_ids][]' %>
|
|
7
|
+
|
|
8
|
+
<div class='field'>
|
|
9
|
+
<%= f.label :name -%>
|
|
10
|
+
<%= f.text_field :name, :class => 'larger widest' -%>
|
|
11
|
+
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class='field'>
|
|
15
|
+
<%= f.label :title -%>
|
|
16
|
+
<%= f.text_field :title -%>
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class='field'>
|
|
21
|
+
<%= f.label :description -%>
|
|
22
|
+
<%= f.text_field :description -%>
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class='field'>
|
|
27
|
+
<%= f.label :image -%>
|
|
28
|
+
<%= render '/refinery/admin/image_picker',
|
|
29
|
+
:f => f,
|
|
30
|
+
:field => :image_id,
|
|
31
|
+
:image => @banner.image,
|
|
32
|
+
:toggle_image_display => false,
|
|
33
|
+
:description => t('refinery.banners.admin.banner')
|
|
34
|
+
%>
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class='field'>
|
|
39
|
+
<%= f.label :url -%>
|
|
40
|
+
<%= f.text_field :url -%>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class='field'>
|
|
45
|
+
<%= f.label :is_active -%>
|
|
46
|
+
<%= f.check_box :is_active, :checked => @banner[:is_active] -%>
|
|
47
|
+
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div class='field'>
|
|
51
|
+
<%= f.label :start_date -%>
|
|
52
|
+
<%= f.date_select :start_date -%>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class='field'>
|
|
57
|
+
<%= f.label :expiry_date -%>
|
|
58
|
+
<%= f.date_select :expiry_date -%>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<section id="records" class="tree">
|
|
63
|
+
<%= f.label :pages %>
|
|
64
|
+
<ul class="tristate">
|
|
65
|
+
<%= render :partial => 'refinery/banners/admin/banners/page', :collection => Refinery::Page.order("lft ASC").select{|p| p.parent_id.nil?} %>
|
|
66
|
+
</ul>
|
|
67
|
+
</section>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<div style="clear: both;"></div>
|
|
71
|
+
<%= render '/refinery/admin/form_actions', :f => f,
|
|
72
|
+
:continue_editing => false,
|
|
73
|
+
:delete_title => t('delete', :scope => 'refinery.banners.admin.banners.banner'),
|
|
74
|
+
:delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @banner.name) %>
|
|
75
|
+
<% end -%>
|
|
76
|
+
|
|
77
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<li class='clearfix record icons' id="<%= dom_id(page) -%>" >
|
|
2
|
+
|
|
3
|
+
<% if page.children.present? %>
|
|
4
|
+
<span class="icon toggle expanded" title="<%= t('expand_collapse', :scope => 'refinery.admin.pages') %>"></span>
|
|
5
|
+
<% else %>
|
|
6
|
+
<span class="icon"></span>
|
|
7
|
+
<% end %>
|
|
8
|
+
|
|
9
|
+
<%= check_box_tag "banner[page_ids][]", page.id, @banner.pages.include?(page) %>
|
|
10
|
+
|
|
11
|
+
<span class='title <%= 'toggle' if page.children.present? %>'>
|
|
12
|
+
<%= page.title %>
|
|
13
|
+
</span>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<ul class='nested' >
|
|
17
|
+
<%= render(:partial => 'refinery/banners/admin/banners/page', :collection => page.children) %>
|
|
18
|
+
</ul>
|
|
19
|
+
</li>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<%= render 'form' %>
|
|
1
|
+
<%= render 'form' %>
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
<%# TODO: Get Tristrate working on edit action. There is bug and inproperly render some checkboxes in edit action. %>
|
|
2
|
+
<%- content_for(:javascripts) do -%>
|
|
3
|
+
<%= javascript_include_tag "banners/jquery.tristate.js", "banners/banners.js" -%>
|
|
4
|
+
<%- end -%>
|
|
5
|
+
|
|
6
|
+
<%= render 'form' %>
|
|
7
|
+
|
data/config/locales/en.yml
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
en:
|
|
2
|
-
refinery:
|
|
3
|
-
plugins:
|
|
4
|
-
banners:
|
|
5
|
-
title: Banners
|
|
6
|
-
banners:
|
|
7
|
-
admin:
|
|
8
|
-
banners:
|
|
9
|
-
actions:
|
|
10
|
-
create_new: Add New Banner
|
|
11
|
-
reorder: Reorder Banners
|
|
12
|
-
reorder_done: Done Reordering Banners
|
|
13
|
-
records:
|
|
14
|
-
title: Banners
|
|
15
|
-
sorry_no_results: Sorry! There are no results found.
|
|
16
|
-
no_items_yet: There are no Banners yet. Click "Add New Banner" to add your first banner.
|
|
17
|
-
banner:
|
|
18
|
-
view_live_html: View this banner live <br/><em>(opens in a new window)</em>
|
|
19
|
-
edit: Edit this banner
|
|
20
|
-
delete: Remove this banner forever
|
|
21
|
-
banners:
|
|
22
|
-
show:
|
|
23
|
-
other: Other Banners
|
|
24
|
-
activerecord:
|
|
25
|
-
attributes:
|
|
26
|
-
'refinery/banners/banner':
|
|
27
|
-
name: Name
|
|
28
|
-
title: Title
|
|
29
|
-
description: Description
|
|
30
|
-
image: Image
|
|
31
|
-
url: Url
|
|
32
|
-
is_active: Is Active
|
|
33
|
-
start_date: Start Date
|
|
34
|
-
expiry_date: Expiry Date
|
|
35
|
-
position: Position
|
|
1
|
+
en:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
banners:
|
|
5
|
+
title: Banners
|
|
6
|
+
banners:
|
|
7
|
+
admin:
|
|
8
|
+
banners:
|
|
9
|
+
actions:
|
|
10
|
+
create_new: Add New Banner
|
|
11
|
+
reorder: Reorder Banners
|
|
12
|
+
reorder_done: Done Reordering Banners
|
|
13
|
+
records:
|
|
14
|
+
title: Banners
|
|
15
|
+
sorry_no_results: Sorry! There are no results found.
|
|
16
|
+
no_items_yet: There are no Banners yet. Click "Add New Banner" to add your first banner.
|
|
17
|
+
banner:
|
|
18
|
+
view_live_html: View this banner live <br/><em>(opens in a new window)</em>
|
|
19
|
+
edit: Edit this banner
|
|
20
|
+
delete: Remove this banner forever
|
|
21
|
+
banners:
|
|
22
|
+
show:
|
|
23
|
+
other: Other Banners
|
|
24
|
+
activerecord:
|
|
25
|
+
attributes:
|
|
26
|
+
'refinery/banners/banner':
|
|
27
|
+
name: Name
|
|
28
|
+
title: Title
|
|
29
|
+
description: Description
|
|
30
|
+
image: Image
|
|
31
|
+
url: Url
|
|
32
|
+
is_active: Is Active
|
|
33
|
+
start_date: Start Date
|
|
34
|
+
expiry_date: Expiry Date
|
|
35
|
+
position: Position
|
|
36
|
+
pages: Pages
|
data/config/locales/es.yml
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
es:
|
|
2
|
-
refinery:
|
|
3
|
-
plugins:
|
|
4
|
-
banners:
|
|
5
|
-
title: Banners
|
|
6
|
-
# article: masculino/femenino
|
|
7
|
-
banners:
|
|
8
|
-
admin:
|
|
9
|
-
banners:
|
|
10
|
-
actions:
|
|
11
|
-
create_new: Crear nuevo banner
|
|
12
|
-
reorder: Reordenar banners
|
|
13
|
-
reorder_done: Reordenación de banners completada
|
|
14
|
-
records:
|
|
15
|
-
title: Banners
|
|
16
|
-
sorry_no_results: Lo siento, no hay resultados
|
|
17
|
-
no_items_yet: No hay banners todavía. Pulsa en "Crear nuevo Banner" para crear tu primer banner.
|
|
18
|
-
banner:
|
|
19
|
-
view_live_html: Ver este banner como abierto al público <br/><em>(abre en ventana nueva)</em>
|
|
20
|
-
edit: Editar este banner
|
|
21
|
-
delete: Borrar este banner para siempre
|
|
22
|
-
banners:
|
|
23
|
-
show:
|
|
24
|
-
other: Otros banners
|
|
25
|
-
activerecord:
|
|
26
|
-
attributes:
|
|
27
|
-
'refinery/banners/banner':
|
|
28
|
-
name: Name
|
|
29
|
-
title: Title
|
|
30
|
-
description: Description
|
|
31
|
-
image: Image
|
|
32
|
-
url: Url
|
|
33
|
-
is_active: Is Active
|
|
34
|
-
start_date: Start Date
|
|
35
|
-
expiry_date: Expiry Date
|
|
36
|
-
position: Position
|
|
1
|
+
es:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
banners:
|
|
5
|
+
title: Banners
|
|
6
|
+
# article: masculino/femenino
|
|
7
|
+
banners:
|
|
8
|
+
admin:
|
|
9
|
+
banners:
|
|
10
|
+
actions:
|
|
11
|
+
create_new: Crear nuevo banner
|
|
12
|
+
reorder: Reordenar banners
|
|
13
|
+
reorder_done: Reordenación de banners completada
|
|
14
|
+
records:
|
|
15
|
+
title: Banners
|
|
16
|
+
sorry_no_results: Lo siento, no hay resultados
|
|
17
|
+
no_items_yet: No hay banners todavía. Pulsa en "Crear nuevo Banner" para crear tu primer banner.
|
|
18
|
+
banner:
|
|
19
|
+
view_live_html: Ver este banner como abierto al público <br/><em>(abre en ventana nueva)</em>
|
|
20
|
+
edit: Editar este banner
|
|
21
|
+
delete: Borrar este banner para siempre
|
|
22
|
+
banners:
|
|
23
|
+
show:
|
|
24
|
+
other: Otros banners
|
|
25
|
+
activerecord:
|
|
26
|
+
attributes:
|
|
27
|
+
'refinery/banners/banner':
|
|
28
|
+
name: Name
|
|
29
|
+
title: Title
|
|
30
|
+
description: Description
|
|
31
|
+
image: Image
|
|
32
|
+
url: Url
|
|
33
|
+
is_active: Is Active
|
|
34
|
+
start_date: Start Date
|
|
35
|
+
expiry_date: Expiry Date
|
|
36
|
+
position: Position
|
|
37
|
+
pages: Páginas
|
data/config/locales/fr.yml
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
fr:
|
|
2
|
-
refinery:
|
|
3
|
-
plugins:
|
|
4
|
-
banners:
|
|
5
|
-
title: Banners
|
|
6
|
-
banners:
|
|
7
|
-
admin:
|
|
8
|
-
banners:
|
|
9
|
-
actions:
|
|
10
|
-
create_new: Créer un(e) nouve(au/l/lle) Banner
|
|
11
|
-
reorder: Réordonner les Banners
|
|
12
|
-
reorder_done: Fin de réordonnancement des Banners
|
|
13
|
-
records:
|
|
14
|
-
title: Banners
|
|
15
|
-
sorry_no_results: "Désolé ! Aucun résultat."
|
|
16
|
-
no_items_yet: 'Il n''y a actuellement aucun(e) Banner. Cliquer sur "Créer un(e) nouve(au/l/lle) Banner" pour créer votre premi(er/ère) banner.'
|
|
17
|
-
banner:
|
|
18
|
-
view_live_html: Voir ce(t/tte) banner <br/><em>(Ouvre une nouvelle fenêtre)</em>
|
|
19
|
-
edit: Modifier ce(t/tte) banner
|
|
20
|
-
delete: Supprimer définitivement ce(t/tte) banner
|
|
21
|
-
banners:
|
|
22
|
-
show:
|
|
23
|
-
other: Autres Banners
|
|
24
|
-
activerecord:
|
|
25
|
-
attributes:
|
|
26
|
-
'refinery/banners/banner':
|
|
27
|
-
name: Name
|
|
28
|
-
title: Title
|
|
29
|
-
description: Description
|
|
30
|
-
image: Image
|
|
31
|
-
url: Url
|
|
32
|
-
is_active: Is Active
|
|
33
|
-
start_date: Start Date
|
|
34
|
-
expiry_date: Expiry Date
|
|
35
|
-
position: Position
|
|
1
|
+
fr:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
banners:
|
|
5
|
+
title: Banners
|
|
6
|
+
banners:
|
|
7
|
+
admin:
|
|
8
|
+
banners:
|
|
9
|
+
actions:
|
|
10
|
+
create_new: Créer un(e) nouve(au/l/lle) Banner
|
|
11
|
+
reorder: Réordonner les Banners
|
|
12
|
+
reorder_done: Fin de réordonnancement des Banners
|
|
13
|
+
records:
|
|
14
|
+
title: Banners
|
|
15
|
+
sorry_no_results: "Désolé ! Aucun résultat."
|
|
16
|
+
no_items_yet: 'Il n''y a actuellement aucun(e) Banner. Cliquer sur "Créer un(e) nouve(au/l/lle) Banner" pour créer votre premi(er/ère) banner.'
|
|
17
|
+
banner:
|
|
18
|
+
view_live_html: Voir ce(t/tte) banner <br/><em>(Ouvre une nouvelle fenêtre)</em>
|
|
19
|
+
edit: Modifier ce(t/tte) banner
|
|
20
|
+
delete: Supprimer définitivement ce(t/tte) banner
|
|
21
|
+
banners:
|
|
22
|
+
show:
|
|
23
|
+
other: Autres Banners
|
|
24
|
+
activerecord:
|
|
25
|
+
attributes:
|
|
26
|
+
'refinery/banners/banner':
|
|
27
|
+
name: Name
|
|
28
|
+
title: Title
|
|
29
|
+
description: Description
|
|
30
|
+
image: Image
|
|
31
|
+
url: Url
|
|
32
|
+
is_active: Is Active
|
|
33
|
+
start_date: Start Date
|
|
34
|
+
expiry_date: Expiry Date
|
|
35
|
+
position: Position
|
|
36
|
+
pages: Pages
|
data/config/locales/nb.yml
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
nb:
|
|
2
|
-
refinery:
|
|
3
|
-
plugins:
|
|
4
|
-
banners:
|
|
5
|
-
title: Banners
|
|
6
|
-
banners:
|
|
7
|
-
admin:
|
|
8
|
-
banners:
|
|
9
|
-
actions:
|
|
10
|
-
create_new: Lag en ny Banner
|
|
11
|
-
reorder: Endre rekkefølgen på Banners
|
|
12
|
-
reorder_done: Ferdig å endre rekkefølgen Banners
|
|
13
|
-
records:
|
|
14
|
-
title: Banners
|
|
15
|
-
sorry_no_results: Beklager! Vi fant ikke noen resultater.
|
|
16
|
-
no_items_yet: Det er ingen Banners enda. Klikk på "Lag en ny Banner" for å legge til din første banner.
|
|
17
|
-
banner:
|
|
18
|
-
view_live_html: Vis hvordan denne banner ser ut offentlig <br/><em>(åpner i et nytt vindu)</em>
|
|
19
|
-
edit: Rediger denne banner
|
|
20
|
-
delete: Fjern denne banner permanent
|
|
21
|
-
banners:
|
|
22
|
-
show:
|
|
23
|
-
other: Andre Banners
|
|
24
|
-
activerecord:
|
|
25
|
-
attributes:
|
|
26
|
-
'refinery/banners/banner':
|
|
27
|
-
name: Name
|
|
28
|
-
title: Title
|
|
29
|
-
description: Description
|
|
30
|
-
image: Image
|
|
31
|
-
url: Url
|
|
32
|
-
is_active: Is Active
|
|
33
|
-
start_date: Start Date
|
|
34
|
-
expiry_date: Expiry Date
|
|
35
|
-
position: Position
|
|
1
|
+
nb:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
banners:
|
|
5
|
+
title: Banners
|
|
6
|
+
banners:
|
|
7
|
+
admin:
|
|
8
|
+
banners:
|
|
9
|
+
actions:
|
|
10
|
+
create_new: Lag en ny Banner
|
|
11
|
+
reorder: Endre rekkefølgen på Banners
|
|
12
|
+
reorder_done: Ferdig å endre rekkefølgen Banners
|
|
13
|
+
records:
|
|
14
|
+
title: Banners
|
|
15
|
+
sorry_no_results: Beklager! Vi fant ikke noen resultater.
|
|
16
|
+
no_items_yet: Det er ingen Banners enda. Klikk på "Lag en ny Banner" for å legge til din første banner.
|
|
17
|
+
banner:
|
|
18
|
+
view_live_html: Vis hvordan denne banner ser ut offentlig <br/><em>(åpner i et nytt vindu)</em>
|
|
19
|
+
edit: Rediger denne banner
|
|
20
|
+
delete: Fjern denne banner permanent
|
|
21
|
+
banners:
|
|
22
|
+
show:
|
|
23
|
+
other: Andre Banners
|
|
24
|
+
activerecord:
|
|
25
|
+
attributes:
|
|
26
|
+
'refinery/banners/banner':
|
|
27
|
+
name: Name
|
|
28
|
+
title: Title
|
|
29
|
+
description: Description
|
|
30
|
+
image: Image
|
|
31
|
+
url: Url
|
|
32
|
+
is_active: Is Active
|
|
33
|
+
start_date: Start Date
|
|
34
|
+
expiry_date: Expiry Date
|
|
35
|
+
position: Position
|
|
36
|
+
pages: Sider
|
data/config/locales/nl.yml
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
nl:
|
|
2
|
-
refinery:
|
|
3
|
-
plugins:
|
|
4
|
-
banners:
|
|
5
|
-
title: Banners
|
|
6
|
-
banners:
|
|
7
|
-
admin:
|
|
8
|
-
banners:
|
|
9
|
-
actions:
|
|
10
|
-
create_new: Maak een nieuwe Banner
|
|
11
|
-
reorder: Wijzig de volgorde van de Banners
|
|
12
|
-
reorder_done: Klaar met het wijzingen van de volgorde van de Banners
|
|
13
|
-
records:
|
|
14
|
-
title: Banners
|
|
15
|
-
sorry_no_results: Helaas! Er zijn geen resultaten gevonden.
|
|
16
|
-
no_items_yet: Er zijn nog geen Banners. Druk op 'Maak een nieuwe Banner' om de eerste aan te maken.
|
|
17
|
-
banner:
|
|
18
|
-
view_live_html: Bekijk deze banner op de website <br/><em>(opent een nieuw venster)</em>
|
|
19
|
-
edit: Bewerk deze banner
|
|
20
|
-
delete: Verwijder deze banner voor eeuwig
|
|
21
|
-
banners:
|
|
22
|
-
show:
|
|
23
|
-
other: Andere Banners
|
|
24
|
-
activerecord:
|
|
25
|
-
attributes:
|
|
26
|
-
'refinery/banners/banner':
|
|
27
|
-
name: Name
|
|
28
|
-
title: Title
|
|
29
|
-
description: Description
|
|
30
|
-
image: Image
|
|
31
|
-
url: Url
|
|
32
|
-
is_active: Is Active
|
|
33
|
-
start_date: Start Date
|
|
34
|
-
expiry_date: Expiry Date
|
|
35
|
-
position: Position
|
|
1
|
+
nl:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
banners:
|
|
5
|
+
title: Banners
|
|
6
|
+
banners:
|
|
7
|
+
admin:
|
|
8
|
+
banners:
|
|
9
|
+
actions:
|
|
10
|
+
create_new: Maak een nieuwe Banner
|
|
11
|
+
reorder: Wijzig de volgorde van de Banners
|
|
12
|
+
reorder_done: Klaar met het wijzingen van de volgorde van de Banners
|
|
13
|
+
records:
|
|
14
|
+
title: Banners
|
|
15
|
+
sorry_no_results: Helaas! Er zijn geen resultaten gevonden.
|
|
16
|
+
no_items_yet: Er zijn nog geen Banners. Druk op 'Maak een nieuwe Banner' om de eerste aan te maken.
|
|
17
|
+
banner:
|
|
18
|
+
view_live_html: Bekijk deze banner op de website <br/><em>(opent een nieuw venster)</em>
|
|
19
|
+
edit: Bewerk deze banner
|
|
20
|
+
delete: Verwijder deze banner voor eeuwig
|
|
21
|
+
banners:
|
|
22
|
+
show:
|
|
23
|
+
other: Andere Banners
|
|
24
|
+
activerecord:
|
|
25
|
+
attributes:
|
|
26
|
+
'refinery/banners/banner':
|
|
27
|
+
name: Name
|
|
28
|
+
title: Title
|
|
29
|
+
description: Description
|
|
30
|
+
image: Image
|
|
31
|
+
url: Url
|
|
32
|
+
is_active: Is Active
|
|
33
|
+
start_date: Start Date
|
|
34
|
+
expiry_date: Expiry Date
|
|
35
|
+
position: Position
|
|
36
|
+
pages: "Pagina's"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
sk:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
banners:
|
|
5
|
+
title: Banery
|
|
6
|
+
banners:
|
|
7
|
+
admin:
|
|
8
|
+
banner: baner
|
|
9
|
+
banners:
|
|
10
|
+
actions:
|
|
11
|
+
create_new: Pridať nový baner
|
|
12
|
+
reorder: Zmeniť usporiadanie banerov
|
|
13
|
+
reorder_done: Uložiť usporiadanie
|
|
14
|
+
records:
|
|
15
|
+
title: Banery
|
|
16
|
+
sorry_no_results: Žiadne záznamy sa nenašli
|
|
17
|
+
no_items_yet: Zatiaľ neboli pridané žiadne záznamy. Klikni "Pridať nový banner" pre pridanie prvého.
|
|
18
|
+
banner:
|
|
19
|
+
view_live_html: Zobraziť baner<br/><em>(otvorí sa v novom okne)</em>
|
|
20
|
+
edit: Upraviť tento album
|
|
21
|
+
delete: Zmazať tento baner
|
|
22
|
+
banners:
|
|
23
|
+
show:
|
|
24
|
+
other: Ďalšie banery
|
|
25
|
+
activerecord:
|
|
26
|
+
attributes:
|
|
27
|
+
'refinery/banners/banner':
|
|
28
|
+
name: Názov
|
|
29
|
+
title: Nadpis
|
|
30
|
+
description: Popis
|
|
31
|
+
image: Obrázok
|
|
32
|
+
url: Url
|
|
33
|
+
is_active: Je aktívny
|
|
34
|
+
start_date: Dátum publikovania
|
|
35
|
+
expiry_date: Dátum expirácie
|
|
36
|
+
position: Pozícia
|
|
37
|
+
pages: Stránky
|
data/readme.md
CHANGED
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Simple banners engine for [Refinery CMS](http://refinerycms.com). Creates a many-to-many relationship between Pages and Banners, allowing an Image to be assigned to a Banner as well.
|
|
4
4
|
|
|
5
|
-
This version of `refinerycms-pc_banners` supports Rails 3.
|
|
6
|
-
|
|
7
5
|
## Requirements
|
|
8
6
|
|
|
9
|
-
Refinery CMS version 2.0.
|
|
7
|
+
Refinery CMS version 2.0.x
|
|
10
8
|
|
|
11
9
|
## Install
|
|
12
10
|
|
|
13
11
|
Open up your ``Gemfile`` and add the following:
|
|
14
12
|
|
|
15
|
-
gem 'refinerycms-pc_banners', '2.0.
|
|
13
|
+
gem 'refinerycms-pc_banners', '~> 2.0.2'
|
|
16
14
|
|
|
17
15
|
Now, run:
|
|
18
16
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: refinerycms-pc_banners
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,10 +9,10 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-10-03 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name: refinerycms-
|
|
15
|
+
name: refinerycms-pages
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
@@ -49,6 +49,8 @@ executables: []
|
|
|
49
49
|
extensions: []
|
|
50
50
|
extra_rdoc_files: []
|
|
51
51
|
files:
|
|
52
|
+
- app/assets/javascripts/banners/banners.js
|
|
53
|
+
- app/assets/javascripts/banners/jquery.tristate.js
|
|
52
54
|
- app/controllers/refinery/banners/admin/banners_controller.rb
|
|
53
55
|
- app/controllers/refinery/banners/banners_controller.rb
|
|
54
56
|
- app/models/refinery/banners/banner.rb
|
|
@@ -59,6 +61,7 @@ files:
|
|
|
59
61
|
- app/views/refinery/banners/admin/banners/_banner.html.erb
|
|
60
62
|
- app/views/refinery/banners/admin/banners/_banners.html.erb
|
|
61
63
|
- app/views/refinery/banners/admin/banners/_form.html.erb
|
|
64
|
+
- app/views/refinery/banners/admin/banners/_page.html.erb
|
|
62
65
|
- app/views/refinery/banners/admin/banners/_records.html.erb
|
|
63
66
|
- app/views/refinery/banners/admin/banners/_sortable_list.html.erb
|
|
64
67
|
- app/views/refinery/banners/shared/_banners.html.erb
|
|
@@ -68,6 +71,7 @@ files:
|
|
|
68
71
|
- config/locales/fr.yml
|
|
69
72
|
- config/locales/nb.yml
|
|
70
73
|
- config/locales/nl.yml
|
|
74
|
+
- config/locales/sk.yml
|
|
71
75
|
- config/routes.rb
|
|
72
76
|
- db/migrate/1_create_banners_banners.rb
|
|
73
77
|
- db/migrate/2_create_banners_banners_pages.rb
|