Hello.

What follows is a excerpt of main application layout in spree_core
(app/views/spree/layouts/spree_application.html.erb):

<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
<head data-hook="inside_head">
<%= render :partial => 'spree/shared/head' %>
</head>
<body class="<%= body_class %>" id="<%= @body_id || 'default' %>"
data-hook="body">

<div class="container">

<%= render :partial => 'spree/shared/header' %>

<div id="wrapper" class="row" data-hook>
...
</div>

<%= render :partial => 'spree/shared/footer' %>

</div>

<%= render :partial => 'spree/shared/google_analytics' %>

</body>
</html>

I'm trying to remove first div (with class "container") with Deface
maintaining its content, i.e. I would like to obtain this:

<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
<head data-hook="inside_head">
<%= render :partial => 'spree/shared/head' %>
</head>
<body class="<%= body_class %>" id="<%= @body_id || 'default' %>"
data-hook="body">

<%= render :partial => 'spree/shared/header' %>

<div id="wrapper" class="row" data-hook>
...
</div>

<%= render :partial => 'spree/shared/footer' %>

<%= render :partial => 'spree/shared/google_analytics' %>

</body>
</html>

Reading Deface documentation<https://github.com/spree/deface/blob/master/README.markdown>it seems that "replace" action together with "copy" source could be the
right way, but my attempts failed.

It is possible to do what I'm trying to?

Thanks...

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Nate Lowrie at Feb 5, 2013 at 1:47 pm
    For that change I would probably just copy the html.erb file and make the
    change.

    Regards,

    Nate
    On Monday, February 4, 2013 11:48:09 AM UTC-5, Edward Brown wrote:

    Hello.

    What follows is a excerpt of main application layout in spree_core
    (app/views/spree/layouts/spree_application.html.erb):

    <!doctype html>
    <!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
    <head data-hook="inside_head">
    <%= render :partial => 'spree/shared/head' %>
    </head>
    <body class="<%= body_class %>" id="<%= @body_id || 'default' %>"
    data-hook="body">

    <div class="container">

    <%= render :partial => 'spree/shared/header' %>

    <div id="wrapper" class="row" data-hook>
    ...
    </div>

    <%= render :partial => 'spree/shared/footer' %>

    </div>

    <%= render :partial => 'spree/shared/google_analytics' %>

    </body>
    </html>

    I'm trying to remove first div (with class "container") with Deface
    maintaining its content, i.e. I would like to obtain this:

    <!doctype html>
    <!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>">
    <![endif]-->
    <!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
    <head data-hook="inside_head">
    <%= render :partial => 'spree/shared/head' %>
    </head>
    <body class="<%= body_class %>" id="<%= @body_id || 'default' %>"
    data-hook="body">

    <%= render :partial => 'spree/shared/header' %>

    <div id="wrapper" class="row" data-hook>
    ...
    </div>

    <%= render :partial => 'spree/shared/footer' %>

    <%= render :partial => 'spree/shared/google_analytics' %>

    </body>
    </html>

    Reading Deface documentation<https://github.com/spree/deface/blob/master/README.markdown>it seems that "replace" action together with "copy" source could be the
    right way, but my attempts failed.

    It is possible to do what I'm trying to?

    Thanks...
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedFeb 4, '13 at 5:03p
activeFeb 5, '13 at 1:47p
posts2
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Edward Brown: 1 post Nate Lowrie: 1 post

People

Translate

site design / logo © 2022 Grokbase