source: extensions/net.sf.basedb.reggie/trunk/resources/admin/grid/view-cluster.jsp @ 2327

Last change on this file since 2327 was 2298, checked in by Nicklas Nordborg, 10 years ago

References #533: Add secondary analysis section to Reggie

Reorganize a few files.

File size: 3.2 KB
Line 
1<%@ page
2  pageEncoding="UTF-8"
3  session="false"
4  import="net.sf.basedb.core.Application"
5  import="net.sf.basedb.core.User"
6  import="net.sf.basedb.core.DbControl"
7  import="net.sf.basedb.core.SessionControl"
8  import="net.sf.basedb.clients.web.Base"
9  import="net.sf.basedb.clients.web.util.HTML"
10  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
11  import="net.sf.basedb.util.Values"
12%>
13<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
14<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
15<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
16<%
17final SessionControl sc = Base.getExistingSessionControl(request, true);
18final String ID = sc.getId();
19final float scale = Base.getScale(sc);
20final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
21final String clusterId = request.getParameter("clusterId");
22DbControl dc = null;
23try
24{
25  dc = sc.newDbControl();
26  final User user = User.getById(dc, sc.getLoggedInUserId());
27%>
28<base:page type="default" >
29<base:head 
30  scripts="~../../reggie.js,~view-cluster.js" 
31  styles="path.css,table.css,toolbar.css,~../../css/reggie.css">
32<style>
33
34/* div for displaying output from ssh commands */
35#ssh-out
36{
37  color: #C0C0C0;
38  background-color: #000000;
39  font-family: monospace, Courier New;
40  padding: 0.5em;
41  white-space: pre;
42  overflow: auto;
43}
44
45/* Display caret before command */
46#ssh-out .cmd:before
47{
48  content: '> ';
49}
50
51#ssh-out .cmd
52{
53  color: #FFFFFF;
54}
55
56/* output from stderr is displayed in red */
57#ssh-out .stderr
58{
59  color: #FF3333;
60 
61}
62
63/* Div for entering ssh commands */
64#ssh-cmd-container:before
65{
66  content: '›';
67  font-size: 200%;
68  padding-left: 0.25em;
69}
70
71/* Actual input field for ssh commands */
72#ssh-cmd
73{
74  border: 0;
75  font-size: 175%;
76  font-family: monospace, Courier New;
77}
78</style>
79</base:head>
80<base:body>
81
82  <p:path><p:pathelement 
83    title="Reggie" href="<%="../../index.jsp?ID="+ID%>" 
84    /><p:pathelement title="Open Grid Scheduler" 
85      href="<%="list-clusters.jsp?ID="+ID%>"
86    /><p:pathelement title="<%=clusterId%>" 
87    /></p:path>
88
89  <div id="page-data" class="datacontainer"
90    data-cluster-id="<%=HTML.encodeTags(clusterId)%>"
91  ></div>
92
93  <div class="content">
94    <div class="absolutefull" style="height: 8em;">
95      <table class="fullform bottomborder topborder" style="height: 6.2em;">
96      <tr>
97        <th>Name</th>
98        <td id="cluster-name"></td>
99      </tr>
100      <tr>
101        <th>IP address</th>
102        <td id="cluster-address"><%=clusterId%></td>
103      </tr>
104      <tr>
105        <th>Info</th>
106        <td id="cluster-info"></td>
107      </tr>
108      </table>
109     
110      <tbl:toolbar style="height: 1.8em;">
111        <tbl:button
112          id="btnClear"
113          image="<%=home + "/images/delete.png" %>" 
114          title="Clear" 
115          tooltip="Clear output text" 
116        />
117      </tbl:toolbar>
118    </div>
119   
120    <div class="absolutefull topborder" style="top: 8em;">
121      <div id="ssh-out" class="absolutefull" style="bottom: 3em;">Please wait...</div>
122      <div id="ssh-cmd-container" class="absolutefull" style="height: 3em; top: auto;">
123        <input type="text" name="cmd" id="ssh-cmd" value="" style="width: 95%;" >
124      </div>
125    </div>
126  </div>
127 
128</base:body>
129</base:page>
130<%
131}
132finally
133{
134  if (dc != null) dc.close();
135}
136%>
Note: See TracBrowser for help on using the repository browser.