Commit 52fb9f70 authored by Leigh Stoller's avatar Leigh Stoller

Add project to status page, links to emulab classic page, only

admins see it.
parent b0e7c7d3
......@@ -82,6 +82,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
isfadmin: window.APT_OPTIONS.isfadmin,
errorURL: errorURL,
paniced: paniced,
project: window.APT_OPTIONS.project,
lockout: lockout,
lockdown: lockdown,
lockdown_code: lockdown_code,
......
......@@ -180,6 +180,7 @@ $extension_history= ($instance->extension_history() ?
$freenodes_url = Aggregate::Lookup($instance->aggregate_urn())->FreeNodesURL();
$lockout = $instance->extension_lockout();
$paniced = $instance->paniced();
$project = $instance->pid();
#
# We give ssh to the creator (real user or guest user).
......@@ -243,6 +244,7 @@ echo " window.APT_OPTIONS.publicURL = $public_url;\n";
echo " window.APT_OPTIONS.lockdown = $lockdown;\n";
echo " window.APT_OPTIONS.lockout = $lockout;\n";
echo " window.APT_OPTIONS.paniced = $paniced;\n";
echo " window.APT_OPTIONS.project = '$project';\n";
echo " window.APT_OPTIONS.extension_requested = " .
$instance->extension_requested() . ";\n";
echo " window.APT_OPTIONS.AJAXURL = 'server-ajax.php';\n";
......
......@@ -52,15 +52,26 @@
</tr>
<% } %>
<% if (isadmin) { %>
<td class='border-none'>Creator:</td>
<td class='border-none'>
<% if (registered) { %>
<a href="https://www.emulab.net/showuser.php3?user=<%- creatorUid %>">
<%- creatorUid %></a>
<% } else { %>
<a href="mailto:<%- creatorEmail %>"><%- creatorEmail %></a>
<% } %>
</td>
<tr>
<td class='border-none'>Creator:</td>
<td class='border-none'>
<% if (registered) { %>
<a href="https://www.emulab.net/showuser.php3?user=<%- creatorUid %>">
<%- creatorUid %></a>
<% } else { %>
<a href="mailto:<%- creatorEmail %>"><%- creatorEmail %></a>
<% } %>
</td>
</tr>
<% if (project) { %>
<tr>
<td class='border-none'>Project:</td>
<td class='border-none'>
<a href="https://www.emulab.net/showproject.php3?pid=<%- project %>">
<%- project %></a>
</td>
</tr>
<% } %>
<% } %>
<tr>
<td class='border-none'>Created:</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment