Commit b988313a authored by Gabriel Gutu-Robu's avatar Gabriel Gutu-Robu

Contributions Indices in CSCL now includes details about contributions

parent 70a0fd5e
......@@ -34,8 +34,10 @@
}
.contributions-indices>thead th,
.contributions-indices>tbody td.contribution-id {
.contributions-indices>tbody td.contribution-id,
.contributions-indices>tfoot td {
color: #43b9c7;
font-weight: bold;
}
.contributions-indices td.value {
......
......@@ -191,19 +191,38 @@
<table class="contributions-indices">
<thead>
<tr class="entry">
<th>Contribution ID</th>
<th>ID</th>
<th>Parent</th>
<th>Timestamp</th>
<th>Participant</th>
<th>Utterance</th>
<th>Social KB</th>
<th>Importance</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let contribution of response.data.contributionsIndices; let i = index"
<tr *ngFor="let contribution of response.data.contributionsIndices.contributions"
class="entry">
<td class="contribution-id">{{i}}</td>
<td class="contribution-id">{{contribution.genid}}</td>
<td class="value">{{contribution.ref}}</td>
<td class="value">{{contribution.timestamp}}</td>
<td class="value">{{contribution.participant}}</td>
<td class="value">{{contribution.text}}</td>
<td class="value">{{contribution.SOCIAL_KB | number:'1.3-3'}}</td>
<td class="value">{{contribution.LOCAL_IMPORTANCE | number:'1.3-3'}}</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>Total</td>
<td>{{response.data.contributionsIndices.total.SOCIAL_KB | number:'1.3-3'}};</td>
<td>{{response.data.contributionsIndices.total.LOCAL_IMPORTANCE | number:'1.3-3'}};</td>
</tr>
</tfoot>
</table>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment