修改news500问题
This commit is contained in:
parent
7490c7f90d
commit
67d1798163
|
@ -34,13 +34,13 @@
|
|||
<% elsif act.org_act_type == "News" %>
|
||||
<% activity = News.find(act.org_act_id) %>
|
||||
<div class="row-ziyuan fl">
|
||||
<%= link_to image_tag(url_to_avatar(activity.creator),:width => "40", :height => "40"), user_path(activity.creator), :class => "fl user-img" %>
|
||||
<%= link_to image_tag(url_to_avatar(activity.author),:width => "40", :height => "40"), user_path(activity.author), :class => "fl user-img" %>
|
||||
<!--<a href="#" class="fl user-img" ><img src="images/detailimg4.jpg" /></a>-->
|
||||
<div class="ziyuan-box fl">
|
||||
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "fl ziyuan-title" %>
|
||||
<p class="fl"><span >发布时间:<%= format_date activity.updated_at %></span>
|
||||
<span> 作者:<%= activity.try(:creator).try(:realname).nil? ? activity.try(:creator).try(:login) : activity.try(:creator).try(:realname) %></span>
|
||||
<span class="fr right-info2"> <%= activity.children.count %></span> </p>
|
||||
<p class="fl"><span >发布时间:<%= format_date activity.created_on %></span>
|
||||
<span> 作者:<%= activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname) %></span>
|
||||
<span class="fr right-info2"> <%= activity.comments.count %></span> </p>
|
||||
</div>
|
||||
</div><!--row-ziyuan end-->
|
||||
<% end %>
|
||||
|
|
|
@ -35,13 +35,13 @@
|
|||
<% elsif act.org_act_type == "News" %>
|
||||
<% activity = News.find(act.org_act_id) %>
|
||||
<div class="row-ziyuan fl">
|
||||
<%= link_to image_tag(url_to_avatar(activity.creator),:width => "40", :height => "40"), user_path(activity.creator), :class => "fl user-img" %>
|
||||
<%= link_to image_tag(url_to_avatar(activity.author),:width => "40", :height => "40"), user_path(activity.author), :class => "fl user-img" %>
|
||||
<!--<a href="#" class="fl user-img" ><img src="images/detailimg4.jpg" /></a>-->
|
||||
<div class="ziyuan-box fl">
|
||||
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "fl ziyuan-title" %>
|
||||
<p class="fl"><span >发布时间:<%= format_date activity.updated_at %></span>
|
||||
<span> 作者:<%= activity.try(:creator).try(:realname).nil? ? activity.try(:creator).try(:login) : activity.try(:creator).try(:realname) %></span>
|
||||
<span class="fr right-info2"> <%= activity.children.count %></span> </p>
|
||||
<p class="fl"><span >发布时间:<%= format_date activity.created_on %></span>
|
||||
<span> 作者:<%= activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname) %></span>
|
||||
<span class="fr right-info2"> <%= activity.comments.count %></span> </p>
|
||||
</div>
|
||||
</div><!--row-ziyuan end-->
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue