changes wording on compliance tab. adds page count to dataset-table-pager component. removes index.scala.html

This commit is contained in:
Seyi Adebajo 2017-04-10 17:53:10 -07:00 committed by Mars Lan
parent 5ced597fc7
commit 8e41333b6c
5 changed files with 11 additions and 31 deletions

View File

@ -15,7 +15,6 @@ package controllers;
import java.io.InputStream;
import javax.annotation.Nullable;
import dao.FlowsDAO;
import dao.MetricsDAO;
import dao.UserDAO;
@ -26,7 +25,6 @@ import play.mvc.Result;
import play.Logger;
import play.mvc.Security;
import utils.Tree;
import views.html.*;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;

View File

@ -1,25 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WhereHows by LinkedIn&reg;</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/assets/assets/vendor.css">
<link rel="stylesheet" href="/assets/assets/wherehows-web.css">
</head>
<body>
<script src="/assets/assets/vendor.js"></script>
<script src="/assets/assets/wherehows-web.js"></script>
</body>
</html>

View File

@ -12,7 +12,13 @@ export default Component.extend({
classNames: ['nacho-pager'],
pages: computed('data', 'limit', function() {
pages: computed('numberOfPages', function () {
const numberOfPages = get(this, 'numberOfPages');
return [...Array(numberOfPages).keys()].map(x => x + 1);
}),
numberOfPages: computed('data', 'limit', function () {
const { data, limit: rowsPerPage = 1 } = getProperties(
this,
'data',
@ -26,7 +32,7 @@ export default Component.extend({
needsExtraPage && ++numberOfPages;
}
return [...Array(numberOfPages).keys()].map(x => x + 1);
return numberOfPages;
}),
actions: {

View File

@ -39,8 +39,8 @@
of
<strong>3</strong>
</span>
Can any fields in this dataset's schema be used to identify a
member?
Do fields in the schema contain the ID of a member (e.g. id, urn
etcetera)?
</p>
</header>
</section>

View File

@ -7,6 +7,7 @@
selected=page
class="nacho-pager__select"
selectionDidChange="changePage"}}
<p class="nacho-pager__desc"> of {{numberOfPages}}</p>
</span>
<span class="nacho-pager__section">