| 
				
			 | 
			
			
				@@ -282,7 +282,7 @@ class EmailNotifier(object): 
			 | 
		
	
		
			
			| 
				282
			 | 
			
				282
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				283
			 | 
			
				283
			 | 
			
			
				         action = content.get_last_action().id 
			 | 
		
	
		
			
			| 
				284
			 | 
			
				284
			 | 
			
			
				         if ActionDescription.COMMENT == action: 
			 | 
		
	
		
			
			| 
				285
			 | 
			
				
			 | 
			
			
				-            content_intro = _('<span id="content-intro-username">{}</span> added a comment:'.format(actor.display_name)) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				285
			 | 
			
			
				+            content_intro = _('<span id="content-intro-username">{}</span> added a comment:').format(actor.display_name) 
			 | 
		
	
		
			
			| 
				286
			 | 
			
				286
			 | 
			
			
				             content_text = content.description 
			 | 
		
	
		
			
			| 
				287
			 | 
			
				287
			 | 
			
			
				             call_to_action_text = _('Answer') 
			 | 
		
	
		
			
			| 
				288
			 | 
			
				288
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -332,6 +332,13 @@ class EmailNotifier(object): 
			 | 
		
	
		
			
			| 
				332
			 | 
			
				332
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				333
			 | 
			
				333
			 | 
			
			
				             elif ContentType.Thread == content.type: 
			 | 
		
	
		
			
			| 
				334
			 | 
			
				334
			 | 
			
			
				                 content_intro = _('<span id="content-intro-username">{}</span> updated the thread description.').format(actor.display_name) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				335
			 | 
			
			
				+                previous_revision = content.get_previous_revision() 
			 | 
		
	
		
			
			| 
				
			 | 
			
				336
			 | 
			
			
				+                title_diff = '' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				337
			 | 
			
			
				+                if previous_revision.label != content.label: 
			 | 
		
	
		
			
			| 
				
			 | 
			
				338
			 | 
			
			
				+                    title_diff = htmldiff(previous_revision.label, content.label) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				339
			 | 
			
			
				+                content_text = _('<p id="content-body-intro">Here is an overview of the changes:</p>')+ \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				340
			 | 
			
			
				+                    title_diff + \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				341
			 | 
			
			
				+                    htmldiff(previous_revision.description, content.description) 
			 | 
		
	
		
			
			| 
				335
			 | 
			
				342
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				336
			 | 
			
				343
			 | 
			
			
				             # elif ContentType.Thread == content.type: 
			 | 
		
	
		
			
			| 
				337
			 | 
			
				344
			 | 
			
			
				             #     content_intro = _('<span id="content-intro-username">{}</span> updated this page.').format(actor.display_name) 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -359,18 +366,17 @@ class EmailNotifier(object): 
			 | 
		
	
		
			
			| 
				359
			 | 
			
				366
			 | 
			
			
				             ) 
			 | 
		
	
		
			
			| 
				360
			 | 
			
				367
			 | 
			
			
				             raise ValueError('Unexpected empty notification') 
			 | 
		
	
		
			
			| 
				361
			 | 
			
				368
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				362
			 | 
			
				
			 | 
			
			
				-        # Thread - create 
			 | 
		
	
		
			
			| 
				363
			 | 
			
				
			 | 
			
			
				-        # logger.debug(self, 'This is a NOT comment <--------------------- {}'.format(content.type)) 
			 | 
		
	
		
			
			| 
				364
			 | 
			
				
			 | 
			
			
				-        body_content = template.render(base_url=self._global_config.WEBSITE_BASE_URL, 
			 | 
		
	
		
			
			| 
				365
			 | 
			
				
			 | 
			
			
				-                               _=_, 
			 | 
		
	
		
			
			| 
				366
			 | 
			
				
			 | 
			
			
				-                               h=helpers, 
			 | 
		
	
		
			
			| 
				367
			 | 
			
				
			 | 
			
			
				-                               user_display_name=role.user.display_name, 
			 | 
		
	
		
			
			| 
				368
			 | 
			
				
			 | 
			
			
				-                               user_role_label=role.role_as_label(), 
			 | 
		
	
		
			
			| 
				369
			 | 
			
				
			 | 
			
			
				-                               workspace_label=role.workspace.label, 
			 | 
		
	
		
			
			| 
				370
			 | 
			
				
			 | 
			
			
				-                               content_intro=content_intro, 
			 | 
		
	
		
			
			| 
				371
			 | 
			
				
			 | 
			
			
				-                               content_text=content_text, 
			 | 
		
	
		
			
			| 
				372
			 | 
			
				
			 | 
			
			
				-                               main_title=main_title, 
			 | 
		
	
		
			
			| 
				373
			 | 
			
				
			 | 
			
			
				-                               call_to_action_text=call_to_action_text, 
			 | 
		
	
		
			
			| 
				374
			 | 
			
				
			 | 
			
			
				-                               result = DictLikeClass(item=dictified_item, actor=dictified_actor)) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				369
			 | 
			
			
				+        body_content = template.render( 
			 | 
		
	
		
			
			| 
				
			 | 
			
				370
			 | 
			
			
				+            base_url=self._global_config.WEBSITE_BASE_URL, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				371
			 | 
			
			
				+            _=_, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				372
			 | 
			
			
				+            h=helpers, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				373
			 | 
			
			
				+            user_display_name=role.user.display_name, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				374
			 | 
			
			
				+            user_role_label=role.role_as_label(), 
			 | 
		
	
		
			
			| 
				
			 | 
			
				375
			 | 
			
			
				+            workspace_label=role.workspace.label, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				376
			 | 
			
			
				+            content_intro=content_intro, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				377
			 | 
			
			
				+            content_text=content_text, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				378
			 | 
			
			
				+            main_title=main_title, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				379
			 | 
			
			
				+            call_to_action_text=call_to_action_text, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				380
			 | 
			
			
				+            result = DictLikeClass(item=dictified_item, actor=dictified_actor)) 
			 | 
		
	
		
			
			| 
				375
			 | 
			
				381
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				376
			 | 
			
				382
			 | 
			
			
				         return body_content 
			 |