课程动态
course activities
-
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank' %>
diff --git a/app/views/organizations/_org_new_course_message.html.erb b/app/views/organizations/_org_new_course_message.html.erb
index 0c12fe898..3877276ce 100644
--- a/app/views/organizations/_org_new_course_message.html.erb
+++ b/app/views/organizations/_org_new_course_message.html.erb
@@ -1,6 +1,11 @@
\ No newline at end of file
diff --git a/app/views/organizations/_org_new_project_message.html.erb b/app/views/organizations/_org_new_project_message.html.erb
index f6b687d77..d37eeedc6 100644
--- a/app/views/organizations/_org_new_project_message.html.erb
+++ b/app/views/organizations/_org_new_project_message.html.erb
@@ -1,3 +1,12 @@
+
-
-
-
-
+
<% @project_message_acts.each do |act| %>
<%= render :partial => 'organizations/org_new_project_message', :locals => {:activity => Message.find(act.org_act_id)} %>
diff --git a/app/views/organizations/_org_new_course_homework.html.erb b/app/views/organizations/_org_new_course_homework.html.erb
index 79272f0ce..3de4c0293 100644
--- a/app/views/organizations/_org_new_course_homework.html.erb
+++ b/app/views/organizations/_org_new_course_homework.html.erb
@@ -1,6 +1,11 @@

-
+ <% iamge_path = get_image_path_from_content(activity.description) %>
+ <% if iamge_path.nil? %>
+
+ <% else %>
+
+ <% end %>


<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank' %>
diff --git a/app/views/organizations/_org_new_course_message.html.erb b/app/views/organizations/_org_new_course_message.html.erb
index 0c12fe898..3877276ce 100644
--- a/app/views/organizations/_org_new_course_message.html.erb
+++ b/app/views/organizations/_org_new_course_message.html.erb
@@ -1,6 +1,11 @@
-
+ <% iamge_path = get_image_path_from_content(activity.content) %>
+ <% if iamge_path.nil? %>
+
+ <% else %>
+
+ <% end %>
<% if activity.parent_id.nil? %>
diff --git a/app/views/organizations/_org_new_course_news.html.erb b/app/views/organizations/_org_new_course_news.html.erb
index 7ed2fe4b6..ae2d03cbf 100644
--- a/app/views/organizations/_org_new_course_news.html.erb
+++ b/app/views/organizations/_org_new_course_news.html.erb
@@ -1,6 +1,11 @@
-
+ <% iamge_path = get_image_path_from_content(activity.description) %>
+ <% if iamge_path.nil? %>
+
+ <% else %>
+
+ <% end %>
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank' %>
diff --git a/app/views/organizations/_org_new_forum.html.erb b/app/views/organizations/_org_new_forum.html.erb
index 8ae2036cc..bcebbb67a 100644
--- a/app/views/organizations/_org_new_forum.html.erb
+++ b/app/views/organizations/_org_new_forum.html.erb
@@ -6,7 +6,7 @@
<% else %>
<% end %>
- <%=link_to activity.content.html_safe, organization_path(organization, :org_subfield_id => field.id), :class => "con-left-txt fl" %>
+ <%=link_to activity.content.html_safe, organization_path(organization, :org_subfield_id => field.id), :class => "con-left-txt fl", :target => "_blank" %>


-
+ <% iamge_path = get_image_path_from_content(activity.description) %>
+ <% if iamge_path.nil? %>
+
+ <% else %>
+
+ <% end %>


<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank' %>
diff --git a/app/views/organizations/_org_new_forum.html.erb b/app/views/organizations/_org_new_forum.html.erb
index 8ae2036cc..bcebbb67a 100644
--- a/app/views/organizations/_org_new_forum.html.erb
+++ b/app/views/organizations/_org_new_forum.html.erb
@@ -6,7 +6,7 @@
<% else %>
<% end %>
- <%=link_to activity.content.html_safe, organization_path(organization, :org_subfield_id => field.id), :class => "con-left-txt fl" %>
+ <%=link_to activity.content.html_safe, organization_path(organization, :org_subfield_id => field.id), :class => "con-left-txt fl", :target => "_blank" %>
+ <% iamge_path = get_image_path_from_content(activity.content) %>
+ <% if iamge_path.nil? %>
+
+ <% else %>
+
+ <% end %>
+
+
