Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lms/templates/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h1>{{ _('Exercises operations room') }}</h1>
<tr>
<th scope="col">#</th>
<th scope="col">{{ _('Name') }}</th>
<th scope="col">{{ _('Notebook') }}</th>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should check if any of the exercises has notebook before showing this column

<th scope="col">{{ _('Checked') }}</th>
<th scope="col">{{ _('Solved') }}</th>
<th scope="col">{{ _('Percentage') }}</th>
Expand All @@ -21,6 +22,9 @@ <h1>{{ _('Exercises operations room') }}</h1>
<tr>
<th scope="row">{{ exercise['id'] }}</th>
<td><a href="/check/{{ exercise['id'] }}">{{ exercise['name'] | e }}</a></td>
{%- if exercise['notebook'] %}
<td>{{ exercise['notebook'] }}</td>
{%- endif %}
Comment on lines +25 to +27
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alignment:

Suggested change
{%- if exercise['notebook'] %}
<td>{{ exercise['notebook'] }}</td>
{%- endif %}
{%- if exercise['notebook'] %}
<td>{{ exercise['notebook'] }}</td>
{%- endif %}

<td>{{ exercise['checked'] }}</td>
<td>{{ exercise['submitted'] }}</td>
<td>{{ (exercise['checked'] * 100 / exercise['submitted']) | round(2, 'floor') }}%</td>
Expand All @@ -34,6 +38,9 @@ <h1>{{ _('Exercises operations room') }}</h1>
<tr>
<th scope="row">{{ exercise['id'] }}</th>
<td><a href="/check/{{ exercise['id'] }}">{{ exercise['name'] | e }}</a></td>
{%- if exercise['notebook'] %}
<td>{{ exercise['notebook'] }}</td>
{%- endif %}
<td>{{ exercise['checked'] }}</td>
<td>{{ exercise['submitted'] }}</td>
<td>{{ (exercise['checked'] * 100 / exercise['submitted']) | round(2, 'floor') }}%</td>
Expand Down