-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have labels with URLs in them turn into links
- Loading branch information
Joseph Schorr
committed
Jan 6, 2020
1 parent
d8bd445
commit 291967b
Showing
3 changed files
with
30 additions
and
6 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
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,8 +1,20 @@ | ||
<a class="label-view-element" ng-click="viewLabelValue()"> | ||
<span class="kind">{{ getKind(label) }}</span> | ||
<span class="label-value"> | ||
<span class="label-view-element"> | ||
<a class="label-view-element-link" ng-click="viewLabelValue()" ng-if="!isUrl(label.value)"> | ||
<span class="kind" ng-show="getKind(label)">{{ getKind(label) }}</span> | ||
<span class="label-value"> | ||
<span class="key">{{ label.key }}</span> | ||
<span class="equals">=</span> | ||
<span class="value">{{ label.value }}</span> | ||
</span> | ||
</a> | ||
<a class="label-view-element-link is-link" | ||
ng-if="isUrl(label.value)" | ||
ng-href="{{ label.value }}" | ||
rel="nofollow noopener" | ||
target="_blank"> | ||
<span class="label-value"> | ||
<span class="key">{{ label.key }}</span> | ||
<span class="equals">=</span> | ||
<span class="value">{{ label.value }}</span> | ||
</span> | ||
</a> | ||
</span> | ||
</a> | ||
</span> |
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