diff --git a/acj/static/acj-config.js b/acj/static/acj-config.js index d233620df..bbb872222 100644 --- a/acj/static/acj-config.js +++ b/acj/static/acj-config.js @@ -5,6 +5,7 @@ var myApp = angular.module('myApp', [ 'ng-breadcrumbs', 'angular-loading-bar', 'ubc.ctlt.acj.answer', + 'ubc.ctlt.acj.attachment', 'ubc.ctlt.acj.classlist', 'ubc.ctlt.acj.comment', 'ubc.ctlt.acj.course', @@ -123,6 +124,11 @@ myApp.config( function ($routeProvider) { templateUrl: 'modules/judgement/judgement-partial.html', label: "Evaluate Answers" }) + .when('/course/:courseId/question/:questionId/post/:postId', + { + templateUrl: 'modules/attachment/attachment-pdf-partial.html', + label: "View Attachment" + }) .when('/user/create', { templateUrl: 'modules/user/user-create-partial.html', diff --git a/acj/static/index.html b/acj/static/index.html index 5c193b7c4..a2889a744 100644 --- a/acj/static/index.html +++ b/acj/static/index.html @@ -17,6 +17,8 @@ + + @@ -34,6 +36,7 @@ + @@ -64,6 +67,7 @@ + diff --git a/acj/static/less/acj.less b/acj/static/less/acj.less index f8618daa6..56931537e 100644 --- a/acj/static/less/acj.less +++ b/acj/static/less/acj.less @@ -24,3 +24,5 @@ // EVALUATE SCREEN @import 'judgement.less'; +// ANSWER SCREEN +@import 'attachment.less'; diff --git a/acj/static/less/attachment.less b/acj/static/less/attachment.less new file mode 100644 index 000000000..bc2ba83d1 --- /dev/null +++ b/acj/static/less/attachment.less @@ -0,0 +1,3 @@ +pdfviewer#viewer canvas{ + width: 100%; +} diff --git a/acj/static/modules/answer/answer-form-partial.html b/acj/static/modules/answer/answer-form-partial.html index 640a537ee..6d3891bf4 100644 --- a/acj/static/modules/answer/answer-form-partial.html +++ b/acj/static/modules/answer/answer-form-partial.html @@ -1,7 +1,6 @@