Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
feat(621): show case_count in summary table
Browse files Browse the repository at this point in the history
Closes #621
  • Loading branch information
alex-wilmer committed Mar 18, 2016
1 parent 39d7ccb commit cbce3a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app/scripts/components/summary-card/templates/summary-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ <h4 data-ng-if="!config.tableTitle || mode === 'graph'" class="panel-title pull-
<tr>
<th data-ng-if="groupingTitle" data-translate>{{::groupingTitle}}</th>
<td data-ng-if="!groupingTitle"></td>
<th data-translate>Cases</th>
<th data-translate>Files</th>
<th data-translate data-ng-if="config.showParticipant">Cases</th>
<th data-translate data-ng-if="!config.hideFileSize">File Size</th>
</tr>
</thead>
Expand All @@ -41,6 +41,12 @@ <h4 data-ng-if="!config.tableTitle || mode === 'graph'" class="panel-title pull-
<div class="item-color" style="background-color: {{ item.color }};"></div>
{{ item[config.displayKey] | humanify }}
</th>
<td class="text-right">
<a data-ng-if="item.case_count" data-ng-click="sc.addFilters(item, 'search.participants')">
{{ item.case_count | number }}
</a>
<span data-ng-if="!item.case_count">0</span>
</td>
<td class="text-right">
<a data-ng-if="sc.LocationService.path().indexOf('/query') === 0" data-uib-tooltip-html-unsafe="Further filtering in this view can <br>be performed using the <br>Advanced Search above">
{{ item[config.sortKey] | number }}
Expand All @@ -51,12 +57,6 @@ <h4 data-ng-if="!config.tableTitle || mode === 'graph'" class="panel-title pull-

<span data-ng-if="!item[config.sortKey]">0</span>
</td>
<td class="text-right" data-ng-if="config.showParticipant">
<a data-ng-if="item.case_count" data-ng-click="sc.addFilters(item, 'search.participants')">
{{ item.case_count | number }}
</a>
<span data-ng-if="!item.case_count">0</span>
</td>
<td class="text-right" data-ng-if="!config.hideFileSize">{{ item.file_size.value | size }}</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/search/templates/search.summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

<div class="row">
<div class="col-lg-4 col-sm-6">
<summary-card data-data="sc.summary.cases['cases.project.project_id'].buckets"
<summary-card data-data="sc.summary['project.project_id'].buckets"
height="177"
data-mode="graph"
data-config="sc.chartConfigs.projectIdChartConfig"
data-grouping-title="Project"
data-title="File Counts by Project"></summary-card>
</div>
<div class="col-lg-4 col-sm-6">
<summary-card data-data="sc.summary.cases['cases.project.primary_site'].buckets"
<summary-card data-data="sc.summary['project.primary_site'].buckets"
height="177"
data-mode="graph"
data-grouping-title="Primary Site"
Expand Down

0 comments on commit cbce3a7

Please sign in to comment.