fullstack-cms 0.2.24 → 0.2.25
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fullstack-cms.gemspec +1 -12
- data/lib/generators/fullstack/cms/install_generator.rb +19 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/site.js.coffee +4 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/site.css +2 -0
- data/lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb +0 -4
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_javascripts.html.erb +13 -0
- metadata +2 -13
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/blog.html.erb +0 -51
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/contacts.html.erb +0 -42
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/dish.html.erb +0 -38
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/line.html.erb +0 -51
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/post.html.erb +0 -20
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/product.html.erb +0 -56
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/recipe.html.erb +0 -37
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/recipes.html.erb +0 -36
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/sales_channel.html.erb +0 -41
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/text.html.erb +0 -22
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/video.html.erb +0 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.25
|
data/fullstack-cms.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fullstack-cms"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.25"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mcasimir"]
|
@@ -102,18 +102,7 @@ Gem::Specification.new do |s|
|
|
102
102
|
"lib/generators/fullstack/cms/templates/rails/app/views/site/_map.html.erb",
|
103
103
|
"lib/generators/fullstack/cms/templates/rails/app/views/site/_nav.html.erb",
|
104
104
|
"lib/generators/fullstack/cms/templates/rails/app/views/site/_share_buttons_big.html.erb",
|
105
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/blog.html.erb",
|
106
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/contacts.html.erb",
|
107
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/dish.html.erb",
|
108
105
|
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/home.html.erb",
|
109
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/line.html.erb",
|
110
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/post.html.erb",
|
111
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/product.html.erb",
|
112
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/recipe.html.erb",
|
113
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/recipes.html.erb",
|
114
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/sales_channel.html.erb",
|
115
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/text.html.erb",
|
116
|
-
"lib/generators/fullstack/cms/templates/rails/app/views/site/site/video.html.erb",
|
117
106
|
"lib/generators/fullstack/cms/templates/rails/config/fullstack.rb",
|
118
107
|
"lib/generators/fullstack/cms/templates/rails/config/initializers/ckeditor_controller.rb",
|
119
108
|
"lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb",
|
@@ -91,11 +91,30 @@ eos
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
def home_page_helper
|
95
|
+
append_to_file "app/controllers/application_controller.rb", :after => "protect_from_forgery" do
|
96
|
+
%q{
|
97
|
+
|
98
|
+
helper_method :home_page?
|
99
|
+
|
100
|
+
protected
|
101
|
+
|
102
|
+
def home_page?
|
103
|
+
self.class == Site::SiteController && action_name == "home"
|
104
|
+
end
|
105
|
+
|
106
|
+
}
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
|
94
111
|
|
95
112
|
def install_migrations
|
96
113
|
generate "migration:from link menu page_part page redirect setting attachment photo text_page_part text_with_title_page_part"
|
97
114
|
end
|
98
115
|
|
116
|
+
|
117
|
+
|
99
118
|
protected
|
100
119
|
|
101
120
|
def migration_timestamp
|
data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/site.js.coffee
CHANGED
@@ -4,9 +4,13 @@
|
|
4
4
|
#= require support/bootstrap
|
5
5
|
#= require site/lib/plugins
|
6
6
|
#= require site/lib/jquery.fitvids
|
7
|
+
#= require jquery.facebox
|
8
|
+
#= require notify
|
9
|
+
|
7
10
|
# require support/gmap
|
8
11
|
# require angular
|
9
12
|
|
13
|
+
|
10
14
|
$(document).ready ->
|
11
15
|
$('.carousel').carousel()
|
12
16
|
$('.video-thumbnail').fitVids()
|
@@ -12,6 +12,19 @@
|
|
12
12
|
fjs.parentNode.insertBefore(js, fjs);
|
13
13
|
}(document, 'script', 'facebook-jssdk'));</script>
|
14
14
|
|
15
|
+
|
16
|
+
<% [:notice, :error, :alert].each do |sym| %>
|
17
|
+
|
18
|
+
<% if flash[sym].present? %>
|
19
|
+
<%= javascript_tag do %>
|
20
|
+
$.notify.<%= "#{sym}" %>('<%= j "#{flash[sym]}" %>');
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<% flash.discard(sym) %>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<% end %>
|
27
|
+
|
15
28
|
<script type="text/javascript" src="http://platform.twitter.com/widgets.js" async="true">
|
16
29
|
</script>
|
17
30
|
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullstack-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.25
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -296,18 +296,7 @@ files:
|
|
296
296
|
- lib/generators/fullstack/cms/templates/rails/app/views/site/_map.html.erb
|
297
297
|
- lib/generators/fullstack/cms/templates/rails/app/views/site/_nav.html.erb
|
298
298
|
- lib/generators/fullstack/cms/templates/rails/app/views/site/_share_buttons_big.html.erb
|
299
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/blog.html.erb
|
300
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/contacts.html.erb
|
301
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/dish.html.erb
|
302
299
|
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/home.html.erb
|
303
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/line.html.erb
|
304
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/post.html.erb
|
305
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/product.html.erb
|
306
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/recipe.html.erb
|
307
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/recipes.html.erb
|
308
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/sales_channel.html.erb
|
309
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/text.html.erb
|
310
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/video.html.erb
|
311
300
|
- lib/generators/fullstack/cms/templates/rails/config/fullstack.rb
|
312
301
|
- lib/generators/fullstack/cms/templates/rails/config/initializers/ckeditor_controller.rb
|
313
302
|
- lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
|
@@ -344,7 +333,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
344
333
|
version: '0'
|
345
334
|
segments:
|
346
335
|
- 0
|
347
|
-
hash: -
|
336
|
+
hash: -4384714095429169862
|
348
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
349
338
|
none: false
|
350
339
|
requirements:
|
@@ -1,51 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(12) do %>
|
3
|
-
<section>
|
4
|
-
<h1 class="section-title">
|
5
|
-
<%= current_page.title %>
|
6
|
-
</h1>
|
7
|
-
</section>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
|
12
|
-
<%= row do %>
|
13
|
-
|
14
|
-
<%= span(12) do %>
|
15
|
-
|
16
|
-
|
17
|
-
<% if @posts.any? %>
|
18
|
-
<ul class="unstyled index">
|
19
|
-
<% @posts.each do |post| %>
|
20
|
-
|
21
|
-
<li id="<%= post.slug %>" class="index-item">
|
22
|
-
<%= index_item(
|
23
|
-
:title => post.title,
|
24
|
-
:pubdate => post.created_at,
|
25
|
-
:excerpt => post.excerpt,
|
26
|
-
:link_url => page_path_for(post),
|
27
|
-
:link_label => t('continue_reading', :scope => 'site', :default => "Continue Reading"),
|
28
|
-
:image => post.image.url) %>
|
29
|
-
</li>
|
30
|
-
|
31
|
-
<% end %>
|
32
|
-
</ul>
|
33
|
-
<% end %>
|
34
|
-
|
35
|
-
|
36
|
-
<% end %>
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
<% end %>
|
43
|
-
|
44
|
-
<%= row do %>
|
45
|
-
<%= span(12) do %>
|
46
|
-
<%= paginate(@posts) %>
|
47
|
-
|
48
|
-
<% end %>
|
49
|
-
<% end %>
|
50
|
-
|
51
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(12) do %>
|
3
|
-
<section>
|
4
|
-
<div class="section-title">
|
5
|
-
<%= t('site.contacts', :default => "Contacts") %>
|
6
|
-
</div>
|
7
|
-
</section>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<%= row do %>
|
12
|
-
<%= span(5) do %>
|
13
|
-
<% unless params[:success] %>
|
14
|
-
|
15
|
-
<%= semantic_form_for(Contact.new(:locale => I18n.locale), :url => { :controller => "site/site", :action => "contact" }, :builder => FormtasticBootstrap::FormBuilder) do |f| %>
|
16
|
-
|
17
|
-
<%= f.input :locale, :as => :hidden %>
|
18
|
-
<%= f.inputs do %>
|
19
|
-
<%= f.input :first_name, :input_html => {:class => "span5"} %>
|
20
|
-
<%= f.input :second_name, :input_html => {:class => "span5"} %>
|
21
|
-
<%= f.input :email, :input_html => {:class => "span5"} %>
|
22
|
-
<%= f.input :text, :input_html => {:class => "span5"} %>
|
23
|
-
<%= f.input :agreed_to_privacy %>
|
24
|
-
<% end %>
|
25
|
-
<div>
|
26
|
-
<input name="commit" type="submit" value="<%= t("send", :scope => :site, :default => "Send") %>" class="contact-submit">
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<% end %>
|
30
|
-
<% else %>
|
31
|
-
<div class="alert">
|
32
|
-
<%= t("contacts.success", :default => "") %>
|
33
|
-
</div>
|
34
|
-
<% end %>
|
35
|
-
<% end %>
|
36
|
-
|
37
|
-
<%= span(7) do %>
|
38
|
-
<%= part("embed", :schema => :text) do |p| %>
|
39
|
-
<%= raw p.text %>
|
40
|
-
<% end %>
|
41
|
-
<% end %>
|
42
|
-
<% end %>
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(12) do %>
|
3
|
-
<section>
|
4
|
-
<h1 class="section-title">
|
5
|
-
<%= @dish.title %>
|
6
|
-
</h1>
|
7
|
-
</section>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
|
12
|
-
<%= row do %>
|
13
|
-
|
14
|
-
<%= span(12) do %>
|
15
|
-
|
16
|
-
|
17
|
-
<% if @dish.recipes.any? %>
|
18
|
-
<ul class="unstyled index">
|
19
|
-
<% @dish.recipes.order(:title).each do |recipe| %>
|
20
|
-
|
21
|
-
<li id="<%= recipe.slug %>" class="index-item">
|
22
|
-
<%= index_item(
|
23
|
-
:title => recipe.title,
|
24
|
-
:excerpt => recipe.excerpt,
|
25
|
-
:link_url => page_path_for(recipe),
|
26
|
-
:time => recipe.time,
|
27
|
-
:difficulty => recipe.difficulty,
|
28
|
-
:link_label => t('continue_reading', :scope => 'site', :default => "Continue Reading"),
|
29
|
-
:image => recipe.image.url) %>
|
30
|
-
</li>
|
31
|
-
|
32
|
-
<% end %>
|
33
|
-
</ul>
|
34
|
-
<% end %>
|
35
|
-
|
36
|
-
|
37
|
-
<% end %>
|
38
|
-
<% end %>
|
@@ -1,51 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(12) do %>
|
3
|
-
<section>
|
4
|
-
<h1 class="section-title">
|
5
|
-
<%= @line.title %>
|
6
|
-
</h1>
|
7
|
-
</section>
|
8
|
-
|
9
|
-
<% if @line.products.any? %>
|
10
|
-
|
11
|
-
<section class="clearfix shelf-wrapper" data-offset-top="20">
|
12
|
-
<div class="shelf">
|
13
|
-
<ul class="hl clearfix">
|
14
|
-
<% @line.products.order('position').each do |product| %>
|
15
|
-
<li class="can">
|
16
|
-
<%= link_to "##{product.slug}", :title => product.title, :rel => 'tooltip' do %>
|
17
|
-
<%= image_tag product.can.url %>
|
18
|
-
<% end %>
|
19
|
-
</li>
|
20
|
-
<% end %>
|
21
|
-
</ul>
|
22
|
-
|
23
|
-
</div>
|
24
|
-
|
25
|
-
</section>
|
26
|
-
|
27
|
-
<% end %>
|
28
|
-
<section>
|
29
|
-
<div>
|
30
|
-
<%= raw @line.text %>
|
31
|
-
</div>
|
32
|
-
</section>
|
33
|
-
<% end %>
|
34
|
-
<% end %>
|
35
|
-
|
36
|
-
<% if @line.products.any? %>
|
37
|
-
<ul class="unstyled index">
|
38
|
-
<% @line.products.order('position').each do |product| %>
|
39
|
-
|
40
|
-
<li id="<%= product.slug %>" class="index-item">
|
41
|
-
<%= index_item(
|
42
|
-
:title => product.title,
|
43
|
-
:excerpt => product.excerpt,
|
44
|
-
:link_url => page_path_for(product),
|
45
|
-
:link_label => t('continue_reading', :scope => 'site', :default => "Continue Reading"),
|
46
|
-
:image => product.index_photo.url) %>
|
47
|
-
</li>
|
48
|
-
|
49
|
-
<% end %>
|
50
|
-
</ul>
|
51
|
-
<% end %>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(3) do %>
|
3
|
-
<div class="mb1">
|
4
|
-
<%= image_tag @post.image %>
|
5
|
-
</div>
|
6
|
-
<div class="clearfix">
|
7
|
-
<%= render :partial => "site/share_buttons_big" %>
|
8
|
-
</div>
|
9
|
-
<% end %>
|
10
|
-
<%= span(9) do %>
|
11
|
-
<h1>
|
12
|
-
<%= @post.title %>
|
13
|
-
</h1>
|
14
|
-
<section>
|
15
|
-
<%= l(@post.created_at, :format => :pubdate) %>
|
16
|
-
</section>
|
17
|
-
|
18
|
-
<%= raw @post.text %>
|
19
|
-
<% end %>
|
20
|
-
<% end %>
|
@@ -1,56 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(12) do %>
|
3
|
-
<section>
|
4
|
-
<h1 class="section-title">
|
5
|
-
<%= @product.title %>
|
6
|
-
</h1>
|
7
|
-
</section>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
<%= row do %>
|
11
|
-
<%= span(4) do %>
|
12
|
-
<section>
|
13
|
-
<%= image_tag @product.photo.url %>
|
14
|
-
</section>
|
15
|
-
<h3><%= t(:other_products, :scope => "site", :default => "Other products") %></h3>
|
16
|
-
<ul class="thumbnails">
|
17
|
-
<% (@product.line.products - [@product]).each do |product| %>
|
18
|
-
<li>
|
19
|
-
<%= link_to page_url_for(product), :title => product.title, :rel => 'tooltip', :class => "thumbnail" do %>
|
20
|
-
<%= image_tag product.index_photo.url(:icon), :height => "60", :width => "60" %>
|
21
|
-
<% end %>
|
22
|
-
</li>
|
23
|
-
|
24
|
-
<% end %>
|
25
|
-
|
26
|
-
</ul>
|
27
|
-
<% end %>
|
28
|
-
<%= span(8) do %>
|
29
|
-
<section>
|
30
|
-
<div>
|
31
|
-
<%= raw @product.text %>
|
32
|
-
</div>
|
33
|
-
</section>
|
34
|
-
<section>
|
35
|
-
<h3><%= t(:recipes_with, :scope => "site", :default => "Recipes with") %> <%= @product.title %></h3>
|
36
|
-
<% @product.recipes.in_groups_of(4, false).each do |recipes| %>
|
37
|
-
<section>
|
38
|
-
<%= row do %>
|
39
|
-
|
40
|
-
<% recipes.each do |recipe| %>
|
41
|
-
<%= span(4) do %>
|
42
|
-
<%= link_to page_url_for(recipe), :title => recipe.title, :rel => 'tooltip', :class => "image-link" do %>
|
43
|
-
<%= image_tag recipe.image.url(:thumb) %>
|
44
|
-
<% end %>
|
45
|
-
<% end %>
|
46
|
-
<% end %>
|
47
|
-
|
48
|
-
<% end %>
|
49
|
-
|
50
|
-
</section>
|
51
|
-
|
52
|
-
<% end %>
|
53
|
-
|
54
|
-
</section>
|
55
|
-
<% end %>
|
56
|
-
<% end %>
|
@@ -1,37 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(12) do %>
|
3
|
-
<section class="section-title">
|
4
|
-
<%= current_page.title %>
|
5
|
-
|
6
|
-
</section>
|
7
|
-
<% end %>
|
8
|
-
<% end %>
|
9
|
-
|
10
|
-
<%= row do %>
|
11
|
-
<%= span(3) do %>
|
12
|
-
<div class="mb1">
|
13
|
-
<%= image_tag @recipe.image %>
|
14
|
-
</div>
|
15
|
-
<div class="clearfix">
|
16
|
-
<%= render :partial => "site/share_buttons_big" %>
|
17
|
-
</div>
|
18
|
-
<% end %>
|
19
|
-
<%= span(9) do %>
|
20
|
-
<h1>
|
21
|
-
<%= @recipe.title %>
|
22
|
-
</h1>
|
23
|
-
<div class="mb1">
|
24
|
-
<ul class="unstyled">
|
25
|
-
<li>
|
26
|
-
<i class="icon icon-time"></i> <%= t("time", :scope => "site", :default => "Time") %>: <%= @recipe.time %> <%= t("site.mins", :default => "mins." ) %>
|
27
|
-
</li>
|
28
|
-
<li>
|
29
|
-
<i class="icon icon-star"></i> <%= t("difficulty", :scope => "site", :default => "Difficulty") %>: <%= @recipe.difficulty %>
|
30
|
-
</li>
|
31
|
-
</ul>
|
32
|
-
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<%= raw @recipe.text %>
|
36
|
-
<% end %>
|
37
|
-
<% end %>
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(12) do %>
|
3
|
-
<section>
|
4
|
-
<div class="section-title">
|
5
|
-
<%= current_page.title %>
|
6
|
-
</div>
|
7
|
-
</section>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
|
12
|
-
<% @dishes.in_groups_of(3, false).each do |dishes| %>
|
13
|
-
<section>
|
14
|
-
<%= row do %>
|
15
|
-
|
16
|
-
<% dishes.each do |dish| %>
|
17
|
-
|
18
|
-
|
19
|
-
<%= span(4) do %>
|
20
|
-
<%= index_box(:images => [dish.image.url],
|
21
|
-
:title => dish.title,
|
22
|
-
:excerpt => dish.excerpt,
|
23
|
-
:link_label => dish.title,
|
24
|
-
:link_url => page_path_for(dish)) %>
|
25
|
-
<% end %>
|
26
|
-
|
27
|
-
<% end %>
|
28
|
-
|
29
|
-
<% end %>
|
30
|
-
</section>
|
31
|
-
|
32
|
-
<% end %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/sales_channel.html.erb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
<div class="mb1">
|
2
|
-
<%= row do %>
|
3
|
-
<%= span(12) do %>
|
4
|
-
<section>
|
5
|
-
<div class="section-title">
|
6
|
-
<%= @sales_channel.title %>
|
7
|
-
</div>
|
8
|
-
</section>
|
9
|
-
<section>
|
10
|
-
<div>
|
11
|
-
<%= raw @sales_channel.text %>
|
12
|
-
</div>
|
13
|
-
</section>
|
14
|
-
<% end %>
|
15
|
-
<% end %>
|
16
|
-
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<% @sales_channel.lines.in_groups_of(3, false).each do |lines| %>
|
20
|
-
<section>
|
21
|
-
<%= row do %>
|
22
|
-
|
23
|
-
<% lines.each do |line| %>
|
24
|
-
|
25
|
-
|
26
|
-
<%= span(4) do %>
|
27
|
-
<%= index_box(:images => [line.image.url],
|
28
|
-
:title => line.title,
|
29
|
-
:excerpt => line.excerpt,
|
30
|
-
:link_label => line.label,
|
31
|
-
:link_url => page_path_for(line)) %>
|
32
|
-
<% end %>
|
33
|
-
|
34
|
-
<% end %>
|
35
|
-
|
36
|
-
<% end %>
|
37
|
-
</section>
|
38
|
-
|
39
|
-
<% end %>
|
40
|
-
|
41
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<%= row do %>
|
2
|
-
<%= span(4) do %>
|
3
|
-
<% @text.photos.each do |photo| %>
|
4
|
-
<%= link_to(photo.url, :rel => "facebox", :class => "thumbnail-vertical") do %>
|
5
|
-
<%= image_tag photo.url(:box), :class => :desaturate %>
|
6
|
-
<% end %>
|
7
|
-
<% end %>
|
8
|
-
<% end %>
|
9
|
-
<%= span(8) do %>
|
10
|
-
<section>
|
11
|
-
<div class="section-title">
|
12
|
-
<%= @text.section %>
|
13
|
-
</div>
|
14
|
-
</section>
|
15
|
-
<section>
|
16
|
-
<h1 class='title'><%= @text.title %></h1>
|
17
|
-
<div>
|
18
|
-
<%= raw @text.text %>
|
19
|
-
</div>
|
20
|
-
</section>
|
21
|
-
<% end %>
|
22
|
-
<% end %>
|