beef-pages 0.3.20 → 0.3.21
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.21
|
@@ -15,8 +15,9 @@ class PagesController < ApplicationController
|
|
15
15
|
|
16
16
|
def preview
|
17
17
|
@page = Page.new(session[:page_preview])
|
18
|
-
|
19
|
-
@
|
18
|
+
asset_ids = session[:page_preview][:asset_ids]
|
19
|
+
@images = Asset.images.all(:conditions => {:id => asset_ids }).sort{|x,y| asset_ids.index(y.id.to_s) <=> asset_ids.index(x.id.to_s) }.reverse
|
20
|
+
@documents = Asset.documents.all(:conditions => {:id => asset_ids }).sort{|x,y| asset_ids.index(y.id.to_s) <=> asset_ids.index(x.id.to_s) }.reverse
|
20
21
|
|
21
22
|
@page.id = 0
|
22
23
|
@page.published_at = Time.now
|
data/beef-pages.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{beef-pages}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.21"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Steve England"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-16}
|
13
13
|
s.email = %q{steve@wearebeef.co.uk}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -7,11 +7,12 @@
|
|
7
7
|
|
8
8
|
<%= @page.body %>
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
<% unless @documents.empty? %>
|
11
|
+
<h3 class="hidden">Document Download</h3>
|
12
|
+
<%= documents @documents %>
|
13
|
+
<% end -%>
|
12
14
|
|
13
|
-
<%
|
14
|
-
<% else -%>
|
15
|
+
<% unless @images.empty? %>
|
15
16
|
<h3 class="hidden">Gallery</h3>
|
16
17
|
<div id="gallery">
|
17
18
|
<div class="image-gallery">
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beef-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve England
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-04-
|
12
|
+
date: 2010-04-16 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|