Set test results paragraph messages.

RefStack test results page paragraph should change
accordingly whether or not user is login.

Closes-Bug: #1514328

Change-Id: Ibfc60665398731f82e2be2b58c389eacbd66d81d
This commit is contained in:
david liu
2015-11-11 11:22:19 +08:00
parent 98dbf7e456
commit 6db7573ca3
2 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<h3>{{ctrl.pageHeader}}</h3>
<p>The most recently uploaded community test results are listed here.</p>
<p>{{ctrl.pageParagraph}}</p>
<div class="result-filters">
<h4>Filters</h4>

View File

@@ -72,6 +72,11 @@
ctrl.pageHeader = ctrl.isUserResults ?
'Private test results' : 'Community test results';
ctrl.pageParagraph = ctrl.isUserResults ?
'Your most recently uploaded test results are listed here.' :
'The most recently uploaded community test results are listed ' +
'here.';
if (ctrl.isUserResults) {
ctrl.authRequest = $scope.auth.doSignCheck()
.then(ctrl.update);