Skip to content

Commit

Permalink
UI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zajakin committed Sep 1, 2024
1 parent ff2fe6d commit dff265c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Docker-BioInf-per-student.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,9 @@ done
ln -sf /usr/share/novnc/vnc.html /usr/share/novnc/index.html
sed -i 's@^<table>.*</table>@@' /usr/lib/python3/dist-packages/supervisor/ui/status.html
cp /usr/lib/python3/dist-packages/supervisor/ui/status.html /usr/lib/python3/dist-packages/supervisor/ui/status.dist
sed -i 's@ <ul class="clr" id="buttons">
<li class="action-button"><a href="index.html?action=refresh">Refresh</a></li>
<li class="action-button"><a href="index.html?action=restartall">Restart All</a></li>
<li class="action-button"><a href="index.html?action=stopall">Stop All</a></li>
</ul>
@@' /usr/lib/python3/dist-packages/supervisor/ui/status.html
sed -i 's@<li class="action-button"><a href="index.html?action=refresh">Refresh</a></li>@@' /usr/lib/python3/dist-packages/supervisor/ui/status.html
sed -i 's@<li class="action-button"><a href="index.html?action=restartall">Restart All</a></li>@@' /usr/lib/python3/dist-packages/supervisor/ui/status.html
sed -i 's@<li class="action-button"><a href="index.html?action=stopall">Stop All</a></li>@@' /usr/lib/python3/dist-packages/supervisor/ui/status.html
sed -i 's@<div id="header">@<table><tr align="center"><td><a href="${URLp}/home/"><h1>Home directory</h1></a></td><td><a href="${URLp}/public/"><h1>Public directory</h1></a></td></tr><tr align="center" valign="bottom"><td><a href="${URLr}"><img src="${URLp}/rstudio.png" /><br /><h1>R-Studio</h1></a></td><!--td><a href="${URLv}"><img src="${URLp}/VS.png" /><br /><h1>VS Code</h1></a></td--><td><a href="${URLj}"><img src="${URLp}/jupyter.png" /><br /><h1>Jupyter notebook</h1></a></td></tr><tr align="center" valign="bottom"><td><a href="${URLn}/vnc.html"><img src="${URLp}/noVNC.png" /><br /><h1>noVNC</h1></a></td><td><a href="${URLb}"><img src="${URLp}/shellinabox.png" /><br /><h1>Shell in a box</h1></a></td></tr><tr align="center"><td STYLE="border-style:solid; border-width:1px 1px 1px 1px"><a href="https://github.com/zajakin/Docker-BioInf"><h3>Created by Docker-BioInf system</h3></a></td><td STYLE="border-style:solid; border-width:1px 1px 1px 1px"><a href="http://${base}:61208"><h3>Tasks monitoring</h3></a></td></tr></table><div id="header" hidden="">@' /usr/lib/python3/dist-packages/supervisor/ui/status.html
#sed -i 's@ <div class="push">@<table><tr align="center"><td><a href="${URLp}/home/"><h1>Home directory</h1></a></td><td><a href="${URLp}/public/"><h1>Public directory</h1></a></td></tr><tr align="center" valign="bottom"><td><a href="${URLr}"><img src="${URLp}/rstudio.png" /><br /><h1>R-Studio</h1></a></td><!--td><a href="${URLv}"><img src="${URLp}/VS.png" /><br /><h1>VS Code</h1></a></td--><td><a href="${URLj}"><img src="${URLp}/jupyter.png" /><br /><h1>Jupyter notebook</h1></a></td></tr><tr align="center" valign="bottom"><td><a href="${URLn}/vnc.html"><img src="${URLp}/noVNC.png" /><br /><h1>noVNC</h1></a></td><td><a href="${URLb}"><img src="${URLp}/shellinabox.png" /><br /><h1>Shell in a box</h1></a></td></tr><tr align="center"><td STYLE="border-style:solid; border-width:1px 1px 1px 1px"><a href="https://github.com/zajakin/Docker-BioInf"><h3>Created by Docker-BioInf system</h3></a></td><td STYLE="border-style:solid; border-width:1px 1px 1px 1px"><a href="http://${base}:61208"><h3>Tasks monitoring</h3></a></td></tr></table><div class="push">@' /usr/lib/python3/dist-packages/supervisor/ui/status.html
[ ! -e "/etc/nginx/nginx.dist" ] && mv /etc/nginx/nginx.conf /etc/nginx/nginx.dist
Expand Down

0 comments on commit dff265c

Please sign in to comment.