Skip to content

Commit

Permalink
changed width of minibelt widget & added iframe copy/paste code for i…
Browse files Browse the repository at this point in the history
…gloo (#127)

* 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

* updated width of mini belt widget and added iframe copy/paste code for Igloo
  • Loading branch information
matallen authored Oct 19, 2020
1 parent b457b56 commit 0b756da
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/main/webapp/mojo/mojo-miniBeltWidget-iframe.jsp
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">
</script>

<p>
<iframe id="frame" src="https://community-ninja-board-ninja-board.int.open.paas.redhat.com/community-ninja-board/mojo/mojo-miniBeltWidget.jsp" style="width: 100%; height:300px;" border="0"></iframe>
</p>
<script type="text/javascript">
/*<![CDATA[*/
$(document).ready(function()
{
$("#frame").prop("src", $("#frame").prop("src")+"?username=" + Igloo.currentUser.namespace);
});
/*]]>*/
</script>
</div>
2 changes: 1 addition & 1 deletion src/main/webapp/mojo/mojo-miniBeltWidget.jsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<center>
<style>
table{
width:210px; /* width of the mojo widget in Overview mode, remove for Tiles mode*/
width:174px; /* width of the mojo widget in Overview mode, remove for Tiles mode*/
}
.text{
font-family: Overpass, Sans-serif;
Expand Down

0 comments on commit 0b756da

Please sign in to comment.