forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-33939 solved issues when showing feedback attachments to students (…
- Loading branch information
1 parent
70d4859
commit 409bdb6
Showing
4 changed files
with
45 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...nment/tool/src/webapp/vm/assignment/chef_assignments_student_view_feedback_attachments.vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#set ($feedbackAttachments = $submission.feedbackAttachments) | ||
#if ($feedbackAttachments) | ||
#set ($size = $feedbackAttachments.size()) | ||
#if ($size > 0) | ||
<h4> | ||
$tlang.getString("gen.addinstatts") | ||
</h4> | ||
<ul class="attachList indnt1"> | ||
#foreach ($attachmentReference in $feedbackAttachments) | ||
#set ($reference = $submissionFeedbackAttachmentReferences.get($attachmentReference)) | ||
#if ($reference) | ||
#set ($props = false) | ||
#set ($props = $reference.Properties) | ||
#if ($!props) | ||
<li> | ||
#if ($props.getBooleanProperty($props.NamePropIsCollection)) | ||
<img src = "#imageLink($contentTypeImageService.getContentTypeImage("folder"))" border="0" alt="$tlang.getString("gen.folatt")" /> | ||
#else | ||
<img src = "#imageLink($contentTypeImageService.getContentTypeImage($props.getProperty($props.NamePropContentType)))" border="0" alt="$tlang.getString("gen.filatt")" /> | ||
#end | ||
#if ($decoratedUrlMap) | ||
<a href="$decoratedUrlMap.get($reference.Url)" target="_blank">$validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))</a> | ||
#else | ||
<a href="$reference.Url" target="_blank">$validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))</a> | ||
#end | ||
#propertyDetails($props) | ||
</li> | ||
#end | ||
#end | ||
#end | ||
</ul> | ||
#end | ||
#end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters