-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.php
More file actions
57 lines (52 loc) · 2.29 KB
/
table.php
File metadata and controls
57 lines (52 loc) · 2.29 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
<table class="table table-condensed table-striped table-hover" style="width: auto;">
<thead>
<tr>
<th>Date</th>
<th>Type</th>
<th>Source</th>
<th class="{sorter: 'text'}">Language</th>
<th>Klout</th>
<th>Sentiment</th>
<th></th>
</tr>
</thead>
<tbody>
<script id="table-line-tmpl" type="text/x-jQuery-tmpl">
{{for messages}}
<tr>
<td class="span2"><small>{{: ~simpleDate(interaction.created_at)}}</small></td>
<td class="span3">
{{: interaction.type}}
{{if interaction.subtype}}
<small class="muted"> {{: interaction.subtype}}</small>
{{else}}
{{if ~getRealType(#data) != interaction.type}}<small class="muted">{{: ~getRealType(#data)}}</small>{{/if}}
{{/if}}
</td>
<td class="span4">{{: interaction.source}}</td>
<td>
<p class="text-center">
{{if language}}
{{: language.tag}} <small class="muted">{{: language.confidence}}</small>
{{/if}}
</p>
</td>
<td class="span1"><p class="text-center">{{if klout}}{{: klout.score}}{{/if}}</p></td>
<td class="span1"><p class="text-center">{{if salience.content.sentiment}}{{: salience.content.sentiment}}{{/if}}</p></td>
<td class="span2">
<p class="text-right">
{{if ~hasMedia(#data)}}
<a href="#/medias/{{: #parent.index+1}}" data-toggle="tooltip" title="view media"><i class='icon-picture'></i></a>
{{/if}}
{{if interaction.geo}}
<a href="#/map/{{: #parent.index+1}}" data-toggle="tooltip" title="view in map"><i class="icon-map-marker"></i></a>
{{/if}}
<a href="#/raw/{{: #index+1}}" data-toggle="tooltip" title="view source"><img src="img/source.png"></a>
<a href="{{: interaction.link}}" data-toggle="tooltip" title="view link" target="_blank"><img src="img/link.png"></a>
</p>
</td>
</tr>
{{/for}}
</script>
</tbody>
</table>