-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Student: view session results: do not show self responses #6290 #8700
Changes from all commits
7906304
636857f
df7a4be
6682b46
b12ee95
c8a3010
5e685ca
46ab48a
aad2090
88a55ee
be8822a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%@ tag description="studentFeedbackResults.jsp - Displays feedback session self-response title" pageEncoding="UTF-8" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib tagdir="/WEB-INF/tags/student/feedbackResults" prefix="feedbackResults" %> | ||
|
||
<h2>Your own response</h2> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<%@ tag description="othersResponseTable.tag - Others-responses given to a particular recipient" pageEncoding="UTF-8" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | ||
<%@ taglib tagdir="/WEB-INF/tags/shared" prefix="shared"%> | ||
<%@ attribute name="othersResponse" type="teammates.ui.template.FeedbackResultsResponse" required="true" %> | ||
|
||
<tr class="resultSubheader"> | ||
<td> | ||
<span class="bold"><b>From:</b></span> ${fn:escapeXml(othersResponse.giverName)} | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<%-- Note: When an element has class text-preserve-space, do not insert HTML spaces --%> | ||
<td class="text-preserve-space">${othersResponse.answer}</td> | ||
</tr> | ||
|
||
<c:if test="${not empty othersResponse.comments}"> | ||
<tr> | ||
<td> | ||
<ul class="list-group comment-list"> | ||
<c:forEach items="${othersResponse.comments}" var="comment"> | ||
<shared:feedbackResponseCommentRow frc="${comment}" /> | ||
</c:forEach> | ||
</ul> | ||
</td> | ||
</tr> | ||
</c:if> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<%@ tag description="questionWithOthersResponses.tag - Others-responses given to a particular recipient" pageEncoding="UTF-8" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | ||
<%@ taglib tagdir="/WEB-INF/tags/student/feedbackResults" prefix="feedbackResults" %> | ||
<%@ attribute name="othersResponseTable" type="teammates.ui.template.FeedbackResultsResponseTable" required="true" %> | ||
|
||
<c:set value="panel-primary" var="panelHeaderClass"/> | ||
|
||
<div class="panel ${panelHeaderClass}"> | ||
<div class="panel-heading"> | ||
<b>To:</b> ${fn:escapeXml(othersResponseTable.recipientName)} | ||
</div> | ||
<table class="table"> | ||
<tbody> | ||
<c:forEach items="${othersResponseTable.responses}" var="othersResponse"> | ||
<feedbackResults:othersResponse othersResponse="${othersResponse}"/> | ||
</c:forEach> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
</tbody> | ||
</table> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<%@ tag description="studentFeedbackResults.jsp - Student feedback results question with others-responses" pageEncoding="UTF-8" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib tagdir="/WEB-INF/tags/student/feedbackResults" prefix="feedbackResults" %> | ||
<%@ attribute name="questionWithOthersResponses" type="teammates.ui.template.StudentFeedbackResultsQuestionWithResponses" required="true" %> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<%-- Note: When an element has class text-preserve-space, do not insert HTML spaces --%> | ||
<h4>Question ${questionWithOthersResponses.questionDetails.questionIndex}: <span class="text-preserve-space"><c:out value="${questionWithOthersResponses.questionDetails.questionText}"/>${questionWithOthersResponses.questionDetails.additionalInfo}</span></h4> | ||
|
||
${questionWithOthersResponses.questionDetails.questionResultStatistics} | ||
|
||
<c:if test="${questionWithOthersResponses.questionDetails.individualResponsesShownToStudents}"> | ||
|
||
<c:forEach items="${questionWithOthersResponses.othersResponseTables}" var="othersResponseTables"> | ||
<feedbackResults:othersResponseTable othersResponseTable="${othersResponseTables}"/> | ||
</c:forEach> | ||
|
||
</c:if> | ||
</div> | ||
</div> | ||
<br> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<%@ tag description="studentFeedbackResults.jsp - Student feedback results question with self-responses" pageEncoding="UTF-8" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib tagdir="/WEB-INF/tags/student/feedbackResults" prefix="feedbackResults" %> | ||
<%@ attribute name="questionWithSelfResponses" type="teammates.ui.template.StudentFeedbackResultsQuestionWithResponses" required="true" %> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<%-- Note: When an element has class text-preserve-space, do not insert HTML spaces --%> | ||
<h4>Question ${questionWithSelfResponses.questionDetails.questionIndex}: <span class="text-preserve-space"><c:out value="${questionWithSelfResponses.questionDetails.questionText}"/>${questionWithSelfResponses.questionDetails.additionalInfo}</span></h4> | ||
|
||
${questionWithSelfResponses.questionDetails.questionResultStatistics} | ||
|
||
<c:if test="${questionWithSelfResponses.questionDetails.individualResponsesShownToStudents}"> | ||
|
||
<c:forEach items="${questionWithSelfResponses.selfResponseTables}" var="selfResponseTables"> | ||
<feedbackResults:selfResponseTable selfResponseTable="${selfResponseTables}"/> | ||
</c:forEach> | ||
|
||
</c:if> | ||
</div> | ||
</div> | ||
<br> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<%@ tag description="questionWithSelfResponses.tag - Self-responses given to a particular recipient" pageEncoding="UTF-8" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | ||
<%@ taglib tagdir="/WEB-INF/tags/student/feedbackResults" prefix="feedbackResults" %> | ||
<%@ attribute name="selfResponseTable" type="teammates.ui.template.FeedbackResultsResponseTable" required="true" %> | ||
|
||
<c:set value="panel-default" var="panelHeaderClass"/> | ||
|
||
<div class="panel ${panelHeaderClass}"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here as well - why not just use |
||
<div class="panel-heading"> | ||
<b>To:</b> ${fn:escapeXml(selfResponseTable.recipientName)} | ||
</div> | ||
<table class="table"> | ||
<tbody> | ||
<c:forEach items="${selfResponseTable.responses}" var="selfResponse"> | ||
<feedbackResults:selfResponse selfResponse="${selfResponse}"/> | ||
</c:forEach> | ||
</tbody> | ||
</table> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just do
<div class="panel panel-primary">
directly since self response tables have now been separated from others response tables?