Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show revised due date for manage extensions #1623

Merged
merged 1 commit into from
Oct 19, 2022
Merged
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
4 changes: 3 additions & 1 deletion app/views/extensions/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
<thead>
<tr>
<th>Email</th>
<th colspan=2>Length</th>
<th>Length</th>
<th colspan=2>New Due Date</th>
</tr>
</thead>

Expand All @@ -136,6 +137,7 @@
<tr>
<td><a class="clickable student-select" data-cud=<%= ext.course_user_datum_id %>><%= ext.course_user_datum.email %></a></td>
<td style="padding: 0 5px"><%= ext.infinite? ? "Infinite" : "#{pluralize(ext.days, "day")}" %></td>
<td style="padding: 0 5px"><%= ext.infinite? ? "-" : "#{(@assessment.due_at + ext.days.days).strftime('%m-%d-%Y')}" %></td>
<td><%= link_to '<i class="material-icons">delete</i>'.html_safe, [@course, @assessment, ext],
data: { confirm: 'Are you sure you want to delete the extension for user ' + ext.course_user_datum.email + '?' },
method: :delete %></td>
Expand Down