[MERGE] forward port branch 11.0 up to 61a85ccf8f
This commit is contained in:
@@ -141,6 +141,7 @@
|
|||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.o_mail_body_long {
|
.o_mail_body_long {
|
||||||
|
|||||||
@@ -105,6 +105,9 @@ class WebsiteBlog(http.Controller):
|
|||||||
# retrocompatibility to accept tag as slug
|
# retrocompatibility to accept tag as slug
|
||||||
active_tag_ids = tag and [int(unslug(t)[1]) for t in tag.split(',')] or []
|
active_tag_ids = tag and [int(unslug(t)[1]) for t in tag.split(',')] or []
|
||||||
if active_tag_ids:
|
if active_tag_ids:
|
||||||
|
fixed_tag_slug = ",".join(slug(t) for t in request.env['blog.tag'].browse(active_tag_ids))
|
||||||
|
if fixed_tag_slug != tag:
|
||||||
|
return request.redirect(request.httprequest.full_path.replace("/tag/%s/" % tag, "/tag/%s/" % fixed_tag_slug, 1), 301)
|
||||||
domain += [('tag_ids', 'in', active_tag_ids)]
|
domain += [('tag_ids', 'in', active_tag_ids)]
|
||||||
if blog:
|
if blog:
|
||||||
domain += [('blog_id', '=', blog.id)]
|
domain += [('blog_id', '=', blog.id)]
|
||||||
|
|||||||
@@ -161,7 +161,7 @@
|
|||||||
|
|
||||||
<!-- To display tags //no options -->
|
<!-- To display tags //no options -->
|
||||||
<t t-foreach="blog_post.tag_ids" t-as="one_tag">
|
<t t-foreach="blog_post.tag_ids" t-as="one_tag">
|
||||||
<a class="mr8" t-attf-href="#{blog_url(tag=one_tag.id, date_begin=False, date_end=False)}" t-esc="one_tag.name"/>
|
<a class="mr8" t-attf-href="#{blog_url(tag=slug(one_tag), date_begin=False, date_end=False)}" t-esc="one_tag.name"/>
|
||||||
</t>
|
</t>
|
||||||
<div class="o_sharing_links">
|
<div class="o_sharing_links">
|
||||||
<a class="fa fa-twitter-square o_twitter"></a>
|
<a class="fa fa-twitter-square o_twitter"></a>
|
||||||
@@ -243,7 +243,7 @@
|
|||||||
<p class="post-meta text-muted text-center" t-if="len(blog_post.tag_ids)">
|
<p class="post-meta text-muted text-center" t-if="len(blog_post.tag_ids)">
|
||||||
<span class="fa fa-tags"/>
|
<span class="fa fa-tags"/>
|
||||||
<t t-foreach="blog_post.tag_ids" t-as="one_tag">
|
<t t-foreach="blog_post.tag_ids" t-as="one_tag">
|
||||||
<a class="label label-primary mr8" t-attf-href="#{blog_url(tag=one_tag.id)}" t-esc="one_tag.name"/>
|
<a class="label label-primary mr8" t-attf-href="#{blog_url(tag=slug(one_tag))}" t-esc="one_tag.name"/>
|
||||||
</t>
|
</t>
|
||||||
</p>
|
</p>
|
||||||
<div t-if="'cover_full' in blog_post_cover_properties.get('resize_class', '')" id="blog_angle_down">
|
<div t-if="'cover_full' in blog_post_cover_properties.get('resize_class', '')" id="blog_angle_down">
|
||||||
@@ -401,7 +401,7 @@
|
|||||||
<t t-foreach="tags" t-as="tag">
|
<t t-foreach="tags" t-as="tag">
|
||||||
<t t-if="tag.post_ids">
|
<t t-if="tag.post_ids">
|
||||||
<li t-att-class="tag.id in active_tag_ids and 'active' or None">
|
<li t-att-class="tag.id in active_tag_ids and 'active' or None">
|
||||||
<a t-attf-href="#{blog_url(tag=tags_list(active_tag_ids, tag.id))}">
|
<a t-att-rel="'nofollow' if active_tag_ids else None" t-attf-href="#{blog_url(tag=tags_list(active_tag_ids, tag.id))}">
|
||||||
<span t-field="tag.name"/>
|
<span t-field="tag.name"/>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -451,10 +451,10 @@
|
|||||||
<ul t-attf-class="blog_post_year collapse nav nav-pills nav-stacked #{not date and year_index == 0 and 'in'}" t-att-id="year" role="menu">
|
<ul t-attf-class="blog_post_year collapse nav nav-pills nav-stacked #{not date and year_index == 0 and 'in'}" t-att-id="year" role="menu">
|
||||||
<t t-foreach="nav_list[year]" t-as="months">
|
<t t-foreach="nav_list[year]" t-as="months">
|
||||||
<li t-if="months['date_begin'] == date" class="active">
|
<li t-if="months['date_begin'] == date" class="active">
|
||||||
<a t-ignore="True" t-attf-href="#{blog_url(date_begin=False, date_end=False)}"><t t-esc="months['month']"/><span class="pull-right badge" t-esc="months['post_date_count']"/></a>
|
<a t-ignore="True" rel="nofollow" t-attf-href="#{blog_url(date_begin=False, date_end=False)}"><t t-esc="months['month']"/><span class="pull-right badge" t-esc="months['post_date_count']"/></a>
|
||||||
</li>
|
</li>
|
||||||
<li t-else="1">
|
<li t-else="1">
|
||||||
<a t-ignore="True" t-attf-href="#{blog_url(date_begin=months['date_begin'], date_end=months['date_end'])}"><t t-esc="months['month']"/><span class="pull-right badge" t-esc="months['post_date_count']"/></a>
|
<a t-ignore="True" rel="nofollow" t-attf-href="#{blog_url(date_begin=months['date_begin'], date_end=months['date_end'])}"><t t-esc="months['month']"/><span class="pull-right badge" t-esc="months['post_date_count']"/></a>
|
||||||
</li>
|
</li>
|
||||||
</t>
|
</t>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -214,6 +214,12 @@ database
|
|||||||
when creating new databases from the database-management screens, use the
|
when creating new databases from the database-management screens, use the
|
||||||
specified `template database`_. Defaults to ``template1``.
|
specified `template database`_. Defaults to ``template1``.
|
||||||
|
|
||||||
|
.. option:: --pg_path </path/to/postgresql/binaries>
|
||||||
|
|
||||||
|
Path to the PostgreSQL binaries that are used by the database manager to
|
||||||
|
dump and restore databases. You have to specify this option only if these
|
||||||
|
binaries are located in a non-standard directory.
|
||||||
|
|
||||||
.. option:: --no-database-list
|
.. option:: --no-database-list
|
||||||
|
|
||||||
Suppresses the ability to list databases available on the system
|
Suppresses the ability to list databases available on the system
|
||||||
|
|||||||
Reference in New Issue
Block a user