添加图片链接和用户名链接
This commit is contained in:
parent
45343a44b8
commit
7490c7f90d
|
@ -2,16 +2,18 @@
|
|||
<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"), student_work_index_url_in_org(activity.id), :target => "_blank" %>
|
||||
<!--<img width="370" height="220" alt="#" src="/images/org_new_style/default-img.jpg">-->
|
||||
<% 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"), student_work_index_url_in_org(activity.id), :target => "_blank" %>
|
||||
<!--<img width="370" height="220" src="/files/uploads/image<%#= iamge_path %>" alt="" />-->
|
||||
<% end %>
|
||||
</div>
|
||||
<h5>
|
||||
<span><%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank' %></span>
|
||||
</h5>
|
||||
<div class="item-btm clearfix">
|
||||
<a class="publisher-name fl" href="#" target="_blank"><%= activity.user.realname.nil? ? activity.user : activity.user.realname %></a>
|
||||
<%=link_to activity.try(:user).try(:realname).nil? ? activity.try(:user).try(:login) : activity.try(:user).try(:realname), user_path(activity.user), :class=>"publisher-name fl", :target => "_blank" %></a>
|
||||
<p class="pass-time fl"><span><%= format_date activity.updated_at %></span></p>
|
||||
<div class="fr right-info"> <span> <%= activity.journals_for_messages.count %></span></div>
|
||||
</div>
|
||||
|
|
|
@ -2,9 +2,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>
|
||||
|
@ -15,7 +15,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>
|
||||
|
|
|
@ -2,16 +2,17 @@
|
|||
<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" %>
|
||||
<!--<img width="370" height="220" alt="#" src="/images/org_new_style/default-img.jpg">-->
|
||||
<% 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>
|
||||
<span><%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank' %></span>
|
||||
</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>
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
<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"), organization_path(@organization, :org_subfield_id => field.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"), organization_path(@organization, :org_subfield_id => field.id), :target => "_blank" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<h5>
|
||||
<span><%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank' %></span>
|
||||
<span><%= link_to activity.title.to_s, organization_path(@organization, :org_subfield_id => field.id), :target => '_blank' %></span>
|
||||
</h5>
|
||||
<div class="item-btm clearfix">
|
||||
<a class="publisher-name fl" href="#" target="_blank"><%= activity.try(:creator).try(:realname).nil? ? activity.try(:creator).try(:login) : activity.try(:creator).try(:realname) %></a>
|
||||
<%=link_to activity.try(:creator).try(:realname).nil? ? activity.try(:creator).try(:login) : activity.try(:creator).try(:realname), user_path(activity.creator), :class=>"publisher-name fl", :target => "_blank" %></a>
|
||||
<p class="pass-time fl"><span><%= format_date activity.created_at %></span></p>
|
||||
<div class="fr right-info"> <span> <%= activity.children.count %></span></div>
|
||||
</div>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue