summaryrefslogtreecommitdiff
path: root/addons/website_slides/data/mail_data.xml
diff options
context:
space:
mode:
authorMichaël Mattiello <mcm@odoo.com>2019-09-03 09:30:49 +0000
committerThibault Delavallée <tde@odoo.com>2019-09-03 15:02:21 +0000
commit8c9473fd78f14dea1c55765da4f3e55f8962bcc6 (patch)
treedf648c1f8016ed1df17e4005855657e111fa9fd5 /addons/website_slides/data/mail_data.xml
parentc4eba6f5b150a0e881b7fb9b935ef1a0c3154bbf (diff)
[IMP] website_slides_{*}: improve backend UI, views and user actions
Purpose of this commit is to perform a back2basics on eLearning backend views. It helps users in their daily use of eLearning and improve UI. Containing * channel kanban view tweaking; * channel form view: some spacing and renaming improvements. Also set advanced field (new content email, share template) as group no one; * slide kanban view tweaking; * removed sections from kanban and list view for contents; * contents form view: various improvements, with notably * removed field website_url; * set publishded date is now readonly, tracked and in group_no_one as it is automatically set when publishing the lesson, and people should not update it manually; * removed the sum "Content" and replaced it by a stat button * reword quiz constraint error messages; * rating views improvements: * revamped the kanban view of rating that were a bit broken; * added a pivot view in Reporting/Reviews; * updated graph view in Reporting/Reviews; This commit also provides some usability fixes * prevent sending email if new content is category; * email: Prevent displaying an image if there is no image; LINKS Task 2049640 (website slides back2basics and fiximp) Task 2058595 (eLearning v13 testing)
Diffstat (limited to 'addons/website_slides/data/mail_data.xml')
-rw-r--r--addons/website_slides/data/mail_data.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_slides/data/mail_data.xml b/addons/website_slides/data/mail_data.xml
index 55628822d44..88c8a45cd5a 100644
--- a/addons/website_slides/data/mail_data.xml
+++ b/addons/website_slides/data/mail_data.xml
@@ -11,11 +11,13 @@
Hello<br/><br/>
There is something new in the course <strong>${object.channel_id.name}</strong> you are following:<br/><br/>
<center><strong>${object.name}</strong></center>
+ % if object.image_1024
<div style="margin: 16px 8px 16px 8px; text-align: center;">
<a href="${object.website_url}">
<img alt="${object.name}" src="${ctx['base_url']}/web/image/slide.slide/${object.id}/image_1024" style="height:auto; width:150px; margin: 16px;"/>
</a>
</div>
+ % endif
<div style="margin: 16px 8px 16px 8px; text-align: center;">
<a href="${object.website_url}"
style="background-color: #875a7b; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">View content</a>