[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.
This commit is contained in:
committed by
Yannick Tivisse
parent
78b52fb637
commit
052dcd3ee8
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user