mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	This commit laying the groundwork for dynamic re-rendering of drafts. Previously, the draft list was rendered once with the overlay, and re-rendering wasn't needed. However, to support features like "undo," we now need to re-render the draft list dynamically.
		
			
				
	
	
		
			19 lines
		
	
	
		
			489 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			489 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
<div class="drafts-list overlay-messages-list">
 | 
						|
    <div class="no-drafts no-overlay-messages">
 | 
						|
        {{t 'No drafts.'}}
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div id="drafts-from-conversation">
 | 
						|
        <h2>{{narrow_drafts_header}}</h2>
 | 
						|
        {{#each narrow_drafts}}
 | 
						|
            {{> draft .}}
 | 
						|
        {{/each}}
 | 
						|
    </div>
 | 
						|
    <div id="other-drafts">
 | 
						|
        <h2 id="other-drafts-header">{{t "Other drafts" }}</h2>
 | 
						|
        {{#each other_drafts}}
 | 
						|
            {{> draft .}}
 | 
						|
        {{/each}}
 | 
						|
    </div>
 | 
						|
</div>
 |