样式调整
This commit is contained in:
parent
d821683f68
commit
7cc96b1569
|
@ -14,17 +14,23 @@
|
|||
</ul>
|
||||
</div>
|
||||
<% elsif !@article.nil? && @article != @user.base_homepage %>
|
||||
<p class="sy_cgrey" style="position:absolute; height:20px; left: 0px; top: -20px;">
|
||||
<p class="sy_cgrey" style="position:absolute; height:20px; left: 1px; top: -22px;">
|
||||
<span class="fl">
|
||||
<%= link_to(@user.show_name, user_path(@user), :class => 'sy_cgrey') %>
|
||||
>
|
||||
</span>
|
||||
<% if @user.base_homepage %>
|
||||
<span class="fl">
|
||||
<%=link_to @user.base_homepage.title, homepage_user_path(@user.login), :class => 'sy_cgrey' %>
|
||||
>
|
||||
</span>
|
||||
<% else %>
|
||||
<span class="fl">
|
||||
<%=link_to '编辑主页', user_homepages_path(:user_id => @user.id), :class => 'sy_cgrey' %>
|
||||
>
|
||||
</span>
|
||||
<% end %>
|
||||
<%=link_to @article.title, user_homepage_show_path(:user_id=> @article.user_id,:id=> @article), :class => 'sy_cgrey' %>
|
||||
<%=link_to @article.title, user_homepage_show_path(:user_id=> @article.user_id,:id=> @article), :class => 'sy_cgrey', :style => 'white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 650px;' %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% if @article.nil? %>
|
||||
|
|
Loading…
Reference in New Issue