refinerycms 0.9.5.16 → 0.9.5.17
Sign up to get free protection for your applications and to get access to all the features.
- data/vendor/plugins/inquiries/app/views/inquiries/new.html.erb +4 -7
- data/vendor/plugins/inquiries/app/views/inquiries/thank_you.html.erb +1 -9
- data/vendor/plugins/news/app/views/news_items/index.html.erb +15 -19
- data/vendor/plugins/pages/app/views/pages/home.html.erb +1 -9
- data/vendor/plugins/pages/app/views/pages/show.html.erb +1 -15
- data/vendor/plugins/refinery/app/views/shared/_content_page.html.erb +15 -0
- metadata +3 -2
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
<div id="body_content_left" class='inquiries'>
|
1
|
+
<% content_for :body_content_left do %>
|
2
|
+
<div class='inquiries'>
|
4
3
|
<%= @page[:body] %>
|
5
4
|
|
6
5
|
<%= error_messages_for :inquiry, :header_message => "Whoops there was a small problem",
|
@@ -28,7 +27,5 @@
|
|
28
27
|
</div>
|
29
28
|
<% end %>
|
30
29
|
</div>
|
31
|
-
|
32
|
-
|
33
|
-
</div>
|
34
|
-
</div>
|
30
|
+
<% end %>
|
31
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -1,9 +1 @@
|
|
1
|
-
|
2
|
-
<h1 id='body_content_page_title'><%= page_title %></h1>
|
3
|
-
<div id="body_content_left">
|
4
|
-
<%= @page[:body] %>
|
5
|
-
</div>
|
6
|
-
<div id='body_content_right' class='clearfix'>
|
7
|
-
<%= @page[:side_body] %>
|
8
|
-
</div>
|
9
|
-
</div>
|
1
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -1,21 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<div id='body_content_left' class='clearfix'>
|
4
|
-
<%= @page[:body] %>
|
1
|
+
<% content_for :body_content_left do %>
|
2
|
+
<%= @page[:body] %>
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<% end %>
|
14
|
-
<% else %>
|
15
|
-
<p><em>Sorry we haven't posted up any news yet.</em></p>
|
4
|
+
<% if @news_items.size > 0 %>
|
5
|
+
<% @news_items.each do |item| %>
|
6
|
+
<h3><%= link_to item.title, news_item_url(item) %></h3>
|
7
|
+
<p>
|
8
|
+
<small>Published <%= item.publish_date.strftime("%A %d of %B, %Y") %></small>
|
9
|
+
</p>
|
10
|
+
<%= truncate(item.body, :length => 200, :omission => " ... #{link_to "Read more", news_item_url(item)}", :preserve_html_tags => true) %>
|
16
11
|
<% end %>
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
<% else %>
|
13
|
+
<p><em>Sorry we haven't posted up any news yet.</em></p>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -1,9 +1 @@
|
|
1
|
-
|
2
|
-
<h1 id='body_content_page_title'><%= page_title %></h1>
|
3
|
-
<div id='body_content_left' class='clearfix'>
|
4
|
-
<%= @page[:body] %>
|
5
|
-
</div>
|
6
|
-
<div id='body_content_right' class='clearfix'>
|
7
|
-
<%= @page[:side_body] %>
|
8
|
-
</div>
|
9
|
-
</div>
|
1
|
+
<%= render :partial => "/shared/content_page", :locals => {:show_submenu => false} %>
|
@@ -1,15 +1 @@
|
|
1
|
-
<%= render :partial => "/shared/
|
2
|
-
<div id='body_content' class='clearfix'>
|
3
|
-
<h1 id='body_content_page_title'><%= page_title %></h1>
|
4
|
-
<div id='body_content_left' class='clearfix'>
|
5
|
-
<%= @page[:body] %>
|
6
|
-
</div>
|
7
|
-
<div id='body_content_right' class='clearfix'>
|
8
|
-
<%= @page[:side_body] %>
|
9
|
-
</div>
|
10
|
-
</div>
|
11
|
-
<% unless @page.live? %>
|
12
|
-
<div style='border: 1px solid #A00027;color: #A00027;background: #FFB1B1;padding:3px 9px;font-weight:bold;width:auto'>
|
13
|
-
This page is NOT live for public viewing.
|
14
|
-
</div>
|
15
|
-
<% end %>
|
1
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= render :partial => "/shared/submenu" if (show_submenu ||= true) and RefinerySetting.find_or_set(:show_submenu_on_content_pages, true) %>
|
2
|
+
<div id='body_content' class='clearfix'>
|
3
|
+
<h1 id='body_content_page_title'><%= page_title %></h1>
|
4
|
+
<div id='body_content_left' class='clearfix'>
|
5
|
+
<%= (body_content_left = yield :body_content_left).blank? ? @page[:body] : body_content_left %>
|
6
|
+
</div>
|
7
|
+
<div id='body_content_right' class='clearfix'>
|
8
|
+
<%= (body_content_right = yield :body_content_right).blank? ? @page[:side_body] : body_content_right %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<% unless @page.live? %>
|
12
|
+
<div style='border: 1px solid #A00027;color: #A00027;background: #FFB1B1;padding:3px 9px;font-weight:bold;width:auto'>
|
13
|
+
This page is NOT live for public viewing.
|
14
|
+
</div>
|
15
|
+
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.5.
|
4
|
+
version: 0.9.5.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Resolve Digital
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-11-
|
14
|
+
date: 2009-11-27 00:00:00 +13:00
|
15
15
|
default_executable: refinery
|
16
16
|
dependencies: []
|
17
17
|
|
@@ -426,6 +426,7 @@ files:
|
|
426
426
|
- vendor/plugins/refinery/app/views/admin/_menu.html.erb
|
427
427
|
- vendor/plugins/refinery/app/views/layouts/admin.html.erb
|
428
428
|
- vendor/plugins/refinery/app/views/layouts/application.html.erb
|
429
|
+
- vendor/plugins/refinery/app/views/shared/_content_page.html.erb
|
429
430
|
- vendor/plugins/refinery/app/views/shared/_footer.html.erb
|
430
431
|
- vendor/plugins/refinery/app/views/shared/_google_analytics.html.erb
|
431
432
|
- vendor/plugins/refinery/app/views/shared/_header.html.erb
|