Skip to content

Commit

Permalink
Display training modules on 3 columns
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-ion committed Dec 22, 2024
1 parent 934ce3d commit 298bf2e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions trainingportal/static/trainingModules.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h3>Hi {{firstName}}! Welcome to the Secure Coding Dojo!</h3>
<p>Pick a training module below to start.</p>
<div class="row">
<div class="col-lg-6 d-flex align-items-stretch" ng-repeat="(key, value) in modules" style="padding:1em" >
<div class="col-lg-4 d-flex align-items-stretch" ng-repeat="(key, value) in modules" style="padding:1em" >

<div class="card" >
<div class="card-header">
Expand All @@ -16,15 +16,16 @@ <h5 class="card-title">{{value.summary}}</h5>

</div>
<div class="card-footer">
<small class="text-muted" ng-if="value.requiredModules.length>0">
This module requires: <span ng-repeat="moduleId in value.requiredModules">{{modules[moduleId].name}}</span>
</small>

<a ng-href="/public/badge/{{getBadgeCode(key)}}" class="btn btn-primary float-right mx-1" ng-class="{ disabled: !isModuleComplete(key) }">
<span class="oi oi-circle-check" ng-if="isModuleComplete(key)"></span>
Badge
</a>
<a ng-href="#!challenges/{{key}}" class="btn btn-primary float-right mx-1" ng-class="{ disabled: !isModuleEnabled(key) }">Load</a>

<small class="text-muted text-align-right" ng-if="value.requiredModules.length>0">
Requires: <span ng-repeat="moduleId in value.requiredModules">{{modules[moduleId].name}}</span>
</small>

</div>
</div>
</div>
Expand Down

0 comments on commit 298bf2e

Please sign in to comment.