mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Added show_date_row field to each item of content_edit_history. We use date lines to separate events that happened on different days. Fixes #4638.
		
			
				
	
	
		
			18 lines
		
	
	
		
			672 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			672 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
{{! Client-side Mustache template for viewing message edit history.}}
 | 
						|
 | 
						|
{{#each edited_messages}}
 | 
						|
    {{#if show_date_row}}
 | 
						|
    <div class="date_row"><span>{{ display_date }}</span></div>
 | 
						|
    {{/if}}
 | 
						|
    <div class="">
 | 
						|
        <div class="messagebox-border">
 | 
						|
            <div class="messagebox-content">
 | 
						|
                <div class="message_top_line"><span class="message_time">{{ timestamp }}</span></div>
 | 
						|
                <div class="message_edit_content">{{{ body_to_render }}}</div>
 | 
						|
                <div class="message_author"><div class="author_details">{{ posted_or_edited }} {{ edited_by }}</div></div>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
    <hr/>
 | 
						|
{{/each}}
 |