You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/news/index.html.erb

11 lines
291 B

6 years ago
<% if @project %>
<%= render :partial => 'project_news', locals: {project: @project} %>
<% elsif @course %>
<%= render :partial => 'course_news', locals: {course: @course} %>
<% elsif @contest %>
<%= render :partial => 'contest_news', locals: {contest: @contest} %>
<% end %>