templates/index.html
$def with (need_migration=False)
$var title:Home
$ home = ['#', 'Home']
$var hierarchy = [home]
<div class="container-fluid">
<div class="row">
<div class="col-md-12 text-center">
<h1><b>Welcome to</b> <img id="welcome-message" src="static/images/csmodify.png"></h1>
</div>
$if need_migration:
<div class="col-md-8 col-md-offset-2">
<div class="alert alert-danger">
<p>
<span class="glyphicon glyphicon-alert"></span> <b>It seems that the current Academic Year has ended.</b>
<br>
<br>
Click <a href="/migrateDatabase">here</a> if you want to perform a database migration to match the new Academic Year.
</p>
</div>
</div>
<div class="col-md-8 col-md-offset-2">
<br>
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a data-toggle="collapse" href="#collapseModuleView">
<span class="glyphicon glyphicon-align-left"></span> <b>Module View</b>
</a>
</h2>
</div>
<div id="collapseModuleView" class="panel-collapse collapse in">
<div class="panel-body">
<li><a id="home-page" href="/oversubscribedModules">Oversubscribed Modules</a></li>
<li><a id="home-page" href="/modules">Module Information</a></li>
<li><a id="home-page" href="/modifiedModules">Modified Modules</a></li>
<li><a id="home-page" href="/moduleSpecificSize">Modules with Specific Class Size</a></li>
<li><a id="home-page" href="/starredModules">Starred Modules</a></li>
<li><a id="home-page" href="/moduleMountingFixed">Module Mountings For Current AY</a></li>
<li><a id="home-page" href="/moduleMountingTentative">Module Mountings For Next AY</a></li>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a data-toggle="collapse" href="#collapseChangeCurriculum">
<span class="glyphicon glyphicon-pencil"></span> <b>Change Curriculum</b>
</a>
</h2>
</div>
<div id="collapseChangeCurriculum" class="panel-collapse collapse in">
<div class="panel-body">
<li><a id="home-page" href="/editAll">Edit All Mountings and Quotas</a></li>
<li><a id="home-page" href="/addModule">Add Module</a></li>
<li><a id="home-page" href="/deleteModule">Delete Module</a></li>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a data-toggle="collapse" href="#collapseModuleRelations">
<span class="glyphicon glyphicon-random"></span> <b>Module Relations</b>
</a>
</h2>
</div>
<div id="collapseModuleRelations" class="panel-collapse collapse in">
<div class="panel-body">
<li><a id="home-page" href="/overlappingModules">Overlapping Modules</a></li>
<li><a id="home-page" href="/nonOverlappingModules">Non-Overlapping Modules</a></li>
<li>Prior Modules Taken
<ul>
<li><a id="home-page" href="/moduleTakenPriorToOthers">Other Modules</a></li>
<li><a id="home-page" href="/moduleTakenPriorToInternship">Internship</a></li>
</ul>
</li>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a data-toggle="collapse" href="#collapseStudentStatistics">
<span class="glyphicon glyphicon-education"></span> <b>Student Statistics</b>
</a>
</h2>
</div>
<div id="collapseStudentStatistics" class="panel-collapse collapse in">
<div class="panel-body">
<li><a id="home-page" href="/studentEnrollment">Student Enrollment Info</a></li>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>