-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from polarityio/develop
feat: add copy data button
- Loading branch information
Showing
5 changed files
with
174 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,138 @@ | ||
{{#if errorMessage}} | ||
<div class="alert alert-danger"> | ||
<pre>{{errorMessage}}</pre> | ||
</div> | ||
<div class="alert alert-danger"> | ||
<pre>{{errorMessage}}</pre> | ||
</div> | ||
{{/if}} | ||
{{#if (or details.isConnectionReset details.maxRequestQueueLimitHit)}} | ||
<button type="button" class="btn btn-polarity btn-sm retry-btn"{{action "retryLookup"}}> | ||
{{#if running}} | ||
{{fa-icon icon="spinner-third" fixedWidth=true spin=true}} | ||
{{else}} | ||
Retry Search | ||
{{/if}} | ||
</button> | ||
<div class="mt-1"> | ||
<span class="p-footnote">The ARIN API search limit was reached. You can retry your search by pressing the "Retry Search" button.</span> | ||
</div> | ||
{{else if details}} | ||
{{#if block.isCached}} | ||
<i class="cached">(Entity is Cached)</i> | ||
<button type="button" class="btn btn-polarity btn-sm retry-btn" {{action "retryLookup"}}> | ||
{{#if running}} | ||
{{fa-icon icon="spinner-third" fixedWidth=true spin=true}} | ||
{{else}} | ||
Retry Search | ||
{{/if}} | ||
</button> | ||
<div class="mt-1"> | ||
<span class="p-footnote">The ARIN API search limit was reached. You can retry your search by pressing the "Retry | ||
Search" button.</span> | ||
</div> | ||
{{else if details}} | ||
|
||
{{#if block.isCached}} | ||
<i class="cached">(Entity is Cached)</i> | ||
{{/if}} | ||
|
||
<h1 class="p-title">{{fa-icon icon="sitemap" fixedWidth=true}} Organization Information | ||
{{#if details.orgRef}} | ||
<a class="p-link" href="{{details.orgRef}}">(View Org Info {{fa-icon icon="external-link-square" fixedWidth=true class="external-link"}})</a> | ||
{{/if}} | ||
<div class="d-flex align-items-center justify-content-end copy-btn-container"> | ||
<button class="btn copy-btn p-action" {{action "copyData"}} title="Copy Information to Clipboard"> | ||
{{fa-icon icon="clipboard" fixedWidth=true}} | ||
</button> | ||
<div class="copy-success-message {{if showCopyMessage "visible" "hidden"}}"> | ||
{{fa-icon icon="check" fixedWidth=true class="copy-success-icon"}} | ||
Copied Information. | ||
</div> | ||
</div> | ||
|
||
<div id={{concat "arin-container-" uniqueIdPrefix}}> | ||
<h1 class="p-title">{{fa-icon icon="sitemap" fixedWidth=true}} | ||
Organization Information | ||
{{#if details.orgRef}} | ||
<a class="p-link" href="{{details.orgRef}}">(View Org Info | ||
{{fa-icon icon="external-link-square" fixedWidth=true class="external-link"}})</a> | ||
{{/if}} | ||
</h1> | ||
|
||
{{#if details.orgHandle}} | ||
<div> | ||
<span class="p-key">Handle: </span> | ||
<span class="p-value">{{details.orgHandle}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Handle: </span> | ||
<span class="p-value">{{details.orgHandle}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.orgName}} | ||
<div> | ||
<span class="p-key">Name: </span> | ||
<span class="p-value">{{details.orgName}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Name: </span> | ||
<span class="p-value">{{details.orgName}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
|
||
<h1 class="p-title">{{fa-icon icon="cube" fixedWidth=true}} Network Block | ||
{{#if details.netBlockRef}} | ||
<a class="p-link" href="{{details.netBlockRef}}">(View Network Info {{fa-icon icon="external-link-square" fixedWidth=true class="external-link"}})</a> | ||
{{/if}} | ||
<h1 class="p-title">{{fa-icon icon="cube" fixedWidth=true}} | ||
Network Block | ||
{{#if details.netBlockRef}} | ||
<a class="p-link" href="{{details.netBlockRef}}">(View Network Info | ||
{{fa-icon icon="external-link-square" fixedWidth=true class="external-link"}})</a> | ||
{{/if}} | ||
</h1> | ||
|
||
{{#if details.netBlockHandle}} | ||
<div> | ||
<span class="p-key">Handle: </span> | ||
<span class="p-value">{{details.netBlockHandle}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Handle: </span> | ||
<span class="p-value">{{details.netBlockHandle}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.netBlockName}} | ||
<div> | ||
<span class="p-key">Name: </span> | ||
<span class="p-value">{{details.netBlockName}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Name: </span> | ||
<span class="p-value">{{details.netBlockName}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.netBlockCIDR}} | ||
<div> | ||
<span class="p-key">CIDR: </span> | ||
<span class="p-value">{{details.netBlockCIDR}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">CIDR: </span> | ||
<span class="p-value">{{details.netBlockCIDR}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.startAddr}} | ||
<div> | ||
<span class="p-key">Start Address: </span> | ||
<span class="p-value">{{details.startAddr}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Start Address: </span> | ||
<span class="p-value">{{details.startAddr}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.endAddr}} | ||
<div> | ||
<span class="p-key">End Address: </span> | ||
<span class="p-value">{{details.endAddr}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">End Address: </span> | ||
<span class="p-value">{{details.endAddr}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.regDate}} | ||
<div> | ||
<span class="p-key">Registration Date: </span> | ||
<span class="p-value">{{details.regDate}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Registration Date: </span> | ||
<span class="p-value">{{details.regDate}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.upDate}} | ||
<div> | ||
<span class="p-key">Last Update Date: </span> | ||
<span class="p-value">{{details.upDate}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Last Update Date: </span> | ||
<span class="p-value">{{details.upDate}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.parentRef}} | ||
<h1 class="p-title">{{fa-icon icon="globe" fixedWidth=true}} Parent Network Details | ||
<a class="p-link" href="{{details.parentRef}}">(View Parent Info {{fa-icon icon="external-link-square" fixedWidth=true class="external-link"}})</a> | ||
</h1> | ||
<h1 class="p-title">{{fa-icon icon="globe" fixedWidth=true}} | ||
Parent Network Details | ||
<a class="p-link" href="{{details.parentRef}}">(View Parent Info | ||
{{fa-icon icon="external-link-square" fixedWidth=true class="external-link"}})</a> | ||
</h1> | ||
{{/if}} | ||
|
||
{{#if details.parentHandle}} | ||
<div> | ||
<span class="p-key">Parent Net Handle: </span> | ||
<span class="p-value">{{details.parentHandle}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Parent Net Handle: </span> | ||
<span class="p-value">{{details.parentHandle}}</span> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if details.parentName}} | ||
<div> | ||
<span class="p-key">Parent Net Name: </span> | ||
<span class="p-value">{{details.parentName}}</span> | ||
</div> | ||
<div> | ||
<span class="p-key">Parent Net Name: </span> | ||
<span class="p-value">{{details.parentName}}</span> | ||
</div> | ||
{{/if}} | ||
</div> | ||
{{else}} | ||
No Results | ||
{{/if}} | ||
|
||
No Results | ||
{{/if}} |