summaryrefslogtreecommitdiff
path: root/addons/website_blog
diff options
context:
space:
mode:
authorForam Shah <fsh@odoo.com>2016-06-08 17:53:22 +0530
committerYannick Tivisse <yti@odoo.com>2016-06-14 16:23:50 +0200
commit052dcd3ee8d48ffa1da0579a650065f3ff07e312 (patch)
treee4fb2ecac7f545a8d2144d3e1a635bccb28053d7 /addons/website_blog
parent78b52fb637c0dbd68ca8089e048781a89e3efed5 (diff)
[IMP] web: 'Not Archived' becomes 'Active', 'Not published' becomes 'Unpublished'
Another reason why it’s better to change ‘not archived’ into ‘active’ is because ‘active’ is the functional name of this field in the filter list in list view. For the rest, it’s just a better en_US way of saying it.
Diffstat (limited to 'addons/website_blog')
-rw-r--r--addons/website_blog/controllers/main.py2
-rw-r--r--addons/website_blog/static/src/xml/website_blog.inline.discussion.xml2
-rw-r--r--addons/website_blog/views/website_blog_templates.xml6
3 files changed, 5 insertions, 5 deletions
diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py
index 4afd8b4e963..39fab7ad96c 100644
--- a/addons/website_blog/controllers/main.py
+++ b/addons/website_blog/controllers/main.py
@@ -112,7 +112,7 @@ class WebsiteBlog(http.Controller):
- 'active_tag_ids' : list of active tag ids,
- 'tags_list' : function to built the comma-separated tag list ids (for the url),
- 'tags': all tags, for navigation
- - 'state_info': state of published/not published filter
+ - 'state_info': state of published/unpublished filter
- 'nav_list': a dict [year][month] for archives navigation
- 'date': date_begin optional parameter, used in archives navigation
- 'blog_url': help object to create URLs
diff --git a/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml b/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml
index 3f95bd7e031..1192024f991 100644
--- a/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml
+++ b/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml
@@ -6,7 +6,7 @@
<img class="media-object img-circle" t-att-src="res.author_image" style="width: 30px;"/>
</div>
<div t-attf-class="pull-right btn-group js_publish_management #{res.website_published and 'css_published' or 'css_unpublished'} #{res.publish ? '' : 'hidden'}" data-object="mail.message" t-att-data-id="res.id">
- <button class="btn btn-danger btn-xs js_publish_btn">Not Published</button>
+ <button class="btn btn-danger btn-xs js_publish_btn">Unpublished</button>
<button class="btn btn-success btn-xs js_publish_btn">Published</button>
</div>
<div class="media-body discussion_scroll_post">
diff --git a/addons/website_blog/views/website_blog_templates.xml b/addons/website_blog/views/website_blog_templates.xml
index 5360f64fbf9..561f9407fd0 100644
--- a/addons/website_blog/views/website_blog_templates.xml
+++ b/addons/website_blog/views/website_blog_templates.xml
@@ -61,7 +61,7 @@
<h4>
<a t-attf-href="#{blog_url('', ['blog', 'post'], blog=post.blog_id, post=post)}" t-field="post.name"></a>
<span t-if="not post.website_published" class="text-warning">
- <span class="fa fa-exclamation-triangle ml8" title="Not published"/>
+ <span class="fa fa-exclamation-triangle ml8" title="Unpublished"/>
</span>
</h4>
<div class="text-muted">
@@ -161,7 +161,7 @@
<t t-if="blog_post.visits > 1">views</t>
</span>
- <span t-if="not blog_post.website_published" class="label label-danger">not published</span>
+ <span t-if="not blog_post.website_published" class="label label-danger">unpublished</span>
</div>
</div>
</div>
@@ -450,7 +450,7 @@
<a t-attf-href="#{state == 'published' and blog_url(state='') or blog_url(state='published')}">Published <span class="pull-right badge" t-esc="state_info['published']" /></a>
</li>
<li t-attf-class="#{state == 'unpublished' and 'active' or ''}">
- <a t-attf-href="#{state == 'unpublished' and blog_url(state='') or blog_url(state='unpublished')}">Not Published <span class="pull-right badge" t-esc="state_info['unpublished']" /></a>
+ <a t-attf-href="#{state == 'unpublished' and blog_url(state='') or blog_url(state='unpublished')}">Unpublished <span class="pull-right badge" t-esc="state_info['unpublished']" /></a>
</li>
</ul>
</section>