|
|
@ -1,19 +1,19 @@
|
|
|
|
<div class="resources mt10">
|
|
|
|
<div class="resources mt10">
|
|
|
|
<div class="homepagePostBrief mt10">
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
<%= 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 => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostTo mb12 break_word">
|
|
|
|
<div class="homepagePostTo 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 %>
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
<% 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_issues_path(activity.project), :class => "newsBlue ml15"%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostTitle mb12 break_word">
|
|
|
|
<div class="homepagePostTitle 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" %>
|
|
|
|
<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>
|
|
|
|
<div class="homepagePostSubmitContainer">
|
|
|
|
<div class="homepagePostSubmitContainer">
|
|
|
@ -28,13 +28,18 @@
|
|
|
|
</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 break_word" id="activity_description_<%= user_activity.id %>">缺陷描述:<%= activity.description.html_safe %></div>
|
|
|
|
<div class="homepagePostIntro break_word upload_img" id="activity_description_<%= user_activity.id %>">缺陷描述:
|
|
|
|
|
|
|
|
<% if activity.description? %>
|
|
|
|
|
|
|
|
<%= textAreailizable activity, :description, :attachments => activity.attachments %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%#= 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 class="break_word">
|
|
|
|
<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,:length=> 58, :class => 'homepagePostFileAtt newsBlue', :download => true -%>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% if attachment.is_text? %>
|
|
|
|
<% if attachment.is_text? %>
|
|
|
|
<%= link_to image_tag('magnifier.png'),
|
|
|
|
<%= link_to image_tag('magnifier.png'),
|
|
|
|