Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Postal Owl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Postal Owl
Postal Owl
Merge requests
!1
Student grading
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Student grading
student-grading
into
master
Overview
38
Commits
7
Changes
4
3 open threads
Hide all comments
Merged
Student grading
Martin Mareš
requested to merge
student-grading
into
master
Mar 1, 2021
Overview
38
Commits
7
Changes
4
3 open threads
Hide all comments
0
0
Merge request reports
Viewing commit
403235bf
Prev
Next
Show latest version
4 files
+
56
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
403235bf
Student grader now acts as a new grade role and sees grade action
· 403235bf
Václav Končický
authored
Feb 26, 2021
templates/course.html
+
6
−
0
View file @ 403235bf
Edit in single-file editor
Open in Web IDE
Show full file
@@ -23,6 +23,7 @@
{% set ns.have_table = True %}
<table
class=
topics
>
<tr><th>
Topic
<th>
Deadline
<th>
Points
<th>
Max
{% if is_grader %}
<th>
Action{% endif %}
{% endif %}
{% if t.last_posted != None and (t.last_seen == None or t.last_posted > t.last_seen) %}
{% set cls = 'tnew' %}
@@ -33,6 +34,11 @@
<td>
{{ t.deadline|reltimeformat }}
<td
class=
pts
>
{{ t.points if t.points != None else "" }}
<td
class=
pts
>
{{ t.max_points if t.max_points != None else "" }}
{% if is_grader %}
<td>
{% if t.is_grader %}
<a
href=
"{{ url_for('topic_student_grade', cident=g.course.ident, tident=t.ident) }}"
>
Grade
</a>
{% endif %}
{% endif %}
{% else %}
{% if ns.have_table == True %}
{% set ns.have_table = False %}
Loading