first commit
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
|
||||
<f:if condition="{indexFieldsInfoForCore.noError}">
|
||||
|
||||
<f:if condition="{indexFieldsInfoForCore.coreMetrics.numberOfDocuments}">
|
||||
<f:then>
|
||||
<div class="row core-metrics">
|
||||
<div class="col-md-4">
|
||||
<div class="well text-center">
|
||||
<p>{indexFieldsInfoForCore.coreMetrics.numberOfDocuments}</p>
|
||||
<h3>Documents</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="well text-center">
|
||||
<p>{indexFieldsInfoForCore.coreMetrics.numberOfDeletedDocuments}</p>
|
||||
|
||||
<h3>Deleted Documents</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="well text-center">
|
||||
<p>{indexFieldsInfoForCore.coreMetrics.numberOfFields}</p>
|
||||
<h3>Fields</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table table-condensed table-hover table-striped">
|
||||
<thead>
|
||||
<tr class="t3-row-header">
|
||||
<th>Field Name</th>
|
||||
<th>Index Field Type</th>
|
||||
<th># Documents</th>
|
||||
<th>Distinct Terms</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<f:for each="{indexFieldsInfoForCore.fields}" as="field">
|
||||
<tr>
|
||||
<td>{field.name}</td>
|
||||
<td>{field.type}</td>
|
||||
<td>{field.docs}</td>
|
||||
<td>{field.terms}</td>
|
||||
</tr>
|
||||
</f:for>
|
||||
</tbody>
|
||||
</table>
|
||||
</f:then>
|
||||
|
||||
<f:else>
|
||||
<div class="well">
|
||||
<p>Your index in "{indexFieldsInfoForCore.corePath}" is empty.</p>
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
@@ -0,0 +1,51 @@
|
||||
{namespace solr=WapplerSystems\Meilisearch\ViewHelpers\Backend}
|
||||
|
||||
<f:if condition="{document}">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
<a href="#panel-group4document-id-{document.fields._version_}" data-toggle="collapse">Title: {document.fields.title}</a>
|
||||
<a href="#panel-group4document-id-{document.fields._version_}" title="Collapse table" class="pull-right" data-toggle="collapse">
|
||||
<core:icon identifier="actions-view-list-expand" size="small"/><f:comment><!-- @todo: make Icon toggable between actions-view-list-collapse/actions-view-list-expand --></f:comment>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="panel-group4document-id-{document.fields._version_}" class="panel-collapse collapse {f:if(condition: '{documentsCount} < 2', then: 'in', else: '')}">
|
||||
<div class="panel-body">
|
||||
<table class="table table-condensed table-hover table-striped">
|
||||
<thead><tr><th>Fieldname</th><th>Value</th></tr></thead>
|
||||
<tbody id="document-tbody-pid-{document.fields.uid}">
|
||||
<f:render section="Rows" arguments="{tableRows: document.fields, document: document}"/>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:section name="Rows">
|
||||
<f:for each="{tableRows}" key="tableRowFiledName" as="tableRowValue" >
|
||||
<tr>
|
||||
<th scope="row">{tableRowFiledName}</th>
|
||||
<solr:isString value="{tableRowValue}">
|
||||
<f:then>
|
||||
<td>{tableRowValue}</td>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<td>
|
||||
<f:render section="SubTable" arguments="{tableRows: tableRowValue}"/>
|
||||
</td>
|
||||
</f:else>
|
||||
</solr:isString>
|
||||
</tr>
|
||||
</f:for>
|
||||
</f:section>
|
||||
|
||||
<f:section name="SubTable">
|
||||
<table class="table table-condensed table-hover table-striped table-bordered">
|
||||
<thead><tr><th>Fieldname</th><th>Value</th></tr></thead>
|
||||
<tbody>
|
||||
<f:render section="Rows" arguments="{tableRows: tableRows}"/>
|
||||
</tbody>
|
||||
</table>
|
||||
</f:section>
|
Reference in New Issue
Block a user