Fakultas Ilmu Komputer UI

Commit 355c8d09 authored by Bunga Amalia Kurniawati's avatar Bunga Amalia Kurniawati 🌺
Browse files

[#133] QA: Fix Bugs Detected By Sonarqube (Part 2)

parent 7431ad94
...@@ -52,25 +52,31 @@ Pratinjau Materi ...@@ -52,25 +52,31 @@ Pratinjau Materi
{% if riwayat %} {% if riwayat %}
<div class="info-wrapper"> <div class="info-wrapper">
<div class="info" id="1"> <div class="info" id="1">
<dl>
<dt class="col col-4"> <dt class="col col-4">
<p class="info-name"><strong>Verifikatur</strong></p> <p class="info-name"><strong>Verifikatur</strong></p>
</dt> </dt>
</dl>
<dd> <dd>
<p class="info-content">{{verification_report.user.name}}</p> <p class="info-content">{{verification_report.user.name}}</p>
</dd> </dd>
</div> </div>
<div class="info" id="1"> <div class="info" id="1">
<dl>
<dt class="col col-4"> <dt class="col col-4">
<p class="info-name"><strong>Waktu Verifikasi</strong></p> <p class="info-name"><strong>Waktu Verifikasi</strong></p>
</dt> </dt>
</dl>
<dd> <dd>
<p class="info-content">{{verification_report.timestamp}}</p> <p class="info-content">{{verification_report.timestamp}}</p>
</dd> </dd>
</div> </div>
<div class="info" id="1"> <div class="info" id="1">
<dl>
<dt class="col col-4"> <dt class="col col-4">
<p class="info-name"><strong>Status Materi</strong></p> <p class="info-name"><strong>Status Materi</strong></p>
</dt> </dt>
</dl>
<dd> <dd>
<p class="info-content">{{verification_report.status}}</p> <p class="info-content">{{verification_report.status}}</p>
</dd> </dd>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered" id="dataTable"> <table class="table table-bordered" id="dataTable">
<caption>Materi yang Dilaporkan</caption>
<thead> <thead>
<tr> <tr>
<th scope="col">Judul</th> <th scope="col">Judul</th>
......
...@@ -312,7 +312,7 @@ div.review { ...@@ -312,7 +312,7 @@ div.review {
<div style="border-top:1px solid #d4d4d4;text-align:center"> <div style="border-top:1px solid #d4d4d4;text-align:center">
<h3>Video</h3> <h3>Video</h3>
<iframe src="https://www.youtube.com/embed/{{ materi_data.yt_video_id }}" <iframe src="https://www.youtube.com/embed/{{ materi_data.yt_video_id }}"
allowfullscreen="allowfullscreen" title="Video materi" allowfullscreen="allowfullscreen"
width="564" height="300"> width="564" height="300">
invalid video url invalid video url
</iframe> </iframe>
...@@ -472,7 +472,7 @@ div.review { ...@@ -472,7 +472,7 @@ div.review {
{% endblock content %} {% endblock content %}
{% block extra_scripts %} {% block extra_scripts %}
<script src="https://kit.fontawesome.com/bc2cedd6b2.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/bc2cedd6b2.js" crossorigin="anonymous"></script>
<script type="text/javascript"> <script>
// using jQuery // using jQuery
var csrftoken = jQuery("[name=csrfmiddlewaretoken]").val(); var csrftoken = jQuery("[name=csrfmiddlewaretoken]").val();
......
...@@ -24,9 +24,10 @@ ...@@ -24,9 +24,10 @@
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<caption>Summary Materi per Kategori</caption>
<thead> <thead>
<th>Kategori</th> <th scope="col">Kategori</th>
<th>Jumlah Materi</th> <th scope="col">Jumlah Materi</th>
</thead> </thead>
<tbody> <tbody>
{% for s in stats %} {% for s in stats %}
......
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