Nicer handling of no-related surveys
<waltz-section name="Related Viewpoints"
icon="link"
id="related-measurables">
- <div class="row">
+ <div class="row"
+ ng-if="$ctrl.relatedMeasurables.length > 1">
<div class="col-sm-7">
<waltz-measurable-ratings-browser rating-tallies="$ctrl.stats"
measurables="$ctrl.relatedMeasurables"
scroll-height="400">
</waltz-measurable-ratings-browser>
</div>
+
<div class="col-sm-5">
<div ng-if="$ctrl.selectedMeasurable"
class="waltz-fade-if"
</div>
</div>
+ <div class="row"
+ ng-if="$ctrl.relatedMeasurables.length < 2">
+ <div class="col-sm-12">
+ <waltz-no-data>
+ <message>
+ <strong>No related viewpoints found.</strong>
+ </message>
+ </waltz-no-data>
+
+ </div>
+ </div>
+
<div class="row">
<div class="col-sm-12">
<br>
