Skip to content

Commit

Permalink
alaashafaee#470 commiting for Rspec session
Browse files Browse the repository at this point in the history
  • Loading branch information
Rania Abdel Fattah authored and Rania Abdel Fattah committed May 12, 2014
1 parent f65978e commit 4a7e765
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions tutor/app/controllers/students_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ def show
@student = Student.find(params[:id])
@courses = @student.courses.order("created_at desc")
end


end
22 changes: 11 additions & 11 deletions tutor/app/views/students/_show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@
<div class="tab-pane active" id="tab11">
<div>
<h2 align="center">Continue from where you left off</h2><br>
<div class = "greyLine">
<p><font size="3"><%= @post.owner.name %></font> </p>
<div class="panel panel-primary">
<div style="margin-left:1%;">
<h2><%= @post.content %></h2>
<p><font size="3"><%= distance_of_time_in_words_to_now @post.
created_at %> ago</p></font>
</div>
</div>
</div>
</div><br>
<div class = "reply">
<p>
<%= @reply.content %>
<br>
</p>
<p><font size="1"><%= distance_of_time_in_words_to_now reply.created_at %> ago </p>
</div>
<div>

</div><br>
<h2 align="center">Your Progress</h2>
<table class = "table table-striped">
<tr>
Expand Down
Binary file modified tutor/db/development.sqlite3
Binary file not shown.

0 comments on commit 4a7e765

Please sign in to comment.