-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR to help support the use of iframes to display dashboard and widget…
…s in The Source (#126) * update to mojo dashboard & belt widget to take username as param for The Source mogration * update to mojo dashboard & belt widget to take username as param for The Source mogration * removed commented line
- Loading branch information
Showing
2 changed files
with
34 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div> | ||
<script src="https://code.jquery.com/jquery-3.5.1.min.js" type="text/javascript" unsafe.integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" unsafe.crossorigin="anonymous"> | ||
</script> | ||
|
||
<p> | ||
<iframe id="frame" src="https://community-ninja-board-ninja-board.int.open.paas.redhat.com/community-ninja-board/mojo/mojo-dashboard-card.jsp" style="width: 100%; height:500px;" border="0"></iframe> | ||
</p> | ||
<script type="text/javascript"> | ||
/*<![CDATA[*/ | ||
$(document).ready(function() | ||
{ | ||
$("#frame").prop("src", $("#frame").prop("src")+"?username=" + Igloo.currentUser.namespace); | ||
}); | ||
/*]]>*/ | ||
</script> | ||
</div> |
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