Skip to content
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

Team Turing Whiteboard final version #241

Open
wants to merge 142 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
f302e33
Add personal information in db/seed.rb
real-davidcs Oct 17, 2013
a0b98c8
Add accordion to grading queue
real-davidcs Oct 19, 2013
91f7162
Model for filter by my teams
Oct 19, 2013
8f714c6
Merge remote branch 'origin/master'
Oct 19, 2013
d3d44ce
Model and view for 'Filter by my teams'
Oct 20, 2013
d2d3fae
Add test case for filtering by MY teams/students
real-davidcs Oct 20, 2013
6311da3
Admin should be able to see every deliverable in a course
Oct 21, 2013
460ea92
Changing notifiers for Travis
metorino Oct 21, 2013
ba27ee5
Adding comment just to sync with Travis
metorino Oct 21, 2013
3bc5b82
Adding team turing for build notifications
metorino Oct 22, 2013
6f8c430
Adding comment just to sync with Travis
metorino Oct 22, 2013
076c205
Adding each team turing members for build notifications
metorino Oct 22, 2013
a55beaf
Service test code for spec_no_rails
metorino Oct 23, 2013
d62ea71
Updated gitignore to exclude 'logfile'
metorino Oct 23, 2013
5e0e8a7
Refactoring on filter by teams story. Changing SQL to active record. …
metorino Oct 24, 2013
7fa5a9d
Defining GrandingQueue empty class. Otherwise is failing
metorino Oct 24, 2013
5501632
Refactoring deliverables controller spec to match the model refactori…
metorino Oct 24, 2013
42769ad
Refactoring deliverables controller spec to match the model refactori…
metorino Oct 24, 2013
193536d
Refactored 'filter by my teams' to use ActiveRecord instead of SQL. R…
Oct 24, 2013
f065d8e
Refactor the accordion panel of grading queue page
real-davidcs Oct 24, 2013
d4b24a2
Adding pending tests for grading queue
metorino Oct 24, 2013
2d03c9e
Adding filter by my students
metorino Oct 28, 2013
4ee3929
Intent of test for filter by my students individual deliverables
metorino Oct 28, 2013
94c2531
Individual Deliverable, filtered by teams
Oct 28, 2013
1251471
Check variable 'queue' with empty? instead of nil?
Oct 28, 2013
985c909
Adding team assignment
metorino Oct 28, 2013
087085d
Merge branch 'master' of http://github.com/TeamTuring/whiteboard
Oct 28, 2013
04217b5
Created tests for 'filter by individual deliverables' when there are …
Oct 28, 2013
7321fde
Fixed broken Travis due to merge conlict
Oct 28, 2013
6bc2d43
Professor should be able to see both team deliverables and individual…
Oct 29, 2013
481678d
Refactoring getting default deliverables from helper method
metorino Oct 30, 2013
969a4c5
Adding pending tests for filtering deliverables
metorino Oct 30, 2013
201fed2
preparing test data
metorino Oct 30, 2013
d8a8a7a
Filtering deliverables by ungraded by default
metorino Oct 30, 2013
1a5c1ec
Filtering by ungraded
metorino Oct 31, 2013
34826a0
Merge grading page into grading queue w/o testing
real-davidcs Nov 1, 2013
2367543
Filtering by other criterias
metorino Nov 1, 2013
6c5965f
Merge grading page into grading queue w/o test - conflict resolved
real-davidcs Nov 1, 2013
8bece92
Merge branch 'master' of github.com:TeamTuring/whiteboard
real-davidcs Nov 1, 2013
df94a1f
Deliverables filtered by a criterion. Tests added for graded only
Nov 1, 2013
459667f
Retrieving assignment names to populate drop down list
metorino Nov 2, 2013
937eeda
Solve capybara double thread issue
real-davidcs Nov 2, 2013
a58b62f
Merge branch 'master' of github.com:TeamTuring/whiteboard
real-davidcs Nov 2, 2013
00e2e8b
Adding migration to add last graded by to grades table
metorino Nov 2, 2013
f4fab4c
Update view for grading queue and deliverables_spec.rb
mia-m Nov 2, 2013
7c50fb9
Getting grading status from page
metorino Nov 2, 2013
5f4c6a7
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 2, 2013
51063c2
Adding test for filtering by grading status + schema
metorino Nov 2, 2013
4c02fdd
Filter deliverables by name tests
Nov 2, 2013
afeb903
Merging the view and the controller for filter by deliverables
Nov 2, 2013
088f812
Adding filtering by assignment name
metorino Nov 2, 2013
82dcdeb
Bootstrap javascript library added
Nov 2, 2013
103d8ff
Merge branch 'master' of http://github.com/TeamTuring/whiteboard
Nov 2, 2013
08bbd6a
Draft: All filtering logic with AJAX missing
Nov 2, 2013
a4cfee0
Test for filter by delierable name
metorino Nov 2, 2013
3e34fc0
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 2, 2013
5fa4a62
Merge grading page into grading queue page w/ tests
real-davidcs Nov 3, 2013
a3ca835
Merge branch 'master' of github.com:TeamTuring/whiteboard
real-davidcs Nov 3, 2013
cf89635
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 3, 2013
7b68456
Improved user interface for grading queue for course
Nov 3, 2013
08d0d85
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 4, 2013
a261f7f
Integrate last graded by
real-davidcs Nov 5, 2013
1a19f9f
Removing hardcoded data from deliverables controler + hiting the mode…
metorino Nov 5, 2013
0582ed6
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 5, 2013
876eb61
Default deliverables assignation
metorino Nov 5, 2013
9deaba3
Removing attachments versions from deliverables factories as were cre…
metorino Nov 7, 2013
e6656e6
Working javascript for filters in grading page, modified style for th…
Nov 7, 2013
6c9f4fc
Add draft for checking tooltip
mia-m Nov 7, 2013
b5b0150
Merged last graded by and filtering grading queue
Nov 7, 2013
1b92ecf
Migration for last graded by
Nov 7, 2013
1f7fac4
Merge branch 'master' of http://github.com/TeamTuring/whiteboard
Nov 7, 2013
ce96056
Added sorting for deliverables by task number
Nov 7, 2013
7c0ea2e
Added filter by assignment name in drop down menu
Nov 7, 2013
4b315ae
Filter by 'everyone' implemented
Nov 7, 2013
e169505
Last graded by with link to profile
IraJain Nov 8, 2013
83143e3
Added loading indicator view for AJAX requests
Nov 11, 2013
ccf50bd
Grading queue and grading page views merged and styled
Nov 12, 2013
de0b52a
Added danger labels to indicate late submissions
Nov 12, 2013
9bcabf2
Overriding Bootstraps 'box-sizing: border-box' set via universal sele…
Nov 12, 2013
d02b243
Adding skeleton for test to see the last filter options after grading…
metorino Nov 13, 2013
f4100c3
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 13, 2013
9989478
AJAX requests are done 'onclick' rather than using the submit button
Nov 13, 2013
ee2149f
Merge branch 'master' of github.com:TeamTuring/whiteboard
Nov 13, 2013
e5ac9fb
Keeping filtering options in session
metorino Nov 13, 2013
b1a8092
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 13, 2013
51339dd
Fixing typo
metorino Nov 13, 2013
1a763e6
AJAX call instead of page refresh whenever user hits the save button
Nov 14, 2013
126c0a3
Update deliverables_spec to update the expectation, and move task_num…
mia-m Nov 14, 2013
1396736
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
mia-m Nov 14, 2013
a9e89eb
Save and Finalize button behavior corrected
Nov 14, 2013
aa597f5
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
mia-m Nov 14, 2013
3d207b7
Fixed issue with sliding up panels
Nov 14, 2013
f72c533
Merge branch 'master' of github.com:TeamTuring/whiteboard
Nov 14, 2013
ec60523
Last graded by student view
IraJain Nov 16, 2013
3f96eaf
adding last graded by test
metorino Nov 16, 2013
403135a
Adding tests for link to last graded by to people link + refactoring …
metorino Nov 16, 2013
0c6ed63
Fixing bug, inverting if/else logic :) on checking for nil grading
metorino Nov 16, 2013
9e50c6b
Enhanced grading queue page view
Nov 20, 2013
f5138d7
Removing Not graded yet as default message for ungraded deliverables
metorino Nov 20, 2013
6e29f2e
Removing pending tests from deliverables controller
metorino Nov 20, 2013
485d09e
Fixing failing tests
metorino Nov 20, 2013
ed4628f
Firts graded by patch
IraJain Nov 20, 2013
9d0514c
removing save_and_open_page
metorino Nov 20, 2013
fec3b8d
Grade Book- Last graded by
IraJain Nov 20, 2013
983fa20
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
IraJain Nov 20, 2013
c9398f7
Add grade book confirm box, checkbox and modify button label and posi…
mia-m Nov 21, 2013
5d009a6
Cont. redesign of grading queue
Nov 21, 2013
b4617b6
Merge branch 'master' of github.com:TeamTuring/whiteboard
Nov 21, 2013
b863f3c
Modifying travis configuration file to run firefox
metorino Nov 22, 2013
ac3d49c
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 22, 2013
2acff4b
Implement search function w/o test
real-davidcs Nov 22, 2013
fb6d52e
Merge branch 'master' of github.com:TeamTuring/whiteboard
real-davidcs Nov 22, 2013
a3fab98
Grading queue interface changes. Default grading queue behavior chang…
Nov 22, 2013
bbe1ce8
Merge branch 'master' of github.com:TeamTuring/whiteboard
Nov 22, 2013
1fb5556
Updating tests to meet latest functionality. Hopefully Travis is gree…
metorino Nov 22, 2013
b7df9e8
Include professor in grade email for Grade Book and Grade Page
mia-m Nov 23, 2013
535e608
fixing bug of rendering deliverables partial not being updated properly
metorino Nov 25, 2013
5335c01
Merging edit student feedback file
metorino Nov 25, 2013
311eb07
Adding js for ajax request on updating feedback
metorino Nov 25, 2013
4daf341
New style for Grade Book buttons/import/export sections
Nov 25, 2013
05e3072
Modify Deliverable Controller: Show everything when no filter options…
real-davidcs Nov 26, 2013
e91f1eb
Adding filtering by assignment when updating feedback
metorino Nov 26, 2013
ddac28c
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 26, 2013
0ee75f0
Changing deliverable controller tests to use get_deliverables instead…
metorino Nov 26, 2013
2d434ce
Ajax loading gif for retina display
Nov 26, 2013
8e5b857
Removing filter_deliverables action + adding tests in the deliverable…
metorino Nov 26, 2013
8442e8b
Refactoring duplicated code for filtering deliverables in get_deliver…
metorino Nov 26, 2013
45ae4a6
Refactorinf deliverables_controller
metorino Nov 27, 2013
98014ad
Refactorinf deliverables_controller. Removing unnecesary return state…
metorino Nov 27, 2013
ba5d0a7
Add search deliverables using Andrew ID
real-davidcs Nov 27, 2013
b23c8d5
Merge branch 'master' of github.com:TeamTuring/whiteboard
real-davidcs Nov 27, 2013
44530d7
Change checkbox default to unchecked for Send Copy to Myself in grade…
mia-m Nov 27, 2013
bc7737f
Applying Tushar's fix to reminder hanlder tests
metorino Nov 27, 2013
bdfd835
Merge branch 'master' of https://github.com/TeamTuring/whiteboard
metorino Nov 27, 2013
4c75ab9
Implement test cases for searching deliverables
real-davidcs Dec 2, 2013
7482b74
Fixed the problem of Bootstrap CSS breaking the entire website
Dec 4, 2013
3edf67e
Fixed CSS issue of Bootstrap breaking the entire website's style
Dec 4, 2013
360863b
Improve search function performance
real-davidcs Dec 4, 2013
760c061
Merge branch 'master' of github.com:TeamTuring/whiteboard
real-davidcs Dec 4, 2013
11eb85e
Fixed bug in deliverables controller: My teams option not sticking if…
Dec 5, 2013
7fc9830
Fixed bug in deliverables controller: My teams option not sticking if…
Dec 5, 2013
0513f07
Latest refactorin. Just style and variables names. Will miss you whit…
metorino Dec 6, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ env:
notifications:
email:
recipients:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
#- [email protected]
#- [email protected]
# on_success: [always|never|change] # default: change
# on_failure: [always|never|change] # default: always
on_success: change
on_success: always
on_failure: always
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ group :development, :test do
# gem 'autotest-growl' if RUBY_PLATFORM =~ /darwin/

# gem 'test-unit' #, '1.2.3' #Downgrading so that autotest, rspec will work

# Team Turing: add this for static code analysis
gem 'rails_best_practices'
end


Expand Down
17 changes: 17 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ GEM
addressable (2.3.4)
archive-tar-minitar (0.5.2)
arel (2.0.10)
awesome_print (1.2.0)
aws-sdk (1.8.5)
json (~> 1.4)
nokogiri (>= 1.4.4)
Expand All @@ -74,6 +75,9 @@ GEM
mime-types (~> 1.16)
orm_adapter (~> 0.0.5)
cocaine (0.2.0)
code_analyzer (0.4.3)
sexp_processor
colored (1.2)
columnize (0.3.6)
daemons (1.1.9)
delayed_job (2.1.4)
Expand Down Expand Up @@ -182,6 +186,15 @@ GEM
activesupport (= 3.0.20)
bundler (~> 1.0)
railties (= 3.0.20)
rails_best_practices (1.14.4)
activesupport
awesome_print
code_analyzer (>= 0.4.3)
colored
erubis
i18n
require_all
ruby-progressbar
railties (3.0.20)
actionpack (= 3.0.20)
activesupport (= 3.0.20)
Expand All @@ -192,6 +205,7 @@ GEM
rdoc (3.12.2)
json (~> 1.4)
recaptcha (0.3.5)
require_all (1.3.1)
rest-client (1.6.7)
mime-types (>= 1.16)
rmagick (2.13.2)
Expand Down Expand Up @@ -221,6 +235,7 @@ GEM
ruby-openid (2.2.3)
ruby-openid-apps-discovery (1.2.0)
ruby-openid (>= 2.1.7)
ruby-progressbar (1.2.0)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
rubyzip (0.9.9)
Expand All @@ -231,6 +246,7 @@ GEM
rubyzip
websocket (~> 1.0.4)
sequel (3.20.0)
sexp_processor (4.4.0)
shoulda (3.4.0)
shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (~> 1.0, >= 1.4.1)
Expand Down Expand Up @@ -299,6 +315,7 @@ DEPENDENCIES
pg
rack-google_analytics
rails (= 3.0.20)
rails_best_practices
rake (= 0.8.7)
rdoc
recaptcha
Expand Down
9 changes: 8 additions & 1 deletion app/controllers/deliverables_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def index
redirect_to my_deliverables_path(current_user)
end


def grading_queue_for_course

@course = Course.find(params[:course_id])

if @course.grading_rule.nil?
Expand All @@ -26,8 +28,13 @@ def grading_queue_for_course
flash.now[:error] = I18n.t(:default_grading_rule_for_course)
end

if (current_user.is_admin? || @course.faculty.include?(current_user))
if current_user.is_admin?
@deliverables = Deliverable.where(:course_id => @course.id).all
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that we want admin to supersede the faculty role. If a faculty is also an admin, does this mean that they can't see their own team's deliverables?


elsif @course.faculty.include?(current_user)
# Isil - Team Turing
@deliverables = Deliverable.new.grading_queue_display(params[:course_id], current_user.id)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why we are creating a new deliverable

else
has_permissions_or_redirect(:admin, root_path)
end
Expand Down
62 changes: 62 additions & 0 deletions app/models/deliverable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,68 @@ class Deliverable < ActiveRecord::Base
after_save :inaccurate_course_and_assignment_check


# Grading queue
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment adds no value

def grading_queue_display(course_id, faculty_id, options = nil)

# Default grading queue filters
options = {"ungraded" => 1, "drafted" => 0, "graded" => 0, "is_my_teams" => 1, "deliverable_name" => ''} if options.nil?

queue = nil
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

queue = []


# Check: Are there teams in this course? If there are, and the "filter by teams is on", filter by teams
# or by individuals in a faculty's teams.

course_has_teams = Team.find_by_sql(["SELECT * FROM teams WHERE course_id = ? LIMIT 1", course_id])

if course_has_teams.empty?
# Show them everyone in the course
#queue = Deliverable.where(:course_id => course_id).all
queue = Deliverable.find_by_sql(["SELECT * FROM deliverables WHERE course_id = ?", course_id])

else
# By default, the faculty see their teams or individuals in their teams with ungraded deliverables
if options['is_my_teams'] == 1

sql = "SELECT a.name AS assignment_name, d.id AS deliverable_id, d.updated_at, a.task_number, t.name AS owner_name, d.creator_id, dav.attachment_file_name AS attachment_file_name, a.is_team_deliverable, dav.id AS attachment_versions, c.name AS course_name
FROM deliverables d
INNER JOIN assignments a ON d.assignment_id = a.id
INNER JOIN teams t ON t.id = d.team_id
INNER JOIN courses c ON c.id = a.course_id
INNER JOIN deliverable_attachment_versions dav ON dav.deliverable_id = d.id
WHERE d.course_id = ? AND t.primary_faculty_id = ?"

#queue = Deliverable.find_by_sql([sql, course_id, assignment_id])
queue = Deliverable.find_by_sql([sql, course_id, faculty_id])

# This course may have teams, but this deliverable may not be a team deliverable. In that case:
if queue.nil?
sql = "SELECT a.name AS assignment_name, d.updated_at AS last_updated, a.task_number,
u.human_name AS owner_name, d.creator_id, dav.attachment_file_name AS attachment_file_name, a.is_team_deliverable,
dav.id AS attachment_versions
FROM deliverables d
INNER JOIN assignments a ON d.assignment_id = a.id
INNER JOIN users u ON u.id = d.creator_id
INNER JOIN deliverable_attachment_versions dav ON dav.deliverable_id = d.id
WHERE d.course_id = ? AND a.id = ?"

queue = Deliverable.find_by_sql([sql, course_id, assignment_id])

end # end 'Teams in course but individual deliverable'

else

# Do not filter by my teams, show everyone
#queue = Deliverable.where(:course_id => course_id).all
queue = Deliverable.find_by_sql(["SELECT * FROM deliverables WHERE course_id = ?", course_id])

end # end 'Filter by my teams'

end # end 'Course has teams '

return queue

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is getting very long. How do we simplify? I suspect we need to move the sql into helper methods.

end

# To get the owner of the deliverable
def unique_course_task_owner?
if self.is_team_deliverable?
Expand Down
Empty file added app/services/grading_queue.rb
Empty file.
76 changes: 53 additions & 23 deletions app/views/deliverables/_deliverable_listing_professor.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
<% reset_cycle %>
<% customised_name= nomenclature_assignment_or_deliverable %>

<% if deliverables.nil? %>
<p>No deliverables!</p>
<% else %>
<% deliverables.each do |deliverable| %>
<p><%= deliverable.attributes['task_number'] %></p>
<p><%= deliverable.attributes['owner_name'] %></p>
<p><%= deliverable.attributes['assignment_name'] %></p>
<p><%= deliverable.attributes['updated_at'] %></p>
<p><%= deliverable.get_grade_status %></p>
<% end %>
<% end %>


<div class="row">
<div class="panel panel-default">
<div class="panel-body" style="background-color: #f5f5f5;border-radius: 5px;padding: 10px">
panel-bodypanel-bodypanel-bodypanel-bodypanel-bodypanel-bodypanel-bodypanel-bodypanel-bodypanel-body
</div>
</div>
</div>
<table class="twikiTable sortable cmu_table" cellpadding="0" cellspacing="0" width="685">
<thead>
<tr>
Expand All @@ -21,7 +42,7 @@
</thead>

<% deliverables.each do |deliverable| %>
<tr class="<%= cycle('twikiTableOdd', 'twikiTableEven') %> <%= deliverable.get_grade_status %>">
<tr class="<%= cycle('twikiTableOdd', 'twikiTableEven') %> <%= deliverable.get_grade_status %> "data-toggle="collapse" data-target="#collapse<%= deliverable.attributes['deliverable_id'] %>">
<% unless skip_course_column %>
<% if deliverable.course %>
<td><%= h deliverable.course.name %></td>
Expand All @@ -37,39 +58,48 @@
<td><%= h deliverable.assignment.task_number %></td>
<% end %>
<% end %>
<td><%= "Team " if deliverable.is_team_deliverable? %><%= deliverable.owner_name %></td>
<% latest_attachment = deliverable.attachment_versions.first %>
<% unless latest_attachment.attachment_file_name.nil? %>
<td><%= deliverable.assignment_name%> (<%= link_to "download", latest_attachment.attachment.url %>)</td>
<% else %>
<td><%= deliverable.assignment_name %></td>
<% end %>
<td><%#= "Team " if deliverable.is_team_deliverable? %><%#= deliverable.attributes[:owner] %></td>
<%# latest_attachment = deliverable.attributes[:attachment_versions] %>
<%# unless latest_attachment.attributes[:attachment_file_name].nil? %>
<td><%#= deliverable.assignment_name %> (<%#= link_to "download", latest_attachment.attachment.url %>)</td>
<%# else %>
<td><%#= deliverable.assignment_name %></td>
<% #end %>

<td>

<% if deliverable.get_grade_status==:graded %>
Yes
<% elsif deliverable.get_grade_status==:drafted %>
No (Draft)
<% elsif deliverable.get_grade_status==:ungraded %>
No
<% end %>
<% #if deliverable.get_grade_status==:graded %>
Yes
<% #elsif deliverable.get_grade_status==:drafted %>
No (Draft)
<% #elsif deliverable.get_grade_status==:ungraded %>
No
<% #end %>
</td>


<% if deliverable.get_grade_status==:graded %>
<td><%= link_to 'Review Grade', deliverable %></td>
<%else%>
<td><%= link_to 'Give Grade', deliverable %></td>
<%end%>
<% #if #deliverable.get_grade_status==:graded %>
<td><%#= link_to 'Review Grade', deliverable %></td>
<%#else%>
<td><%#= link_to 'Give Grade', deliverable %></td>
<%#end%>

<!--
<td>
<% if deliverable.current_attachment != nil and deliverable.current_attachment.attachment_file_name != nil %>
<%= link_to deliverable.current_attachment.attachment_file_name, deliverable.current_attachment.attachment.url %>
<% end %>
<%# if deliverable.current_attachment != nil and deliverable.current_attachment.attachment_file_name != nil %>
<%#= link_to deliverable.current_attachment.attachment_file_name, deliverable.current_attachment.attachment.url %>
<%# end %>
</td>
-->
</tr>
<tr>
<td colspan="4">
<div id="collapse<%= deliverable.attributes['deliverable_id'] %>" class="panel-collapse collapse">
<div class="panel-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</div>
</div>
</td>
</tr>
<% end %>
</table>
23 changes: 20 additions & 3 deletions app/views/deliverables/grading_queue_for_course.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<h1><%= @course.display_for_course_page %></h1>
<%= render :partial=>"layouts/grade_book_sub_menu" %>
<!--
<h2>Submitted <%= nomenclature_assignment_or_deliverable%>s</h2>
-->

<!--
<div class="rounded staff">
<%= image_tag("/images/professor.jpg", :size => "50x50", :border => "0", :alt => "Only faculty can see this information", :title => "Faculty Role") %>
<span class="instructions">Note: we will be improving this screen during the Spring 2013 semester by integrating in new student code. </span>
</div>
-->


<div>
Expand Down Expand Up @@ -74,10 +78,11 @@
</script>
<!-- <div style='border-right: solid 3px #7f7f7f;'> -->


<!--
<h2>Search</h2>
-->


<!--
<div id='filterBox'>
<input id='filterInputBox' value='Page is still loading' disabled maxlength='30' size='30' type='text' placeholder="Enter search keywords"/>
<%= image_tag("/images/tablesorter/cross.png", :width => "16", :height => "16", :id => "filterClearOne", :title => 'Click to clear filter.', :alt => 'Clear Filter Image') %> <br/>
Expand All @@ -90,6 +95,18 @@
<input id="filter_ungraded" class="filter_status" checked="true" type="checkbox"/><label for="filter_ungraded">Ungraded</label> &nbsp; &nbsp;
<input id="filter_drafted" class="filter_status" checked="true" type="checkbox"/><label for="filter_drafted">Drafted</label> </br>
</div>
-->

<div id="container" style="background-color: #ffffff">
<div id="filter_search_box" style="padding: 10px">
Placeholder for search and filter box.
</div>

<hr>

<div id="deliverables" style="padding: 10px">
<%= render :partial => "deliverable_listing_professor", :locals => {:deliverables => @deliverables, :skip_course_column => true} %>
<br/>

</div>
</div>
</div>
5 changes: 5 additions & 0 deletions app/views/layouts/cmu_sv.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
<title><%= (title = yield :title) ? title : 'Silicon Valley Campus - Carnegie Mellon University' %></title>
<%= yield :javascript %>
<%= yield :head %>

<!-- 10/16/2013 David Lee -->
<%= stylesheet_link_tag "/stylesheets/bootstrap.min.css", :media => "screen", :rel => "stylesheet" %>
<%= javascript_include_tag 'collapse.js', 'transition.js' %>

</head>

<body>
Expand Down
Loading