177 | | <# if ( 'undefined' !== typeof data.from ) { #> |
178 | | <div class="author-card<# if ( data.from.attributes.autosave ) { #> autosave<# } #>"> |
179 | | {{{ data.from.attributes.author.avatar }}} |
180 | | <div class="author-info"> |
181 | | <# if ( data.from.attributes.autosave ) { #> |
182 | | <span class="byline"><?php printf( __( 'Autosave by %s' ), |
183 | | '<span class="author-name">{{ data.from.attributes.author.name }}</span>' ); ?></span> |
184 | | <# } else if ( data.from.attributes.current ) { #> |
185 | | <span class="byline"><?php printf( __( 'Current Revision by %s' ), |
186 | | '<span class="author-name">{{ data.from.attributes.author.name }}</span>' ); ?></span> |
187 | | <# } else { #> |
188 | | <span class="byline"><?php printf( __( 'Revision by %s' ), |
189 | | '<span class="author-name">{{ data.from.attributes.author.name }}</span>' ); ?></span> |
190 | | <# } #> |
191 | | <span class="time-ago">{{ data.from.attributes.timeAgo }}</span> |
192 | | <span class="date">({{ data.from.attributes.dateShort }})</span> |
193 | | </div> |
194 | | </div> |
195 | | <# } #> |
196 | | </div> |
197 | | </div> |
198 | | |
199 | | <div class="diff-meta diff-meta-to"> |
200 | | <div class="diff-title"> |
| 177 | <# } else { #> |
202 | | <# if ( 'undefined' !== typeof data.to ) { #> |
203 | | <div class="author-card<# if ( data.to.attributes.autosave ) { #> autosave<# } #>"> |
204 | | {{{ data.to.attributes.author.avatar }}} |
205 | | <div class="author-info"> |
206 | | <# if ( data.to.attributes.autosave ) { #> |
207 | | <span class="byline"><?php printf( __( 'Autosave by %s' ), |
208 | | '<span class="author-name">{{ data.to.attributes.author.name }}</span>' ); ?></span> |
209 | | <# } else if ( data.to.attributes.current ) { #> |
210 | | <span class="byline"><?php printf( __( 'Current Revision by %s' ), |
211 | | '<span class="author-name">{{ data.to.attributes.author.name }}</span>' ); ?></span> |
212 | | <# } else { #> |
213 | | <span class="byline"><?php printf( __( 'Revision by %s' ), |
214 | | '<span class="author-name">{{ data.to.attributes.author.name }}</span>' ); ?></span> |
215 | | <# } #> |
216 | | <span class="time-ago">{{ data.to.attributes.timeAgo }}</span> |
217 | | <span class="date">({{ data.to.attributes.dateShort }})</span> |
218 | | </div> |
220 | | <# if ( data.to.attributes.restoreUrl ) { #> |
| 180 | <div class="author-card<# if ( data.attributes.autosave ) { #> autosave<# } #>"> |
| 181 | {{{ data.attributes.author.avatar }}} |
| 182 | <div class="author-info"> |
| 183 | <# if ( data.attributes.autosave ) { #> |
| 184 | <span class="byline"><?php printf( __( 'Autosave by %s' ), |
| 185 | '<span class="author-name">{{ data.attributes.author.name }}</span>' ); ?></span> |
| 186 | <# } else if ( data.attributes.current ) { #> |
| 187 | <span class="byline"><?php printf( __( 'Current Revision by %s' ), |
| 188 | '<span class="author-name">{{ data.attributes.author.name }}</span>' ); ?></span> |
| 189 | <# } else { #> |
| 190 | <span class="byline"><?php printf( __( 'Revision by %s' ), |
| 191 | '<span class="author-name">{{ data.attributes.author.name }}</span>' ); ?></span> |
| 192 | <# } #> |
| 193 | <span class="time-ago">{{ data.attributes.timeAgo }}</span> |
| 194 | <span class="date">({{ data.attributes.dateShort }})</span> |
| 195 | </div> |
| 196 | <# if ( 'to' === data.type && data.attributes.restoreUrl ) { #> |