修复bug#2476 : 项目--问题跟踪:关于上传附件的描述的显示问题
This commit is contained in:
parent
895058f38e
commit
f3da7979f8
|
@ -28,7 +28,8 @@
|
||||||
<div class="attachments" style="font-weight:normal;">
|
<div class="attachments" style="font-weight:normal;">
|
||||||
<% is_float ||= false %>
|
<% is_float ||= false %>
|
||||||
<% for attachment in attachments %>
|
<% for attachment in attachments %>
|
||||||
<p style="width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
<div style="float:left;">
|
||||||
|
<p style="height:14px;line-height:10px;width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
||||||
<%if is_float%>
|
<%if is_float%>
|
||||||
<div style="max-width:55%;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;float: left;">
|
<div style="max-width:55%;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;float: left;">
|
||||||
<% end%>
|
<% end%>
|
||||||
|
@ -50,9 +51,10 @@
|
||||||
:id => attachment,
|
:id => attachment,
|
||||||
:filename => attachment.filename%>
|
:filename => attachment.filename%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span title="<%= attachment.description%>">
|
</div>
|
||||||
<%= h(truncate(" - #{attachment.description}", length: options[:length] ? options[:length]:15, omission: '...')) unless attachment.description.blank? %>
|
<div style="float:left;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" title="<%= attachment.description%>">
|
||||||
</span>
|
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
|
||||||
|
</div>
|
||||||
<span class="size">(
|
<span class="size">(
|
||||||
<%= number_to_human_size attachment.filesize %>)
|
<%= number_to_human_size attachment.filesize %>)
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue