|
|
|
@ -7,16 +7,16 @@
|
|
|
|
|
<div class="course-list-img">
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<img width="370" height="220" alt="#" src="/images/org_new_style/default-img.jpg">
|
|
|
|
|
<%= link_to image_tag("/images/org_new_style/default-img.jpg", :width => "370", :height => "220"), issue_url_in_org(activity.id), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<img width="370" height="220" src="/files/uploads/image<%= iamge_path %>" alt="" />
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "370", :height => "220"), issue_url_in_org(activity.id), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<h5>
|
|
|
|
|
<%= link_to activity.subject.to_s, issue_url_in_org(activity.id), :target => '_blank' %>
|
|
|
|
|
</h5>
|
|
|
|
|
<div class="item-btm clearfix">
|
|
|
|
|
<a class="publisher-name fl" href="#" target="_blank"><%= activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname) %></a>
|
|
|
|
|
<%=link_to activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname), user_path(activity.author), :class=>"publisher-name fl", :target => "_blank" %></a>
|
|
|
|
|
<p class="pass-time fl"><span><%= format_date activity.updated_on %></span></p>
|
|
|
|
|
<div class="fr right-info"> <span> <%= activity.journals.count %></span></div>
|
|
|
|
|
</div>
|
|
|
|
@ -29,9 +29,9 @@
|
|
|
|
|
<div class="course-list-img">
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<img width="370" height="220" alt="#" src="/images/org_new_style/default-img.jpg">
|
|
|
|
|
<%= link_to image_tag("/images/org_new_style/default-img.jpg", :width => "370", :height => "220"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<img width="370" height="220" src="/files/uploads/image<%= iamge_path %>" alt="" />
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "370", :height => "220"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<h5>
|
|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</h5>
|
|
|
|
|
<div class="item-btm clearfix">
|
|
|
|
|
<a class="publisher-name fl" href="#" target="_blank"><%= activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname) %></a>
|
|
|
|
|
<%=link_to activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname), user_path(activity.author), :class=>"publisher-name fl", :target => "_blank" %></a>
|
|
|
|
|
<p class="pass-time fl"><span><%= format_date activity.updated_on %></span></p>
|
|
|
|
|
<div class="fr right-info"> <span> <%= activity.children.count %></span></div>
|
|
|
|
|
</div>
|
|
|
|
@ -55,16 +55,16 @@
|
|
|
|
|
<div class="course-list-img">
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<img width="370" height="220" alt="#" src="/images/org_new_style/default-img.jpg">
|
|
|
|
|
<%= link_to image_tag("/images/org_new_style/default-img.jpg", :width => "370", :height => "220"), news_url_in_org(activity.id), :target => "_blank" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<img width="370" height="220" src="/files/uploads/image<%= iamge_path %>" alt="" />
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "370", :height => "220"), news_url_in_org(activity.id), :target => "_blank" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<h5>
|
|
|
|
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank' %>
|
|
|
|
|
</h5>
|
|
|
|
|
<div class="item-btm clearfix">
|
|
|
|
|
<a class="publisher-name fl" href="#" target="_blank"><%= activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname) %></a>
|
|
|
|
|
<%=link_to activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname), user_path(activity.author), :class=>"publisher-name fl", :target => "_blank" %></a>
|
|
|
|
|
<p class="pass-time fl"><span><%= format_date activity.created_on %></span></p>
|
|
|
|
|
<div class="fr right-info"> <span> <%= activity.comments.count %></span></div>
|
|
|
|
|
</div>
|
|
|
|
|