|
|
@ -4,7 +4,7 @@
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %>
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostTo mb12" style="word-break:break-all;">
|
|
|
|
<div class="homepagePostTo mb12 break_word">
|
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
<% 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_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
@ -12,7 +12,7 @@
|
|
|
|
<% end %> TO
|
|
|
|
<% end %> TO
|
|
|
|
<%= link_to activity.project.name.to_s+" | 项目缺陷", project_path(activity.project), :class => "newsBlue ml15", :style=>"word-break:break-all" %>
|
|
|
|
<%= link_to activity.project.name.to_s+" | 项目缺陷", project_path(activity.project), :class => "newsBlue ml15", :style=>"word-break:break-all" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostTitle mb12" style="word-break:break-all;">
|
|
|
|
<div class="homepagePostTitle mb12 break_word">
|
|
|
|
<%= link_to activity.subject.to_s, issue_path(activity), :class => "postGrey", :style=>"word-break:break-all" %>
|
|
|
|
<%= link_to activity.subject.to_s, issue_path(activity), :class => "postGrey", :style=>"word-break:break-all" %>
|
|
|
|
<span class='<%= get_issue_priority(activity.priority_id)[0] %>'><%= get_issue_priority(activity.priority_id)[1] %></span>
|
|
|
|
<span class='<%= get_issue_priority(activity.priority_id)[0] %>'><%= get_issue_priority(activity.priority_id)[1] %></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -28,11 +28,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostDeadline">时间:<%=format_date(activity.created_on) %></div>
|
|
|
|
<div class="homepagePostDeadline">时间:<%=format_date(activity.created_on) %></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostIntro" id="activity_description_<%= user_activity.id %>">缺陷描述:<%= activity.description.html_safe %></div>
|
|
|
|
<div class="homepagePostIntro break_word" id="activity_description_<%= user_activity.id %>">缺陷描述:<%= activity.description.html_safe %></div>
|
|
|
|
<div class="mt10" style="font-weight:normal;">
|
|
|
|
<div class="mt10" style="font-weight:normal;">
|
|
|
|
<% if activity.attachments.any? %>
|
|
|
|
<% if activity.attachments.any? %>
|
|
|
|
<% activity.attachments.each do |attachment| %>
|
|
|
|
<% activity.attachments.each do |attachment| %>
|
|
|
|
<div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
|
|
|
|
<div class="break_word">
|
|
|
|
<span title="<%= attachment.filename %>" id="attachment_">
|
|
|
|
<span title="<%= attachment.filename %>" id="attachment_">
|
|
|
|
<%= link_to_short_attachment attachment, :class => 'homepagePostFileAtt newsBlue', :download => true -%>
|
|
|
|
<%= link_to_short_attachment attachment, :class => 'homepagePostFileAtt newsBlue', :download => true -%>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
@ -116,10 +116,10 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% if reply.details.any? %>
|
|
|
|
<% if reply.details.any? %>
|
|
|
|
<% details_to_strings(reply.details).each do |string| %>
|
|
|
|
<% details_to_strings(reply.details).each do |string| %>
|
|
|
|
<div class="homepagePostReplyContent" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><%= string %></div>
|
|
|
|
<div class="homepagePostReplyContent break_word"><%= string %></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<div class="homepagePostReplyContent"><%= reply.notes.html_safe %></div>
|
|
|
|
<div class="homepagePostReplyContent break_word"><%= reply.notes.html_safe %></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|