entity_tmpl.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. -->
  17. <thead>
  18. <tr>
  19. <th>Entity Type</th>
  20. <th>Active <span data-id="activeEntity"></span></th>
  21. <th>Deleted <span data-id="deletedEntity"></span></th>
  22. <th>Shell <span data-id="shellEntity"></span></th>
  23. </tr>
  24. </thead>
  25. {{#if data}}
  26. <tbody>
  27. {{#each data}}
  28. <tr>
  29. <td><span>{{@key}}&nbsp;({{arithmetic this.active '+' this.deleted}})</span></td>
  30. {{#if this.active}}
  31. <td>
  32. <a title="Search for active entities of type '{{@key}}'" class="linkClicked" href="#!/search/searchResult?searchType=basic&type={{@key}}">{{this.active}}</a>
  33. </td>
  34. {{else}}
  35. <td>0</td>
  36. {{/if}}
  37. {{#if this.deleted}}
  38. <td class="readOnlyLink">
  39. <a title="Search for deleted entities of type '{{@key}}'" class="linkClicked" href="#!/search/searchResult?type={{@key}}&attributes=__state%2Cdescription%2Cname%2Cowner%2Cselected%2Ctag%2CtypeName&entityFilters=AND(__state%3A%3A%3D%3A%3ADELETED%3A%3Astring)&includeDE=true&searchType=basic">{{this.deleted}}</a>
  40. </td>
  41. {{else}}
  42. <td>0</td>
  43. {{/if}}
  44. {{#if this.shell}}
  45. <td class="readOnlyLink">
  46. <a title="Search for shell entities of type '{{@key}}'" class="linkClicked" href="#!/search/searchResult?type={{@key}}&attributes=__isIncomplete%2Cdescription%2Cname%2Cowner%2Cselected%2Ctag%2CtypeName&entityFilters=AND(__isIncomplete%3A%3A%3D%3A%3A1%3A%3Ainteger)&searchType=basic">{{this.shell}}</a>
  47. </td>
  48. {{else}}
  49. <td>0</td>
  50. {{/if}}
  51. </tr>
  52. {{/each}}
  53. </tbody>
  54. {{/if}}