mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-06 23:55:08 +00:00
190 lines
8.7 KiB
HTML
190 lines
8.7 KiB
HTML
|
|
@(user: String, isInternal:Boolean)
|
||
|
|
@main(user, "", isInternal) {
|
||
|
|
<div id="content">
|
||
|
|
<script type="text/x-handlebars" id="dashboard">
|
||
|
|
<div id="schemaView" class="container-fluid">
|
||
|
|
<div class="col-xs-12">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-12">
|
||
|
|
<h3>Metadata Dashboard</h3>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-12 well well-sm">
|
||
|
|
<ul class="breadcrumbs">
|
||
|
|
{{#each breadcrumbs as |crumb|}}
|
||
|
|
<li>
|
||
|
|
<a href={{crumb.urn}} title={{crumb.title }}>
|
||
|
|
{{ crumb.title }}
|
||
|
|
</a>
|
||
|
|
</li>
|
||
|
|
{{/each}}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<ul id="dashboardtabs" class="nav nav-tabs">
|
||
|
|
<li id="confidentialpage">
|
||
|
|
<a id="confidentiallink" data-toggle="tab" href="#confidentialtab">Confidential Fields</a>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<div class="tab-content">
|
||
|
|
<div id="confidentialtab" class="tab-pane">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-12 col-md-4">
|
||
|
|
<h4>Confidential Fields for {{ currentConfidentialFieldsUser.displayName }}</h4>
|
||
|
|
<table class="table table-bordered table-condensed table-hover">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th class="text-center">Name</th>
|
||
|
|
<th class="text-center">Completion</th>
|
||
|
|
<th class="text-center">Total Potential</th>
|
||
|
|
<th class="text-center">Confirmed</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<img src={{currentConfidentialFieldsUser.iconUrl}} title={{currentConfidentialFieldsUser.displayName}}
|
||
|
|
width="25px"
|
||
|
|
height="25px"/>
|
||
|
|
<a href='metadata#/dashboard/{{currentConfidentialFieldsUser.userName}}' title={{currentConfidentialFieldsUser.displayName}}>
|
||
|
|
{{ currentConfidentialFieldsUser.displayName }}
|
||
|
|
</a>
|
||
|
|
</td>
|
||
|
|
<td class="text-center">{{ currentConfidentialFieldsUser.completed }}%</td>
|
||
|
|
<td class="text-center">{{ currentConfidentialFieldsUser.potentialDatasets }}</td>
|
||
|
|
<td class="text-center">{{ currentConfidentialFieldsUser.confirmed }}</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
<h4>Ticket Roll-Up for Individual User</h4>
|
||
|
|
<table class="table table-bordered table-condensed table-hover">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th class="text-center">Name</th>
|
||
|
|
<th class="text-center">Completion</th>
|
||
|
|
<th class="text-center">Total Potential</th>
|
||
|
|
<th class="text-center">Confirmed</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{{#if userNoMembers}}
|
||
|
|
<tr>
|
||
|
|
<td colspan="5">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-12 text-center">
|
||
|
|
This user has no one that reports to them.
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{{else}}
|
||
|
|
{{#each confidentialFieldsOwners as |user|}}
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<img src={{user.iconUrl}} title={{user.displayName}}
|
||
|
|
width="25px"
|
||
|
|
height="25px"/>
|
||
|
|
<a href='metadata#/dashboard/{{user.userName}}' title={{user.displayName}}>
|
||
|
|
{{ user.displayName }}
|
||
|
|
</a>
|
||
|
|
</td>
|
||
|
|
<td class="text-center">{{ user.completed }}%</td>
|
||
|
|
<td class="text-center">{{ user.potentialDatasets }}</td>
|
||
|
|
<td class="text-center">{{ user.confirmed }}</td>
|
||
|
|
</tr>
|
||
|
|
{{/each}}
|
||
|
|
{{/if}}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<div class="col-xs-12 col-md-8">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-9">
|
||
|
|
<h4>List of Potential Datasets</h4>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="search-pagination">
|
||
|
|
<ul class="pager">
|
||
|
|
{{#unless cfFirst}}
|
||
|
|
<li class="previous">
|
||
|
|
<a {{ action "prevCfPage" }}>
|
||
|
|
← Prev
|
||
|
|
</a>
|
||
|
|
</li>
|
||
|
|
{{/unless}}
|
||
|
|
<li>
|
||
|
|
{{ confidentialFieldsDatasets.count }} datasets - page {{ confidentialFieldsDatasets.page }} of {{ confidentialFieldsDatasets.totalPages }}
|
||
|
|
</li>
|
||
|
|
{{#unless cfLast}}
|
||
|
|
<li class="next">
|
||
|
|
<a {{ action "nextCfPage" }}>
|
||
|
|
Next →
|
||
|
|
</a>
|
||
|
|
</li>
|
||
|
|
{{/unless}}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<table class="table table-bordered table-condensed table-hover table-striped">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th class="text-center">Dataset</th>
|
||
|
|
<th class="text-center">Fields</th>
|
||
|
|
<th class="text-center">Owners</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{{#if ticketsInProgress}}
|
||
|
|
<tr>
|
||
|
|
<td colspan="8" class="text-center">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-12">
|
||
|
|
<i class="fa fa-spinner spinning fa-4x">
|
||
|
|
</i>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{{else}}
|
||
|
|
{{#if userNoConfidentialFields}}
|
||
|
|
<tr>
|
||
|
|
<td colspan="8">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-12 text-center">
|
||
|
|
This user has no datasets with confidential fields.
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{{else}}
|
||
|
|
{{#each confidentialFieldsDatasets.datasets as |dataset|}}
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<a href="/#/datasets/{{dataset.datasetId}}">
|
||
|
|
{{ dataset.datasetName }}
|
||
|
|
</a>
|
||
|
|
</td>
|
||
|
|
<td class="text-center">
|
||
|
|
{{ dataset.confidentialFieldList }}
|
||
|
|
</td>
|
||
|
|
<td class="text-center">{{ dataset.ownerId }}</td>
|
||
|
|
</tr>
|
||
|
|
{{/each}}
|
||
|
|
{{/if}}
|
||
|
|
{{/if}}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</script>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script src="@routes.Assets.at("vendors/ember-2.6.2/ember-template-compiler.js")" type="text/javascript"></script>
|
||
|
|
<script src="@routes.Assets.at("vendors/ember-2.6.2/ember.js")" type="text/javascript"></script>
|
||
|
|
<script src="@routes.Assets.at("javascripts/dashboard.js")" type="text/javascript"></script>
|
||
|
|
}
|