|
|
@ -893,6 +893,8 @@ class AttachmentsController < ApplicationController
|
|
|
|
@subject = @attachment.container
|
|
|
|
@subject = @attachment.container
|
|
|
|
elsif @attachment.container_type == 'School'
|
|
|
|
elsif @attachment.container_type == 'School'
|
|
|
|
@school = @attachment.container
|
|
|
|
@school = @attachment.container
|
|
|
|
|
|
|
|
elsif @attachment.container_type == 'Library'
|
|
|
|
|
|
|
|
@library = @attachment.container
|
|
|
|
else
|
|
|
|
else
|
|
|
|
unless @attachment.container_type == 'Syllabus' || @attachment.container_type == 'Bid' || @attachment.container_type == 'Organization' || @attachment.container_type == 'HomeworkAttach' || @attachment.container_type == 'Memo' || @attachment.container_type == 'Softapplication' || @attachment.container_type == 'PhoneAppVersion' || @attachment.container_type == 'StudentWorksScore' || @attachment.container_type == 'StudentWork' || @attachment.container_type == 'Work'|| @attachment.container_type == 'ContestantWork'|| @attachment.container_type == 'Contest' || @attachment.container_type == 'HomeworkBank' || @attachment.container_type == 'Exercise' || @attachment.container_type == 'ExerciseBank' || @attachment.container_type == 'Career' || @attachment.container_type == 'EcTemplate'
|
|
|
|
unless @attachment.container_type == 'Syllabus' || @attachment.container_type == 'Bid' || @attachment.container_type == 'Organization' || @attachment.container_type == 'HomeworkAttach' || @attachment.container_type == 'Memo' || @attachment.container_type == 'Softapplication' || @attachment.container_type == 'PhoneAppVersion' || @attachment.container_type == 'StudentWorksScore' || @attachment.container_type == 'StudentWork' || @attachment.container_type == 'Work'|| @attachment.container_type == 'ContestantWork'|| @attachment.container_type == 'Contest' || @attachment.container_type == 'HomeworkBank' || @attachment.container_type == 'Exercise' || @attachment.container_type == 'ExerciseBank' || @attachment.container_type == 'Career' || @attachment.container_type == 'EcTemplate'
|
|
|
|
@project = @attachment.project
|
|
|
|
@project = @attachment.project
|
|
|
|