Skip to content

Commit

Permalink
Update list_submissions.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
qureshi-ali committed Mar 5, 2024
1 parent c432a26 commit 35beeea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/assignments/list_submissions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@
<td><p style = <%="color:#{team_name_color}"%>><%= team.name(session[:ip]) %></p>
<% unless participants.empty? %>
<!-- “Assign Grade” will show if the final deadline of this assignment pass -->
<% if ["review", "Finished"].include?(@assignment.current_stage(topic_identifier)) %>
<% if @assignment.current_stage(topic_identifier) == "Finished" %>
<%= link_to 'Assign Grade', { controller: 'grades', action: 'view_team', id: participants.first.id}, target: '_blank' %></td>
<%elsif ["submission", "review"].include?(@assignment.current_stage(topic_identifier)) %>
<%= link_to 'View Reviews', { controller: 'grades', action: 'view_team', id: participants.first.id}, target: '_blank' %></td>
<!-- if current user(TA/instructor) is participant in assignment then the user can perform review -->
<%elsif current_user_is_assignment_participant?(@assignment.id) %>
<%= render :partial => 'responses', :locals => {:team => team ,:topic_id => topic_identifier, :title => 'Review'} %>
Expand Down

0 comments on commit 35beeea

Please sign in to comment.