/
chatter.mustache
66 lines (65 loc) · 2.73 KB
/
chatter.mustache
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
<div id="chatter-panel">
<div class="pushdownContent clearfix">
<div id="on-your-mind" class="panel">
<h3>On your mind</h3>
<form class="form-stacked" action="{{chatter_url}}/add_chatter.html" method="POST">
<div class="control-group clearfix">
<div class="controls">
<textarea id="chatter-panel-text" name="text"></textarea>
<p class="help-block tips">Tips: Use @username, #tag, and #this for this page</p>
</div>
<div class="actions">
<div class="btn-group">
<button id="speak" type="submit" class="btn btn-small">Speak</button>
</div>
</div>
</div>
</form>
<div class="houstonWeHaveAProblem notification info">
<strong>Something went wrong.</strong>
<p>We could not update the messages for you. But don't you
worry, we'll try again as soon as possible.</p>
</div>
<a id="goto-chatter" class="btn btn-small btn-primary goto" href="{{chatter_url}}" title="Go to Chatter">Go to Chatter</a>
</div>
{{#streams}}
<div id="{{class}}" class="panel">
<h3>{{title}}<span class="updating">Updating…</span></h3>
{{#items}}
<div class="panel-item clearfix {{#new}}newMessage{{/new}}">
<div class="panel-item-content">
<a href="{{author_profile_url}}">
<img alt="{{author}}" src="{{image_url}}"
class="avatar" />
<strong class="fullname">{{author}}</strong>
</a>
<div>
<a href="{{message_url}}" class="messagetext">
{{text}}
</a>
</div>
</div>
<div class="panel-footer clearfix">
<abbr class="timeago" title="{{info}}">{{info}}</abbr>
</div>
</div>
{{/items}}
<a href="{{has_more_news_url}}" class="thereIsMore" title="Go to Chatter">
{{#has_more_news}}
<span class="newMessages">{{has_more_news}} more new items</span>
{{/has_more_news}}
{{^has_more_news}}
<span class="noNewMessages">…</span>
{{/has_more_news}}
</a>
</div>
{{/streams}}
</div>
<script language="javascript" type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$(".panel-footer abbr.timeago").timeago();
});
//]]>
</script>
</div>