Fixed service count display service list view.
This commit is contained in:
parent
c9f0b7ed81
commit
03df54abb5
6 changed files with 6 additions and 9 deletions
|
@ -93,8 +93,6 @@ public class OrganizationHeaderView
|
||||||
data.setContent("organizationStartDateWord", "");
|
data.setContent("organizationStartDateWord", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
data.setContent("serviceCount", organization.getServices().size());
|
|
||||||
|
|
||||||
data.setAttribute("rawLink", "href", organization.getTechnicalName() + ".properties");
|
data.setAttribute("rawLink", "href", organization.getTechnicalName() + ".properties");
|
||||||
data.setAttribute("rawCheckLink", "href", organization.getTechnicalName() + "-check.xhtml");
|
data.setAttribute("rawCheckLink", "href", organization.getTechnicalName() + "-check.xhtml");
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org>
|
* Copyright (C) 2020-2021 Christian Pierre MOMON <christian@momon.org>
|
||||||
*
|
*
|
||||||
* This file is part of StatoolInfos, simple service statistics tool.
|
* This file is part of StatoolInfos, simple service statistics tool.
|
||||||
*
|
*
|
||||||
|
@ -59,6 +59,8 @@ public class ServiceListView
|
||||||
|
|
||||||
TagDataManager data = new TagDataManager();
|
TagDataManager data = new TagDataManager();
|
||||||
|
|
||||||
|
data.setContent("serviceCount", services.size());
|
||||||
|
|
||||||
if (services.isEmpty())
|
if (services.isEmpty())
|
||||||
{
|
{
|
||||||
data.setAttribute("serviceListLine", "class", "xid:nodisplay");
|
data.setAttribute("serviceListLine", "class", "xid:nodisplay");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org>
|
* Copyright (C) 2020-2021 Christian Pierre MOMON <christian@momon.org>
|
||||||
*
|
*
|
||||||
* This file is part of StatoolInfos, simple service statistics tool.
|
* This file is part of StatoolInfos, simple service statistics tool.
|
||||||
*
|
*
|
||||||
|
@ -76,7 +76,6 @@ public class ServicesPage
|
||||||
|
|
||||||
TagDataManager data = new TagDataManager();
|
TagDataManager data = new TagDataManager();
|
||||||
|
|
||||||
data.setContent("serviceCount", services.size());
|
|
||||||
data.setContent("serviceListView", ServiceListView.build(services));
|
data.setContent("serviceListView", ServiceListView.build(services));
|
||||||
|
|
||||||
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/services.xhtml", data).toString();
|
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/services.xhtml", data).toString();
|
||||||
|
|
|
@ -44,8 +44,6 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
|
||||||
<div>Nombre de services : <span id="serviceCount">n/a</span></div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="center_table" style="width: 1450px;">
|
<div class="center_table" style="width: 1450px;">
|
||||||
|
<br/>
|
||||||
|
<div class="center">Nombre de services : <span id="serviceCount">n/a</span></div>
|
||||||
|
|
||||||
<div class="legend right" style="float: right; margin-top: -150px;">
|
<div class="legend right" style="float: right; margin-top: -150px;">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="center" style="">
|
<div class="center" style="">
|
||||||
<h2>Tous les services</h2>
|
<h2>Tous les services</h2>
|
||||||
|
|
||||||
<div>Nombre de services : <span id="serviceCount">n/a</span></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="serviceListView" />
|
<div id="serviceListView" />
|
||||||
|
|
Loading…
Reference in a new issue