|
|
|
@ -1,15 +1,15 @@
|
|
|
|
|
<div class="resources mt10" id="user_activity_<%= user_activity_id%>">
|
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_url_in_org(activity.author_id), :alt => "用户头像" %>
|
|
|
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
|
<div class="homepagePostTo break_word mt-4">
|
|
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
|
<%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<%= link_to activity.try(:author), user_url_in_org(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_url_in_org(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<% end %> TO
|
|
|
|
|
<%= link_to activity.project.name.to_s+" | 项目问题", project_issues_path(activity.project), :class => "newsBlue ml15"%>
|
|
|
|
|
</div>
|
|
|
|
@ -23,9 +23,9 @@
|
|
|
|
|
<div class="homepagePostAssignTo">指派给
|
|
|
|
|
<% unless activity.assigned_to_id.nil? %>
|
|
|
|
|
<% if activity.try(:assigned_to).try(:realname) == ' ' %>
|
|
|
|
|
<%= link_to activity.try(:assigned_to), user_path(activity.assigned_to_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<%= link_to activity.try(:assigned_to), user_url_in_org(activity.assigned_to_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to activity.try(:assigned_to).try(:realname), user_path(activity.assigned_to_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<%= link_to activity.try(:assigned_to).try(:realname), user_url_in_org(activity.assigned_to_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
@ -85,14 +85,14 @@
|
|
|
|
|
<% replies_all_i=replies_all_i + 1 %>
|
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec" style="display:<%= replies_all_i>3 ? 'none' : '' %>">
|
|
|
|
|
<div class="homepagePostReplyPortrait">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(reply.user), :width => "33", :height => "33"), user_path(reply.user_id), :alt => "用户头像" %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(reply.user), :width => "33", :height => "33"), user_url_in_org(reply.user_id), :alt => "用户头像" %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyDes">
|
|
|
|
|
<div class="homepagePostReplyPublisher mt-4">
|
|
|
|
|
<% if reply.try(:user).try(:realname) == ' ' %>
|
|
|
|
|
<%= link_to reply.try(:user), user_path(reply.user_id), :class => "newsBlue mr10 f14" %>
|
|
|
|
|
<%= link_to reply.try(:user), user_url_in_org(reply.user_id), :class => "newsBlue mr10 f14" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to reply.try(:user).try(:realname), user_path(reply.user_id), :class => "newsBlue mr10 f14" %>
|
|
|
|
|
<%= link_to reply.try(:user).try(:realname), user_url_in_org(reply.user_id), :class => "newsBlue mr10 f14" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= format_time(reply.created_on) %>
|
|
|
|
|
<span id="reply_praise_count_<%=reply.id %>">
|
|
|
|
@ -120,7 +120,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostReplyContainer borderBottomNone minHeight48">
|
|
|
|
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= user_activity_id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(activity.author_id), :alt => "用户头像" %></div>
|
|
|
|
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= user_activity_id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_url_in_org(activity.author_id), :alt => "用户头像" %></div>
|
|
|
|
|
<div class="homepagePostReplyInputContainer mb10">
|
|
|
|
|
<div nhname='new_message_<%= user_activity_id%>' style="display:none;">
|
|
|
|
|
<%= form_for('new_form',:url => add_journal_in_org_issue_path(activity.id),:method => "post", :remote => true) do |f|%>
|
|
|
|
|