Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show topic information at student's 'Your work' view.

  • Loading branch information...
commit 1ae3387107b4a96dfe6f48a4517e2709bda25e95 1 parent de32094
@mgdelcar mgdelcar authored
View
2  app/views/submitted_content/_title.html.erb
@@ -0,0 +1,2 @@
+<h1>Submit work for <%= @assignment.name %></h1>
+<h2><%= if @participant.topic then @participant.topic.topic_identifier + ": " + @participant.topic.topic_name end %></h2>
View
4 app/views/submitted_content/edit.html.erb
@@ -1,5 +1,5 @@
-<h1>Submit work for <%= @assignment.name %></h1>
-
+<%= render :partial => 'submitted_content/title' %>
+
<%@stage = @assignment.get_current_stage(@participant.topic_id)%>
<%= render :partial => 'submitted_content/main', :locals => {:participant => @participant, :stage => @stage} %>
<BR/>
View
2  app/views/submitted_content/view.html.erb
@@ -1,4 +1,4 @@
-<h1>Submit work for <%= @assignment.name %></h1>
+<%= render :partial => 'submitted_content/title' %>
<%= render :partial => 'submitted_content/main', :locals => {:participant => @participant, :stage => @assignment.get_current_stage(@participant.topic_id)} %>
Please sign in to comment.
Something went wrong with that request. Please try again.