All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 93eccf05 authored by Robert Ricci's avatar Robert Ricci

Factor spitting collapsible divs into a new function

Since we have two now, might as well
parent 7fe166a1
......@@ -530,18 +530,7 @@ function RedirectLoginPage()
function SpitAboutApt()
{
?>
<div class="panel panel-info">
<div class="panel-heading">
<h5><a data-toggle="collapse" href="#aboutapt">What is Apt? <span class="glyphicon glyphicon-chevron-right pull-right"></span></a></h5>
</div>
<div id="aboutapt" class="panel-collapse collapse">
<div class="panel-body">
SpitCollapsiblePanel("aboutapt","What is Apt?",<<<'ENDBODY'
<p>
Apt is a testbed facility built around <em>profiles</em>.
A profile describes an <em>experiment</em>; when you instantiate a profile,
......@@ -576,11 +565,31 @@ Apt is funded by the National Science Foundation under award CNS-1338155 and
<p>
For help, bug reports, or other questions, come join the <a href="https://groups.google.com/forum/#!forum/apt-users">Discussion Forum</a>
</p>
ENDBODY
);
}
function SpitCollapsiblePanel($id, $title, $body) {
?>
<div class="panel panel-info">
<div class="panel-heading">
<h5><a data-toggle="collapse" href="#<?php echo $id; ?>"><?php echo $title; ?><span class="glyphicon glyphicon-chevron-right pull-right"></span></a></h5>
</div>
<div id="<?php echo $id; ?>" class="panel-collapse collapse">
<div class="panel-body">
<?php echo $body; ?>
</div> <!-- Panel body -->
</div> <!-- Collapser -->
</div> <!-- Panel -->
<?
<?php
}
?>
......@@ -293,21 +293,11 @@ function SPITFORM($formfields, $showverify, $errors)
# Spit information about Apt accounts
#
function SPITABOUTACCT() {
?>
<div class="panel panel-info">
<div class="panel-heading">
<h5><a data-toggle="collapse" href="#aboutacct">Do I Need An Account? <span class="glyphicon glyphicon-chevron-right pull-right"></span></a></h5>
</div>
<div id="aboutacct" class="panel-collapse collapse">
<div class="panel-body">
<p>Maybe!</p>
</div>
</div>
</div>
<?php
SpitCollapsiblePanel("aboutacct","Do I need an account?",<<<'ENDBODY'
<p>Maybe!</p>
ENDBODY
);
}
if (isset($finished) && $finished) {
......
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