refinerycms-pods 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/refinery/pods/admin/pods_controller.rb +12 -12
- data/app/controllers/refinery/pods/pods_controller.rb +34 -34
- data/app/models/refinery/pods/pod.rb +25 -25
- data/app/views/refinery/pods/admin/pods/_actions.html.erb +25 -25
- data/app/views/refinery/pods/admin/pods/_form.html.erb +86 -86
- data/app/views/refinery/pods/admin/pods/_pod.html.erb +20 -20
- data/app/views/refinery/pods/admin/pods/_pods.html.erb +2 -2
- data/app/views/refinery/pods/admin/pods/_records.html.erb +18 -18
- data/app/views/refinery/pods/admin/pods/_sortable_list.html.erb +5 -5
- data/app/views/refinery/pods/admin/pods/edit.html.erb +1 -1
- data/app/views/refinery/pods/admin/pods/index.html.erb +7 -7
- data/app/views/refinery/pods/admin/pods/new.html.erb +1 -1
- data/config/locales/en.yml +32 -32
- data/config/locales/es.yml +33 -33
- data/config/locales/fr.yml +32 -32
- data/config/locales/nb.yml +32 -32
- data/config/locales/nl.yml +32 -32
- data/config/routes.rb +19 -19
- data/db/migrate/1_create_pods_pods.rb +37 -37
- data/db/seeds.rb +23 -23
- data/lib/generators/refinery/pods_generator.rb +18 -18
- data/lib/refinery/pods/engine.rb +32 -32
- data/lib/refinery/pods.rb +21 -21
- data/lib/refinerycms-pods.rb +1 -1
- data/lib/tasks/refinery/pods.rake +12 -12
- data/public/images/bx_next_gal.png +0 -0
- data/public/images/bx_prev_gal.png +0 -0
- data/public/images/colorbox/border.png +0 -0
- data/public/images/colorbox/controls.png +0 -0
- data/public/images/colorbox/ie6/borderBottomCenter.png +0 -0
- data/public/images/colorbox/ie6/borderBottomLeft.png +0 -0
- data/public/images/colorbox/ie6/borderBottomRight.png +0 -0
- data/public/images/colorbox/ie6/borderMiddleLeft.png +0 -0
- data/public/images/colorbox/ie6/borderMiddleRight.png +0 -0
- data/public/images/colorbox/ie6/borderTopCenter.png +0 -0
- data/public/images/colorbox/ie6/borderTopLeft.png +0 -0
- data/public/images/colorbox/ie6/borderTopRight.png +0 -0
- data/public/images/colorbox/loading.gif +0 -0
- data/public/images/colorbox/loading_background.png +0 -0
- data/public/images/colorbox/overlay.png +0 -0
- data/public/javascripts/jquery-1.5.2.min.js +16 -0
- data/public/javascripts/jquery.bxSlider.min.js +114 -0
- data/public/javascripts/jquery.colorbox-min.js +4 -0
- data/public/javascripts/refinerycms-pods.js +20 -0
- data/public/stylesheets/colorbox.css +82 -0
- data/public/stylesheets/refinerycms-pods.css +4 -0
- data/readme.md +45 -40
- metadata +35 -14
@@ -1,12 +1,12 @@
|
|
1
|
-
module Refinery
|
2
|
-
module Pods
|
3
|
-
module Admin
|
4
|
-
class PodsController < ::Refinery::AdminController
|
5
|
-
|
6
|
-
crudify :'refinery/pods/pod',
|
7
|
-
:title_attribute => 'name', :xhr_paging => true
|
8
|
-
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
1
|
+
module Refinery
|
2
|
+
module Pods
|
3
|
+
module Admin
|
4
|
+
class PodsController < ::Refinery::AdminController
|
5
|
+
|
6
|
+
crudify :'refinery/pods/pod',
|
7
|
+
:title_attribute => 'name', :xhr_paging => true
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -1,34 +1,34 @@
|
|
1
|
-
module Refinery
|
2
|
-
module Pods
|
3
|
-
class PodsController < ::ApplicationController
|
4
|
-
|
5
|
-
before_filter :find_all_pods
|
6
|
-
before_filter :find_page
|
7
|
-
|
8
|
-
def index
|
9
|
-
# you can use meta fields from your model instead (e.g. browser_title)
|
10
|
-
# by swapping @page for @pod in the line below:
|
11
|
-
present(@page)
|
12
|
-
end
|
13
|
-
|
14
|
-
def show
|
15
|
-
@pod = Pod.find(params[:id])
|
16
|
-
|
17
|
-
# you can use meta fields from your model instead (e.g. browser_title)
|
18
|
-
# by swapping @page for @pod in the line below:
|
19
|
-
present(@page)
|
20
|
-
end
|
21
|
-
|
22
|
-
protected
|
23
|
-
|
24
|
-
def find_all_pods
|
25
|
-
@pods = Pod.order('position ASC')
|
26
|
-
end
|
27
|
-
|
28
|
-
def find_page
|
29
|
-
@page = ::Refinery::Page.where(:link_url => "/pods").first
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
1
|
+
module Refinery
|
2
|
+
module Pods
|
3
|
+
class PodsController < ::ApplicationController
|
4
|
+
|
5
|
+
before_filter :find_all_pods
|
6
|
+
before_filter :find_page
|
7
|
+
|
8
|
+
def index
|
9
|
+
# you can use meta fields from your model instead (e.g. browser_title)
|
10
|
+
# by swapping @page for @pod in the line below:
|
11
|
+
present(@page)
|
12
|
+
end
|
13
|
+
|
14
|
+
def show
|
15
|
+
@pod = Pod.find(params[:id])
|
16
|
+
|
17
|
+
# you can use meta fields from your model instead (e.g. browser_title)
|
18
|
+
# by swapping @page for @pod in the line below:
|
19
|
+
present(@page)
|
20
|
+
end
|
21
|
+
|
22
|
+
protected
|
23
|
+
|
24
|
+
def find_all_pods
|
25
|
+
@pods = Pod.order('position ASC')
|
26
|
+
end
|
27
|
+
|
28
|
+
def find_page
|
29
|
+
@page = ::Refinery::Page.where(:link_url => "/pods").first
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -1,25 +1,25 @@
|
|
1
|
-
module Refinery
|
2
|
-
module Pods
|
3
|
-
class Pod < Refinery::Core::BaseModel
|
4
|
-
self.table_name = 'refinery_pods'
|
5
|
-
|
6
|
-
POD_TYPES = %w(content banner gallery video)
|
7
|
-
|
8
|
-
acts_as_indexed :fields => [:name, :body, :url, :pod_type]
|
9
|
-
|
10
|
-
validates_presence_of :name
|
11
|
-
validates_inclusion_of :pod_type, :in => POD_TYPES
|
12
|
-
|
13
|
-
belongs_to :image, :class_name => '::Refinery::Image'
|
14
|
-
|
15
|
-
belongs_to :portfolio_entry, :class_name => '::Refinery::Portfolio::Gallery'
|
16
|
-
belongs_to :video, :class_name => '::Refinery::Videos::Video'
|
17
|
-
has_and_belongs_to_many :pages, :class_name => '::Refinery::Page', :join_table => 'refinery_pages_pods'
|
18
|
-
|
19
|
-
def system_name
|
20
|
-
pod_type
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
1
|
+
module Refinery
|
2
|
+
module Pods
|
3
|
+
class Pod < Refinery::Core::BaseModel
|
4
|
+
self.table_name = 'refinery_pods'
|
5
|
+
|
6
|
+
POD_TYPES = %w(content banner gallery video)
|
7
|
+
|
8
|
+
acts_as_indexed :fields => [:name, :body, :url, :pod_type]
|
9
|
+
|
10
|
+
validates_presence_of :name
|
11
|
+
validates_inclusion_of :pod_type, :in => POD_TYPES
|
12
|
+
|
13
|
+
belongs_to :image, :class_name => '::Refinery::Image'
|
14
|
+
|
15
|
+
belongs_to :portfolio_entry, :class_name => '::Refinery::Portfolio::Gallery'
|
16
|
+
belongs_to :video, :class_name => '::Refinery::Videos::Video'
|
17
|
+
has_and_belongs_to_many :pages, :class_name => '::Refinery::Page', :join_table => 'refinery_pages_pods'
|
18
|
+
|
19
|
+
def system_name
|
20
|
+
pod_type
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -1,25 +1,25 @@
|
|
1
|
-
<ul>
|
2
|
-
<% if ::Refinery::Pods::Admin::PodsController.searchable? %>
|
3
|
-
<li>
|
4
|
-
<%= render '/refinery/admin/search', :url => refinery.pods_admin_pods_path %>
|
5
|
-
</li>
|
6
|
-
<% end %>
|
7
|
-
<li>
|
8
|
-
<%= link_to t('.create_new'), refinery.new_pods_admin_pod_path,
|
9
|
-
:class => "add_icon" %>
|
10
|
-
</li>
|
11
|
-
<% if !searching? && ::Refinery::Pods::Admin::PodsController.sortable? && ::Refinery::Pods::Pod.any? %>
|
12
|
-
<li>
|
13
|
-
<%= link_to t('.reorder', :what => "Pods"),
|
14
|
-
refinery.pods_admin_pods_path,
|
15
|
-
:id => "reorder_action",
|
16
|
-
:class => "reorder_icon" %>
|
17
|
-
|
18
|
-
<%= link_to t('.reorder_done', :what => "Pods"),
|
19
|
-
refinery.pods_admin_pods_path,
|
20
|
-
:id => "reorder_action_done",
|
21
|
-
:style => "display: none;",
|
22
|
-
:class => "reorder_icon" %>
|
23
|
-
</li>
|
24
|
-
<% end %>
|
25
|
-
</ul>
|
1
|
+
<ul>
|
2
|
+
<% if ::Refinery::Pods::Admin::PodsController.searchable? %>
|
3
|
+
<li>
|
4
|
+
<%= render '/refinery/admin/search', :url => refinery.pods_admin_pods_path %>
|
5
|
+
</li>
|
6
|
+
<% end %>
|
7
|
+
<li>
|
8
|
+
<%= link_to t('.create_new'), refinery.new_pods_admin_pod_path,
|
9
|
+
:class => "add_icon" %>
|
10
|
+
</li>
|
11
|
+
<% if !searching? && ::Refinery::Pods::Admin::PodsController.sortable? && ::Refinery::Pods::Pod.any? %>
|
12
|
+
<li>
|
13
|
+
<%= link_to t('.reorder', :what => "Pods"),
|
14
|
+
refinery.pods_admin_pods_path,
|
15
|
+
:id => "reorder_action",
|
16
|
+
:class => "reorder_icon" %>
|
17
|
+
|
18
|
+
<%= link_to t('.reorder_done', :what => "Pods"),
|
19
|
+
refinery.pods_admin_pods_path,
|
20
|
+
:id => "reorder_action_done",
|
21
|
+
:style => "display: none;",
|
22
|
+
:class => "reorder_icon" %>
|
23
|
+
</li>
|
24
|
+
<% end %>
|
25
|
+
</ul>
|
@@ -1,86 +1,86 @@
|
|
1
|
-
<%= form_for [refinery, :pods_admin, @pod] do |f| -%>
|
2
|
-
<%= render '/refinery/admin/error_messages',
|
3
|
-
:object => @pod,
|
4
|
-
:include_object_name => true %>
|
5
|
-
|
6
|
-
<%= hidden_field_tag 'pod[page_ids][]' %>
|
7
|
-
|
8
|
-
<div class='field'>
|
9
|
-
<%= f.label :pod_type -%>
|
10
|
-
<%= f.select :pod_type, ::Refinery::Pods::Pod::POD_TYPES, {:include_blank => true} %>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<div class='field'>
|
14
|
-
<%= f.label :name -%>
|
15
|
-
<%= f.text_field :name, :class => 'larger widest' -%>
|
16
|
-
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class='field'>
|
20
|
-
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
|
21
|
-
<ul id='page_parts'>
|
22
|
-
<% [:body].each_with_index do |part, part_index| %>
|
23
|
-
<li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
|
24
|
-
<%= link_to t("#{part}", :scope => "activerecord.attributes.refinery/pods/pod", :default => part.to_s.titleize), "##{part}" %>
|
25
|
-
</li>
|
26
|
-
<% end %>
|
27
|
-
</ul>
|
28
|
-
<div id='page_part_editors'>
|
29
|
-
<% [:body].each do |part| %>
|
30
|
-
<div class='page_part' id='<%= part %>'>
|
31
|
-
<%= f.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
|
32
|
-
</div>
|
33
|
-
<% end %>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div class='field'>
|
40
|
-
<%= f.label :url -%>
|
41
|
-
<%= f.text_field :url -%>
|
42
|
-
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div class='field'>
|
46
|
-
<%= f.label :image -%>
|
47
|
-
<%= render '/refinery/admin/image_picker',
|
48
|
-
:f => f,
|
49
|
-
:field => :image_id,
|
50
|
-
:image => @pod.image,
|
51
|
-
:toggle_image_display => false %>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
|
55
|
-
<div class='field'>
|
56
|
-
<%= f.label :portfolio_entry_id, 'Gallery' -%>
|
57
|
-
<%= f.collection_select :portfolio_entry_id, ::Refinery::Portfolio::Gallery.order(:title), :id , :title, {:prompt => "-- Please select when relevant --"}, {} -%>
|
58
|
-
</div>
|
59
|
-
|
60
|
-
<div class='field'>
|
61
|
-
<%= f.label :video_id -%>
|
62
|
-
<%= f.collection_select :video_id, ::Refinery::Videos::Video.order(:name), :id , :name, {:prompt => "-- Please select when relevant --"}, {} -%>
|
63
|
-
</div>
|
64
|
-
|
65
|
-
<div class="field">
|
66
|
-
<%= f.label :pages %>
|
67
|
-
<% ::Refinery::Page.all.each do |page| %>
|
68
|
-
<div>
|
69
|
-
<%= check_box_tag "pod[page_ids][]", page.id, @pod.pages.include?(page) %>
|
70
|
-
<%= page.title %>
|
71
|
-
</div>
|
72
|
-
<% end %>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
<%= render '/refinery/admin/form_actions', :f => f,
|
76
|
-
:continue_editing => false,
|
77
|
-
:delete_title => t('delete', :scope => 'refinery.pods.admin.pods.pod'),
|
78
|
-
:delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @pod.name) %>
|
79
|
-
<% end -%>
|
80
|
-
<% content_for :javascripts do %>
|
81
|
-
<script>
|
82
|
-
$(document).ready(function(){
|
83
|
-
page_options.init(false, '', '');
|
84
|
-
});
|
85
|
-
</script>
|
86
|
-
<% end %>
|
1
|
+
<%= form_for [refinery, :pods_admin, @pod] do |f| -%>
|
2
|
+
<%= render '/refinery/admin/error_messages',
|
3
|
+
:object => @pod,
|
4
|
+
:include_object_name => true %>
|
5
|
+
|
6
|
+
<%= hidden_field_tag 'pod[page_ids][]' %>
|
7
|
+
|
8
|
+
<div class='field'>
|
9
|
+
<%= f.label :pod_type -%>
|
10
|
+
<%= f.select :pod_type, ::Refinery::Pods::Pod::POD_TYPES, {:include_blank => true} %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class='field'>
|
14
|
+
<%= f.label :name -%>
|
15
|
+
<%= f.text_field :name, :class => 'larger widest' -%>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class='field'>
|
20
|
+
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
|
21
|
+
<ul id='page_parts'>
|
22
|
+
<% [:body].each_with_index do |part, part_index| %>
|
23
|
+
<li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
|
24
|
+
<%= link_to t("#{part}", :scope => "activerecord.attributes.refinery/pods/pod", :default => part.to_s.titleize), "##{part}" %>
|
25
|
+
</li>
|
26
|
+
<% end %>
|
27
|
+
</ul>
|
28
|
+
<div id='page_part_editors'>
|
29
|
+
<% [:body].each do |part| %>
|
30
|
+
<div class='page_part' id='<%= part %>'>
|
31
|
+
<%= f.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
|
32
|
+
</div>
|
33
|
+
<% end %>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class='field'>
|
40
|
+
<%= f.label :url -%>
|
41
|
+
<%= f.text_field :url -%>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div class='field'>
|
46
|
+
<%= f.label :image -%>
|
47
|
+
<%= render '/refinery/admin/image_picker',
|
48
|
+
:f => f,
|
49
|
+
:field => :image_id,
|
50
|
+
:image => @pod.image,
|
51
|
+
:toggle_image_display => false %>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<div class='field'>
|
56
|
+
<%= f.label :portfolio_entry_id, 'Gallery' -%>
|
57
|
+
<%= f.collection_select :portfolio_entry_id, ::Refinery::Portfolio::Gallery.order(:title), :id , :title, {:prompt => "-- Please select when relevant --"}, {} -%>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<div class='field'>
|
61
|
+
<%= f.label :video_id -%>
|
62
|
+
<%= f.collection_select :video_id, ::Refinery::Videos::Video.order(:name), :id , :name, {:prompt => "-- Please select when relevant --"}, {} -%>
|
63
|
+
</div>
|
64
|
+
|
65
|
+
<div class="field">
|
66
|
+
<%= f.label :pages %>
|
67
|
+
<% ::Refinery::Page.all.each do |page| %>
|
68
|
+
<div>
|
69
|
+
<%= check_box_tag "pod[page_ids][]", page.id, @pod.pages.include?(page) %>
|
70
|
+
<%= page.title %>
|
71
|
+
</div>
|
72
|
+
<% end %>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<%= render '/refinery/admin/form_actions', :f => f,
|
76
|
+
:continue_editing => false,
|
77
|
+
:delete_title => t('delete', :scope => 'refinery.pods.admin.pods.pod'),
|
78
|
+
:delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @pod.name) %>
|
79
|
+
<% end -%>
|
80
|
+
<% content_for :javascripts do %>
|
81
|
+
<script>
|
82
|
+
$(document).ready(function(){
|
83
|
+
page_options.init(false, '', '');
|
84
|
+
});
|
85
|
+
</script>
|
86
|
+
<% end %>
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(pod) -%>">
|
2
|
-
<span class='title'>
|
3
|
-
<%= pod.name %>
|
4
|
-
|
5
|
-
</span>
|
6
|
-
<span class='actions'>
|
7
|
-
|
8
|
-
<%= link_to refinery_icon_tag("application_go.png"), refinery.pods_pod_path(pod),
|
9
|
-
:title => t('.view_live_html'),
|
10
|
-
:target => "_blank" %>
|
11
|
-
|
12
|
-
<%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_pods_admin_pod_path(pod),
|
13
|
-
:title => t('.edit') %>
|
14
|
-
<%= link_to refinery_icon_tag("delete.png"), refinery.pods_admin_pod_path(pod),
|
15
|
-
:class => "cancel confirm-delete",
|
16
|
-
:title => t('.delete'),
|
17
|
-
:confirm => t('message', :scope => 'refinery.admin.delete', :title => pod.name),
|
18
|
-
:method => :delete %>
|
19
|
-
</span>
|
20
|
-
</li>
|
1
|
+
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(pod) -%>">
|
2
|
+
<span class='title'>
|
3
|
+
<%= pod.name %>
|
4
|
+
|
5
|
+
</span>
|
6
|
+
<span class='actions'>
|
7
|
+
|
8
|
+
<%= link_to refinery_icon_tag("application_go.png"), refinery.pods_pod_path(pod),
|
9
|
+
:title => t('.view_live_html'),
|
10
|
+
:target => "_blank" %>
|
11
|
+
|
12
|
+
<%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_pods_admin_pod_path(pod),
|
13
|
+
:title => t('.edit') %>
|
14
|
+
<%= link_to refinery_icon_tag("delete.png"), refinery.pods_admin_pod_path(pod),
|
15
|
+
:class => "cancel confirm-delete",
|
16
|
+
:title => t('.delete'),
|
17
|
+
:confirm => t('message', :scope => 'refinery.admin.delete', :title => pod.name),
|
18
|
+
:method => :delete %>
|
19
|
+
</span>
|
20
|
+
</li>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<%= will_paginate @pods if Refinery::Pods::Admin::PodsController.pageable? %>
|
2
|
-
<%= render 'sortable_list' %>
|
1
|
+
<%= will_paginate @pods if Refinery::Pods::Admin::PodsController.pageable? %>
|
2
|
+
<%= render 'sortable_list' %>
|
@@ -1,18 +1,18 @@
|
|
1
|
-
<% if searching? %>
|
2
|
-
<h2><%= t('results_for', :scope => 'refinery.admin.search', :query => params[:search]) %></h2>
|
3
|
-
<% end %>
|
4
|
-
<div class='pagination_container'>
|
5
|
-
<% if @pods.any? %>
|
6
|
-
<%= render 'pods' %>
|
7
|
-
<% else %>
|
8
|
-
<p>
|
9
|
-
<% unless searching? %>
|
10
|
-
<strong>
|
11
|
-
<%= t('.no_items_yet') %>
|
12
|
-
</strong>
|
13
|
-
<% else %>
|
14
|
-
<%= t('no_results', :scope => 'refinery.admin.search') %>
|
15
|
-
<% end %>
|
16
|
-
</p>
|
17
|
-
<% end %>
|
18
|
-
</div>
|
1
|
+
<% if searching? %>
|
2
|
+
<h2><%= t('results_for', :scope => 'refinery.admin.search', :query => params[:search]) %></h2>
|
3
|
+
<% end %>
|
4
|
+
<div class='pagination_container'>
|
5
|
+
<% if @pods.any? %>
|
6
|
+
<%= render 'pods' %>
|
7
|
+
<% else %>
|
8
|
+
<p>
|
9
|
+
<% unless searching? %>
|
10
|
+
<strong>
|
11
|
+
<%= t('.no_items_yet') %>
|
12
|
+
</strong>
|
13
|
+
<% else %>
|
14
|
+
<%= t('no_results', :scope => 'refinery.admin.search') %>
|
15
|
+
<% end %>
|
16
|
+
</p>
|
17
|
+
<% end %>
|
18
|
+
</div>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<ul id='sortable_list'>
|
2
|
-
<%= render :partial => 'pod', :collection => @pods %>
|
3
|
-
</ul>
|
4
|
-
<%= render '/refinery/admin/sortable_list',
|
5
|
-
:continue_reordering => (local_assigns.keys.include?(:continue_reordering)) ? continue_reordering : true %>
|
1
|
+
<ul id='sortable_list'>
|
2
|
+
<%= render :partial => 'pod', :collection => @pods %>
|
3
|
+
</ul>
|
4
|
+
<%= render '/refinery/admin/sortable_list',
|
5
|
+
:continue_reordering => (local_assigns.keys.include?(:continue_reordering)) ? continue_reordering : true %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render 'form' %>
|
1
|
+
<%= render 'form' %>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<section id='records'>
|
2
|
-
<%= render 'records' %>
|
3
|
-
</section>
|
4
|
-
<aside id='actions'>
|
5
|
-
<%= render 'actions' %>
|
6
|
-
</aside>
|
7
|
-
<%= render '/refinery/admin/make_sortable', :tree => false if !searching? and ::Refinery::Pods::Admin::PodsController.sortable? and ::Refinery::Pods::Pod.count > 1 %>
|
1
|
+
<section id='records'>
|
2
|
+
<%= render 'records' %>
|
3
|
+
</section>
|
4
|
+
<aside id='actions'>
|
5
|
+
<%= render 'actions' %>
|
6
|
+
</aside>
|
7
|
+
<%= render '/refinery/admin/make_sortable', :tree => false if !searching? and ::Refinery::Pods::Admin::PodsController.sortable? and ::Refinery::Pods::Pod.count > 1 %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render 'form' %>
|
1
|
+
<%= render 'form' %>
|
data/config/locales/en.yml
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
en:
|
2
|
-
refinery:
|
3
|
-
plugins:
|
4
|
-
pods:
|
5
|
-
title: Pods
|
6
|
-
pods:
|
7
|
-
admin:
|
8
|
-
pods:
|
9
|
-
actions:
|
10
|
-
create_new: Add New Pod
|
11
|
-
reorder: Reorder Pods
|
12
|
-
reorder_done: Done Reordering Pods
|
13
|
-
records:
|
14
|
-
title: Pods
|
15
|
-
sorry_no_results: Sorry! There are no results found.
|
16
|
-
no_items_yet: There are no Pods yet. Click "Add New Pod" to add your first pod.
|
17
|
-
pod:
|
18
|
-
view_live_html: View this pod live <br/><em>(opens in a new window)</em>
|
19
|
-
edit: Edit this pod
|
20
|
-
delete: Remove this pod forever
|
21
|
-
pods:
|
22
|
-
show:
|
23
|
-
other: Other Pods
|
24
|
-
activerecord:
|
25
|
-
attributes:
|
26
|
-
'refinery/pods/pod':
|
27
|
-
name: Name
|
28
|
-
body: Body
|
29
|
-
url: Url
|
30
|
-
image: Image
|
31
|
-
pod_type: Pod Type
|
32
|
-
portfolio_entry_id: Portfolio Entry
|
1
|
+
en:
|
2
|
+
refinery:
|
3
|
+
plugins:
|
4
|
+
pods:
|
5
|
+
title: Pods
|
6
|
+
pods:
|
7
|
+
admin:
|
8
|
+
pods:
|
9
|
+
actions:
|
10
|
+
create_new: Add New Pod
|
11
|
+
reorder: Reorder Pods
|
12
|
+
reorder_done: Done Reordering Pods
|
13
|
+
records:
|
14
|
+
title: Pods
|
15
|
+
sorry_no_results: Sorry! There are no results found.
|
16
|
+
no_items_yet: There are no Pods yet. Click "Add New Pod" to add your first pod.
|
17
|
+
pod:
|
18
|
+
view_live_html: View this pod live <br/><em>(opens in a new window)</em>
|
19
|
+
edit: Edit this pod
|
20
|
+
delete: Remove this pod forever
|
21
|
+
pods:
|
22
|
+
show:
|
23
|
+
other: Other Pods
|
24
|
+
activerecord:
|
25
|
+
attributes:
|
26
|
+
'refinery/pods/pod':
|
27
|
+
name: Name
|
28
|
+
body: Body
|
29
|
+
url: Url
|
30
|
+
image: Image
|
31
|
+
pod_type: Pod Type
|
32
|
+
portfolio_entry_id: Portfolio Entry
|
33
33
|
video_id: Video
|
data/config/locales/es.yml
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
es:
|
2
|
-
refinery:
|
3
|
-
plugins:
|
4
|
-
pods:
|
5
|
-
title: Pods
|
6
|
-
# article: masculino/femenino
|
7
|
-
pods:
|
8
|
-
admin:
|
9
|
-
pods:
|
10
|
-
actions:
|
11
|
-
create_new: Crear nuevo pod
|
12
|
-
reorder: Reordenar pods
|
13
|
-
reorder_done: Reordenación de pods completada
|
14
|
-
records:
|
15
|
-
title: Pods
|
16
|
-
sorry_no_results: Lo siento, no hay resultados
|
17
|
-
no_items_yet: No hay pods todavía. Pulsa en "Crear nuevo Pod" para crear tu primer pod.
|
18
|
-
pod:
|
19
|
-
view_live_html: Ver este pod como abierto al público <br/><em>(abre en ventana nueva)</em>
|
20
|
-
edit: Editar este pod
|
21
|
-
delete: Borrar este pod para siempre
|
22
|
-
pods:
|
23
|
-
show:
|
24
|
-
other: Otros pods
|
25
|
-
activerecord:
|
26
|
-
attributes:
|
27
|
-
'refinery/pods/pod':
|
28
|
-
name: Name
|
29
|
-
body: Body
|
30
|
-
url: Url
|
31
|
-
image: Image
|
32
|
-
pod_type: Pod Type
|
33
|
-
portfolio_entry_id: Portfolio Entry
|
1
|
+
es:
|
2
|
+
refinery:
|
3
|
+
plugins:
|
4
|
+
pods:
|
5
|
+
title: Pods
|
6
|
+
# article: masculino/femenino
|
7
|
+
pods:
|
8
|
+
admin:
|
9
|
+
pods:
|
10
|
+
actions:
|
11
|
+
create_new: Crear nuevo pod
|
12
|
+
reorder: Reordenar pods
|
13
|
+
reorder_done: Reordenación de pods completada
|
14
|
+
records:
|
15
|
+
title: Pods
|
16
|
+
sorry_no_results: Lo siento, no hay resultados
|
17
|
+
no_items_yet: No hay pods todavía. Pulsa en "Crear nuevo Pod" para crear tu primer pod.
|
18
|
+
pod:
|
19
|
+
view_live_html: Ver este pod como abierto al público <br/><em>(abre en ventana nueva)</em>
|
20
|
+
edit: Editar este pod
|
21
|
+
delete: Borrar este pod para siempre
|
22
|
+
pods:
|
23
|
+
show:
|
24
|
+
other: Otros pods
|
25
|
+
activerecord:
|
26
|
+
attributes:
|
27
|
+
'refinery/pods/pod':
|
28
|
+
name: Name
|
29
|
+
body: Body
|
30
|
+
url: Url
|
31
|
+
image: Image
|
32
|
+
pod_type: Pod Type
|
33
|
+
portfolio_entry_id: Portfolio Entry
|
34
34
|
video_id: Video
|