修改了课件名称显示不全的缺陷
This commit is contained in:
parent
dbc8f420ed
commit
8e7095c82d
|
@ -8,11 +8,11 @@
|
||||||
<div class="homepagePostTitle break_word">
|
<div class="homepagePostTitle break_word">
|
||||||
<%# 如果有历史版本则提供历史版本下载 %>
|
<%# 如果有历史版本则提供历史版本下载 %>
|
||||||
<% if file.attachment_histories.count == 0 %>
|
<% if file.attachment_histories.count == 0 %>
|
||||||
<%= link_to truncate(file.filename,length: 35, omission: '...'),
|
<%= link_to truncate(file.filename,length: file.filename.length, omission: '...'),
|
||||||
download_named_attachment_path(file.id, file.filename),
|
download_named_attachment_path(file.id, file.filename),
|
||||||
:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14" %>
|
:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to truncate(file.filename,length: 35, omission: '...'), attachment_history_download_path(file.id),
|
<%= link_to truncate(file.filename,length: file.filename.length, omission: '...'), attachment_history_download_path(file.id),
|
||||||
:title => file.filename+"\n"+file.description.to_s,
|
:title => file.filename+"\n"+file.description.to_s,
|
||||||
:class => "linkGrey3 f_14",
|
:class => "linkGrey3 f_14",
|
||||||
:style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;", :remote=>true %>
|
:style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;", :remote=>true %>
|
||||||
|
|
Loading…
Reference in New Issue