1.用户信息中的额用户链接改成正确连接;组织资源文件名过长时省略显示
This commit is contained in:
parent
3bfaddc80f
commit
fe0d31d9c4
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostDes">
|
<div class="homepagePostDes">
|
||||||
<div class="homepagePostTitle break_word mt-4">
|
<div class="homepagePostTitle break_word mt-4">
|
||||||
<%= link_to file.is_public? ? truncate(file.filename, length: 70) : truncate(file.filename,length: 50, omission: '...'),
|
<%= link_to file.is_public? ? truncate(file.filename, length: 45) : truncate(file.filename,length: 35, 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 f_l" %>
|
:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14 f_l" %>
|
||||||
<%= file_preview_eye(file, class: 'preview') %>
|
<%= file_preview_eye(file, class: 'preview') %>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="userCard boxShadow" style="<%= User.current == user ? 'top:-153px;':'' %>">
|
<div class="userCard boxShadow" style="<%= User.current == user ? 'top:-153px;':'' %>">
|
||||||
<div class="userAvatarWrap fl">
|
<div class="userAvatarWrap fl">
|
||||||
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_url_in_org(user), :alt => "用户头像", :target => '_blank' %>
|
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_url_in_org(user.id), :alt => "用户头像", :target => '_blank' %>
|
||||||
<%#= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
|
<%#= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
|
||||||
<!--<img src="images/homepageImage.jpg" width="50" height="50" alt="个人头像" />-->
|
<!--<img src="images/homepageImage.jpg" width="50" height="50" alt="个人头像" />-->
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue