CSC/ECE 517 Fall 2019 - E1966. Tabbed reviews partial file refactor for displaying the alternate view of reviews: Difference between revisions
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
== '''Solution''' == | == '''Solution''' == | ||
===Student End=== | |||
* | * In student end, add render partial to tabbed reviews. | ||
''' | '''app/views/grades/_participant.html.erb ''' | ||
<pre> | <pre> | ||
<TR id="<%= prefix %>_reviews" style="display:none; background-color: white;"> | |||
<TD COLSPAN="10"><%= render :partial=>'grades/reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD> | |||
<TD COLSPAN="10"><%= render :partial=>'grades/tabbed_reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD> | |||
</TR> | |||
</pre> | </pre> | ||
* | * |
Revision as of 17:28, 28 October 2019
About Expertiza
Expertiza is a open source project currently for CSC517 instructor and students forming groups, submit work, review, and view grades. The project is based on Ruby on Rails framework and the code is on Github: https://github.com/expertiza/expertiza. Expertiza serves wiki page, collecting information of all internal information and updates of all versions.
Problem Statement
Issue details
1) On student-end, Expertiza use grades/_reviews.html.erb partial to display reviewers, scores and review details; on instructor-end, it uses response controller and model to generate reviews page (the tables and charts are generated by grades/_team_statistics.html.erb (display reviewers and scores) in Statistics tab). We need to use the same kinds of partials in instructor-end and student-end, either _reviews partial or tabbed_reviews partial.
2) Give Feedback link at view_my_score at student-end should not appear at folded view.
What to do
1) We need to use the same kinds of partials in instructor-end and student-end.
2) Give Feedback link at view_my_score should appear at the bottom of expanded view.
Solution
Student End
- In student end, add render partial to tabbed reviews.
app/views/grades/_participant.html.erb
<TR id="<%= prefix %>_reviews" style="display:none; background-color: white;"> <TD COLSPAN="10"><%= render :partial=>'grades/reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD> <TD COLSPAN="10"><%= render :partial=>'grades/tabbed_reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD> </TR>
path to add
to do
path to add
to do
path to add
to do
Test files
- what test done
- how to do that
path to add
test
Team Information
- Forked Issue on Github
- Weiran Fu (@ncsu.edu)
- Qingyan Wang (qwang20@ncsu.edu)
- Hongli Wang (hwang85@ncsu.edu)
- Mentor: Mohit Jain (mjain6@ncsu.edu)