2018-04-05 22:30:40 +00:00
|
|
|
/* global window: false */
|
2018-04-03 22:56:12 +00:00
|
|
|
|
|
|
|
// Taken from background.html.
|
2018-04-05 22:30:40 +00:00
|
|
|
// Templates are here solely to support the Backbone views rendered in the Style Guide.
|
|
|
|
|
|
|
|
// Note: Any change here must be reflected in background.html to be reflected in the app
|
|
|
|
// and test/index.html to be reflected in the unit tests.
|
2018-04-03 22:56:12 +00:00
|
|
|
|
|
|
|
window.Whisper.View.Templates = {
|
|
|
|
hasRetry: `
|
2018-04-05 22:30:40 +00:00
|
|
|
{{ messageNotSent }} <span href='#' class='retry'>{{ resend }}</span>
|
2018-04-03 22:56:12 +00:00
|
|
|
`,
|
|
|
|
'some-failed': `
|
|
|
|
{{ someFailed }}
|
|
|
|
`,
|
|
|
|
keychange: `
|
2018-04-05 22:30:40 +00:00
|
|
|
<span class='content' dir='auto'>
|
|
|
|
<span class='shield icon'></span> {{ content }}
|
|
|
|
</span>
|
2018-04-03 22:56:12 +00:00
|
|
|
`,
|
|
|
|
'verified-change': `
|
2018-04-05 22:30:40 +00:00
|
|
|
<span class='content' dir='auto'>
|
|
|
|
<span class='{{ icon }} icon'></span> {{ content }}
|
|
|
|
</span>
|
2018-04-03 22:56:12 +00:00
|
|
|
`,
|
|
|
|
message: `
|
|
|
|
{{> avatar }}
|
|
|
|
<div class='bubble {{ avatar.color }}'>
|
|
|
|
<div class='sender' dir='auto'>
|
|
|
|
{{ sender }}
|
|
|
|
{{ #profileName }}
|
|
|
|
<span class='profileName'>{{ profileName }} </span>
|
|
|
|
{{ /profileName }}
|
|
|
|
</div>
|
2018-04-06 21:51:52 +00:00
|
|
|
<div class='inner-bubble {{ innerBubbleClasses }}'>
|
2018-04-10 01:31:52 +00:00
|
|
|
<div class='quote-wrapper'></div>
|
2018-04-06 21:51:52 +00:00
|
|
|
<div class='attachments'></div>
|
2018-04-12 07:57:07 +00:00
|
|
|
<div class='content' dir='auto'>
|
2018-04-06 21:51:52 +00:00
|
|
|
{{ #message }}<div class='body'>{{ message }}</div>{{ /message }}
|
2018-04-12 07:57:07 +00:00
|
|
|
</div>
|
2018-04-06 21:51:52 +00:00
|
|
|
</div>
|
2018-04-03 22:56:12 +00:00
|
|
|
<div class='meta'>
|
|
|
|
<span class='timestamp' data-timestamp={{ timestamp }}></span>
|
|
|
|
<span class='status hide'></span>
|
|
|
|
<span class='timer'></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`,
|
|
|
|
hourglass: `
|
|
|
|
<span class='hourglass'><span class='sand'></span></span>
|
|
|
|
`,
|
|
|
|
expirationTimerUpdate: `
|
|
|
|
<span class='content'><span class='icon clock'></span> {{ content }}</span>
|
2018-04-05 22:30:40 +00:00
|
|
|
`,
|
2018-04-05 16:19:00 +00:00
|
|
|
'file-view': `
|
|
|
|
<div class='icon {{ mediaType }}'></div>
|
|
|
|
<div class='text'>
|
|
|
|
<div class='fileName' title='{{ altText }}'>
|
|
|
|
{{ fileName }}
|
|
|
|
</div>
|
|
|
|
<div class='fileSize'>{{ fileSize }}</div>
|
|
|
|
</div>
|
|
|
|
`,
|
2018-04-03 22:56:12 +00:00
|
|
|
};
|