|
1 | | -<div class="row"> |
2 | | - <div class="col-md-8 col-md-offset-2"> |
3 | | - <h1 class="text-center">Transcript for Epicodus</h1> |
4 | | - <p class="text-center"><em><strong> |
5 | | - <%= @student.cohort.try(:description).try('include?', 'Data Engineering') ? 'Data Engineering' : 'Web and Mobile Development' %> |
6 | | - </em></p> |
7 | | - <p class="text-center">520 SW 6th Ave, Suite 300, Portland OR 97204</p> |
8 | | - <p>Student: <strong><%= @student.name %></strong></p> |
9 | | - <p>Dates Enrolled: <%= @student.courses.order(:start_date).first.start_date.strftime('%B %d, %Y') %> - <%= @student.courses.order(:start_date).last.end_date.strftime('%B %d, %Y') %></p> |
10 | | - |
11 | | - <p>Courses: <strong>(does not include courses in progress)</strong></p> |
12 | | - <ul> |
13 | | - <% @completed_courses.each do |course| %> |
14 | | - <li> |
15 | | - <%= course.description %> |
16 | | - <ul> |
17 | | - <% course.code_reviews.where(journal: nil).or(course.code_reviews.where(journal: false)).each do |code_review| %> |
18 | | - <li> |
19 | | - <%= code_review.title %> |
20 | | - <span class="pull-right"><em><%= code_review.status(@student) %></em></span> |
21 | | - </li> |
22 | | - <% end %> |
23 | | - </ul> |
24 | | - </li> |
25 | | - <% end %> |
26 | | - </ul> |
27 | | - |
28 | | - <% if @completed_courses.non_internship_courses.any? %> |
29 | | - <% if @student.total_attendance_score >= 90.0 %> |
30 | | - <p>Epicodus requires students to attend class at least 90% of the time. This student met that requirement.</p> |
31 | | - <% end %> |
32 | | - <% end %> |
33 | | - |
34 | | - <p><%= image_tag "signature.png" %></p> |
35 | | - <p><strong>Michael Kaiser-Nyman, President</strong></p> |
36 | | - <p>Date: <%= @completed_courses.last.end_date.strftime('%B %d, %Y') %></p> |
37 | | - <br> |
38 | | - <p>Epicodus maintains student transcripts for 50 years.</p> |
39 | | - </div> |
40 | | -</div> |
| 1 | +<%= render partial: 'transcript', locals: {student: @student, completed_courses: @completed_courses} %> |
0 commit comments