样式调整

This commit is contained in:
cxt 2016-10-20 16:57:19 +08:00
parent d821683f68
commit 7cc96b1569
1 changed files with 8 additions and 2 deletions

View File

@ -14,17 +14,23 @@
</ul> </ul>
</div> </div>
<% elsif !@article.nil? && @article != @user.base_homepage %> <% 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') %> <%= link_to(@user.show_name, user_path(@user), :class => 'sy_cgrey') %>
&nbsp;&gt;&nbsp; &nbsp;&gt;&nbsp;
</span>
<% if @user.base_homepage %> <% if @user.base_homepage %>
<span class="fl">
<%=link_to @user.base_homepage.title, homepage_user_path(@user.login), :class => 'sy_cgrey' %> <%=link_to @user.base_homepage.title, homepage_user_path(@user.login), :class => 'sy_cgrey' %>
&nbsp;&gt;&nbsp; &nbsp;&gt;&nbsp;
</span>
<% else %> <% else %>
<span class="fl">
<%=link_to '编辑主页', user_homepages_path(:user_id => @user.id), :class => 'sy_cgrey' %> <%=link_to '编辑主页', user_homepages_path(:user_id => @user.id), :class => 'sy_cgrey' %>
&nbsp;&gt;&nbsp; &nbsp;&gt;&nbsp;
</span>
<% end %> <% 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> </p>
<% end %> <% end %>
<% if @article.nil? %> <% if @article.nil? %>