inbox.html
13.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
<section>
<h1 class="blue" data-id="#pages/inbox">Inbox</h1>
<!-- #section:pages/inbox -->
<div class="help-content">
<h3 class="info-title smaller">Inbox</h3>
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Inbox page consists of several parts and elements wrapped inside a tab:
<pre data-language="html">
<div class="tabbable">
<ul class="nav nav-tabs inbox-tabs padding-16 tab-size-bigger tab-space-1" id="inbox-tabs">
<!-- tab buttons -->
</ul>
<div class="tab-content">
<!-- tab/inbox content -->
</div>
</div>
</pre>
</li>
<li>
You can see the following files for more info:
<br />
<code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/pages/</span>inbox.mustache</code>
<br />
And the files inside:
<br />
<code>mustache/app/views/pages/partials/inbox</code>
</li>
<li>
<!-- #section:pages/inbox.compose-btn -->
<b>New Mail</b> button with <code>.btn-new-mail</code> class is (optionally) inside tab list:
<pre data-language="html">
<ul class=" ... ">
<li class="li-new-mail pull-right">
<a class="btn-new-mail" data-target="write" href="#write" data-toggle="tab">
<span class="btn btn-purple no-border">
<i class="ace-icon fa fa-envelope"></i>
Write Mail
</span>
</a>
</li>
</ul>
</pre>
<!-- /section:pages/inbox.compose-btn -->
</li>
<li>
Tab pane consists of navbar, message list and message footer:
<pre data-language="html">
<div class="message-container">
<div id="id-message-list-navbar" class="message-navbar align-center clearfix">
...
</div>
<div class="message-list-container">
...
</div>
<div class="message-footer clearfix">
...
</div>
</div>
</pre>
</li>
<li>
<h3 class="hidden" data-id="#pages/inbox.navbar">Message Navbar</h3>
<!-- #section:pages/inbox.navbar -->
For more info about navbar you can see the following file:
<br />
<code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/pages/partials/</span>inbox/navbar.mustache</code>
<div class="hr hr-8 hr-dotted"></div>
Message navbar <code>.message-navbar</code> consists of <code>.message-bar</code> which contains
title of the pane and toolbar buttons.
<br />
<pre data-language="html">
<div class="message-bar">
<div class="message-infobar" id="id-message-infobar">
<!-- title of the pane -->
<!-- for example "Inbox (32 unread)" -->
</div>
<div class="message-toolbar hide">
<!-- some action buttons, displayed when a message is selected from list --><
</div>
</div>
</pre>
<div class="hr hr-16 hr-double hr-dotted"></div>
There are also other areas such as "Search box", "Sort Messages", etc, which
are inside <code>.messagebar-item-left</code> or <code>.messagebar-item-right</code> classes:
<pre data-language="html">
<div class="message-bar">...</div>
<div>
<div class="messagebar-item-left">
<!-- contains Select Message dropdown -->
</div>
<div class="messagebar-item-right">
<!-- contains Sort Message dropdown -->
</div>
<div class="nav-search minimized">
<!-- contains search box -->
</div>
</div>
</pre>
<!-- /section:pages/inbox.navbar -->
</li>
<li>
<!-- #section:pages/inbox.navbar-search -->
Search box is similar to breadcrumbs <a href="#basics/content.searchbox" class="help-more">searchbox</a>:
<pre data-language="html">
<div class="nav-search minimized">
<form class="form-search">
<span class="input-icon">
<input type="text" placeholder="Search inbox ..." class="input-small nav-search-input" autocomplete="off" />
<i class="ace-icon fa fa-search nav-search-icon"></i>
</span>
</form>
</div>
</pre>
<!-- /section:pages/inbox.navbar-search -->
</li>
</ul>
</div>
<h3 class="info-title smaller" data-id="#pages/inbox.message-list">Message List</h3>
<!-- #section:pages/inbox.message-list -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
<code>.message-list-container</code> contains a list of messages wrapped inside <code>.message-list</code>:
<pre data-language="html">
<div class="message-container">
<!-- message navbar here -->
<div class="message-list-container">
<div class="message-list">
<div class="message-item message-unread">
....
</div>
.
.
.
</div><!-- /.message-list -->
</div><!-- /.message-list-container -->
</div>
</pre>
</li>
<li>
<h3 class="hidden" data-id="#pages/inbox.message-list.item">Message Item</h3>
<!-- #section:pages/inbox.message-list.item -->
A message item in the list consists of different elements:
<ol>
<li>A checkbox to select the message</li>
<li><code>.message-star</code> A star icon to mark messages as starred/unstarred</li>
<li><code>.sender</code> Which is the sender's name</li>
<li><code>.time</code> Which is the time the message was sent/received</li>
<li><code>.attachment</code> Which indicates there's an attachment</li>
<li>
<code>.summary</code>
Which contains message summary wrapped inside a <code>.text</code>
and an optional <code>.mail-tag</code> or <code>.message-flags</code>
</li>
</ol>
<pre data-language="html">
<div class="message-item message-unread">
<label class="inline">
<input type="checkbox" class="ace" />
<span class="lbl"></span>
</label>
<i class="message-star ace-icon fa fa-star orange2"></i>
<span title="Alex John Red Smith" class="sender">Alex Smith </span>
<span class="time">1:33 pm</span>
<span class="attachment"><i class="ace-icon fa fa-paperclip"></i></span>
<span class="summary">
<!-- <span class="badge badge-pink mail-tag"></span> -->
<!-- <span class="message-flags"> <i class="ace-icon fa fa-reply light-grey"></i> </span> -->
<span class="text">Click to open this message</span>
</span>
</div>
</pre>
<!-- /section:pages/inbox.message-list.item -->
</li>
<li>
<h3 class="hidden" data-id="#pages/inbox.message-footer">Message Footer</h3>
<!-- #section:pages/inbox.message-footer -->
<code>.message-footer</code> consists of
optional parts such as a pagination:
<pre data-language="html">
<div class="message-footer clearfix">
<div class="pull-left">151 messages total</div>
<div class="pull-right">
<ul class="pagination middle">
....
</ul>
</div>
</div>
</pre>
<div class="hr hr-8"></div>
2nd footer style has <code>.message-footer-style2</code> class:
<pre data-language="html">
<div class="message-footer message-footer-style2 clearfix">
<div class="pull-left">
simpler footer
</div>
<div class="pull-right">
...
</div>
</div>
</pre>
<div class="hr hr-8"></div>
See the following file for more info:
<br />
<code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/pages/partials/inbox</span>message_footer.mustache</code>
<!-- /section:pages/inbox.message-footer -->
</li>
</ul>
</div>
<!-- /section:pages/inbox.message-list -->
<h3 class="info-title smaller" data-id="#pages/inbox.message-content">Message Content</h3>
<!-- #section:pages/inbox.message-content -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Message details is inside <code>.message-content</code> and
consists of <code>.message-header</code>, <code>.message-body</code>
and <code>.message-attachment</code>:
<pre data-language="html">
<div class="message-list-container">
<div class="message-content" id="id-message-content">
<div class="message-header clearfix">
...
</div>
<div class="message-body">
...
</div>
<div class="message-attachment clearfix">
...
</div>
</div>
</div>
</pre>
</li>
<li>
<!-- #section:pages/inbox.message-header -->
<code>.message-header</code> consists of optional elements, for example <code>.sender</code>, <code>.time</code>
and action buttons:
<pre data-language="html">
<div class="message-header clearfix">
<div class="pull-left">
<span class="blue bigger-125">
Message title
</span>
<div class="space-4"></div>
<i class="ace-icon fa fa-star orange2"></i><!-- star -->
<img class="middle" alt="John's Avatar" src="{{path.assets}}/avatars/avatar.png" width="32" /><!-- sender photo -->
<a href="#" class="sender">John Doe</a><!-- sender name -->
<i class="ace-icon fa fa-clock-o bigger-110 orange middle"></i>
<span class="time">Today, 7:15 pm</span><!-- time sent -->
</div>
<div class="pull-right action-buttons">
<a href="#">
<i class="ace-icon fa fa-reply green icon-only bigger-130"></i>
</a>
</div>
</div>
</pre>
<!-- /section:pages/inbox.message-header -->
</li>
<li>
<!-- #section:pages/inbox.message-body -->
Message body is inside <code>.message-body</code> element
<!-- /section:pages/inbox.message-body -->
</li>
<li>
<!-- #section:pages/inbox.message-attachment -->
Message attachment consists of optional <code>.attachment-title</code>,
<code>.attachment-list</code> and <code>.attachment-images</code>
<pre data-language="html">
<div class="attachment-title">
</div>
<ul class="attachment-list pull-left list-unstyled">
</ul>
<div class="attachment-images">
<div>
<img width="36" alt="image 4" src="path/to/thumb-1.jpg" />
...
</div>
</div>
</pre>
<div class="hr hr-8"></div>
Attachment list consists of <code>.action-buttons</code> and
<code>.attached-file</code> which has <code>attached-name</code>:
<pre data-language="html">
<li>
<a href="#" class="attached-file">
<i class="ace-icon fa fa-file-o"></i>
<span class="attached-name">Document1.pdf</span>
</a>
<span class="action-buttons">
<a href="#"><i class="ace-icon fa fa-download blue"></i></a>
<a href="#"><i class="ace-icon fa fa-trash-o red"></i></a>
</span>
</li>
</pre>
<!-- /section:pages/inbox.message-attachment -->
</li>
</ul>
</div>
<!-- /section:pages/inbox.message-content -->
<h3 class="info-title smaller" data-id="#pages/inbox.compose">Message Compose</h3>
<!-- #section:pages/inbox.compose -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Message compose area consists of a form with optional elements and a navbar with optional buttons.
<pre data-language="html">
<div id="id-message-new-navbar" class="hide message-navbar clearfix">
<div class="message-bar">
<div class="message-toolbar">
<!-- optional buttons -->
</div>
</div>
<div>
<div class="messagebar-item-left">
<a href="#" class="btn-back-message-list">
<i class="ace-icon fa fa-arrow-left middle blue"></i>
<b class="middle">Back</b>
</a>
</div>
<div class="messagebar-item-right">
<span class="btn-send-message blue">
<button type="button" class="btn btn-sm btn-primary btn-white btn-round">
Send
<i class="ace-icon fa fa-arrow-right icon-on-right"></i>
</button>
</span>
</div>
</div>
</div>
</pre>
</li>
<li>
See the following files for more info:
<br />
<code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/pages/partials/inbox</span>message_form.mustache</code>
<br />
<code data-open-file="javascript" class="open-file"><span class="brief-show">mustache/app/views/assets/scripts/</span>inbox.js</code>
</li>
</ul>
<!-- /section:pages/inbox.compose -->
</div>
<h3 class="info-title smaller">Options</h3>
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
You can also make inbox message list more compact by adding
<code>.message-condensed</code> class to <code>.message-container</code>
</li>
<li>
Remove <code>.tab-size-bigger</code> from <code>ul.inbox-tabs</code> for smaller tabs
</li>
<li>
If you don't want a tabbed inbox, like the image below, you should make the following changes:
<div>
<span class="thumbnail inline">
<img src="images/tabless-inbox.png" />
</span>
</div>
<ol>
<li>Add <code>.inbox-menu</code> according to following file:
<br />
<code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/pages/partials/</span>inbox/folders.mustache</code>
</li>
<li>
Remove <code>.tabbable</code> and <code>.tab-pane</code> etc:
<br />
<code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/pages/</span>inbox.mustache</code>
</li>
</ol>
<pre data-language="html">
<div class="col-xs-2 inbox-menu">
<div class="center">
<a href="#" class="btn btn-purple btn-new-mail">
<i class="ace-icon fa fa-envelope"></i>
Write Mail
</a>
</div>
<div class="space-6"></div>
<!-- buttons here (see folders.mustache below) -->
</div>
<div class="col-xs-10">
<div id="inbox">
<div class="message-container">
<div class="message-list-container">
...
</div>
</div>
</div>
</div>
</pre>
</li>
</ul>
</div>
<h3 class="info-title smaller">Notes</h3>
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Please note that inbox layout and scripts
are for demo only and may not be suitable for your application.
<br />
For example when clicking to open a message,
the message content is already inside the page
but there's some fake waiting to simulate remote content loading.
</li>
</ul>
</div>
</div>
<!-- /section:pages/inbox -->
</section>