summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.seo.xml
diff options
context:
space:
mode:
authorddm@openerp.com <>2014-01-21 13:53:25 +0100
committerddm@openerp.com <>2014-01-21 13:53:25 +0100
commit35b8850ecc8d3cda929f77993e6a3c5bacab1276 (patch)
treeeca90be0170fbc6470cd6ad4197dc8c663ab9d00 /addons/website/static/src/xml/website.seo.xml
parent6d320f6f0b026b59c96aca4f7e5fb7741ac43450 (diff)
[IMP] add SEO preview
bzr revid: ddm@openerp.com-20140121125325-641psvqr4w96lsci
Diffstat (limited to 'addons/website/static/src/xml/website.seo.xml')
-rw-r--r--addons/website/static/src/xml/website.seo.xml33
1 files changed, 30 insertions, 3 deletions
diff --git a/addons/website/static/src/xml/website.seo.xml b/addons/website/static/src/xml/website.seo.xml
index be9414ca37f..0c055487dd8 100644
--- a/addons/website/static/src/xml/website.seo.xml
+++ b/addons/website/static/src/xml/website.seo.xml
@@ -43,19 +43,24 @@
<div class="form-group">
<label for="seo_page_description" class="col-lg-2 control-label">Description</label>
<div class="col-lg-8">
- <textarea name="seo_page_description" class="form-control" rows="3" cols="70" size="160"/>
+ <textarea name="seo_page_description" class="form-control" rows="3" cols="70" t-att-maxlength="widget.maxDescriptionSize"/>
</div>
</div>
</div>
</section>
+ <section>
+ <h3 class="page-header">3. Preview <small>how your page will be listed on Google</small></h3>
+ <div class="js_seo_preview"></div>
+ </section>
<!--
<section class="js_image_section">
- <h3 class="page-header">3. Describe your images</h3>
+ <h3 class="page-header">4. Describe your images</h3>
<div class="row js_seo_image_list">
</div>
</section>
-->
- </div><div class="modal-footer">
+ </div>
+ <div class="modal-footer">
<button type="button" data-action="update" class="btn btn-primary">Save</button>
or
<a data-action="discard" data-dismiss="modal" href="#" >Discard</a>
@@ -111,4 +116,26 @@
</div>
</t>
+ <t t-name="website.seo_preview">
+ <li class="oe_seo_preview_g">
+ <div class="rc">
+ <span class="altcts"></span>
+ <h3 class="r">
+ <a t-att-href="url">
+ <em><t t-esc="widget.title"/></em>
+ </a>
+ </h3>
+ <div class="s">
+ <div>
+ <div class="f kv" style="white-space:nowrap">
+ <cite><t t-esc="widget.url"/></cite>
+ </div>
+ <div class="f slp"></div>
+ <span class="st"><t t-esc="widget.description"/></span>
+ </div>
+ </div>
+ </div>
+ </li>
+ </t>
+
</templates>