主页宽度调整、主页配置菜单调整
This commit is contained in:
parent
70c7b0d12c
commit
dff47b586e
|
@ -1,44 +1,45 @@
|
||||||
<div class="homepageContentContainer" style="margin-top: 25px;">
|
<div class="homepageContentContainer" style="margin-top: 25px;">
|
||||||
<div class="homepageContent">
|
<div class="homepageMainContent">
|
||||||
<div class="postContainer mb10 pr">
|
<div class="postRightContainer pr">
|
||||||
<% if User.current && User.current == @article.user %>
|
<% if User.current && User.current == @article.user %>
|
||||||
<div class="homepagePostSetting" id="message_setting_<%= @article.id%>" style="top: -25px;">
|
<div class="homepagePostSetting" id="message_setting_<%= @article.id%>" style="top: -25px;">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="homepagePostSettingIcon">
|
<li class="homepagePostSettingIcon">
|
||||||
<ul class="homepagePostSettiongText">
|
<ul class="homepagePostSettiongText">
|
||||||
<li>
|
<li>
|
||||||
<% if @article.id == @article.homepage.article_id %>
|
<%= link_to(l(:button_conf_base_homepage), user_homepages_path(:user_id=>@article.user_id), :class => 'postOptionLink' )%>
|
||||||
<%= link_to(
|
<%# if @article.id == @article.homepage.article_id %>
|
||||||
|
<%#= link_to(
|
||||||
l(:button_cancel_base_homepage),
|
l(:button_cancel_base_homepage),
|
||||||
{:controller => 'homepages',:action => 'cancel_homepage',:user_id=>@article.user_id,:id=>@article.homepage_id, :article_id => @article.id, :show => 1},
|
{:controller => 'homepages',:action => 'cancel_homepage',:user_id=>@article.user_id,:id=>@article.homepage_id, :article_id => @article.id, :show => 1},
|
||||||
:method => :post,
|
:method => :post,
|
||||||
:class => 'postOptionLink'
|
:class => 'postOptionLink'
|
||||||
)%>
|
)%>
|
||||||
<% else %>
|
<%# else %>
|
||||||
<%= link_to(
|
<%#= link_to(
|
||||||
l(:button_set_base_homepage),
|
l(:button_set_base_homepage),
|
||||||
{:controller => 'homepages',:action => 'set_homepage',:user_id=>@article.user_id,:id=>@article.homepage_id, :article_id => @article.id, :show => 1},
|
{:controller => 'homepages',:action => 'set_homepage',:user_id=>@article.user_id,:id=>@article.homepage_id, :article_id => @article.id, :show => 1},
|
||||||
:method => :post,
|
:method => :post,
|
||||||
:class => 'postOptionLink'
|
:class => 'postOptionLink'
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<%# end %>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to(
|
|
||||||
l(:button_edit),
|
|
||||||
{:controller => 'article_homepages',:action => 'edit', :id => @article.id},
|
|
||||||
:class => 'postOptionLink'
|
|
||||||
) %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to(
|
|
||||||
l(:button_delete),
|
|
||||||
{:controller => 'article_homepages',:action => 'destroy', :id => @article.id},
|
|
||||||
:method => :delete,
|
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
|
||||||
:class => 'postOptionLink'
|
|
||||||
) %>
|
|
||||||
</li>
|
</li>
|
||||||
|
<!--<li>-->
|
||||||
|
<!--<%#= link_to(-->
|
||||||
|
<!--l(:button_edit),-->
|
||||||
|
<!--{:controller => 'article_homepages',:action => 'edit', :id => @article.id},-->
|
||||||
|
<!--:class => 'postOptionLink'-->
|
||||||
|
<!--) %>-->
|
||||||
|
<!--</li>-->
|
||||||
|
<!--<li>-->
|
||||||
|
<!--<%#= link_to(-->
|
||||||
|
<!--l(:button_delete),-->
|
||||||
|
<!--{:controller => 'article_homepages',:action => 'destroy', :id => @article.id},-->
|
||||||
|
<!--:method => :delete,-->
|
||||||
|
<!--:data => {:confirm => l(:text_are_you_sure)},-->
|
||||||
|
<!--:class => 'postOptionLink'-->
|
||||||
|
<!--) %>-->
|
||||||
|
<!--</li>-->
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="homepageContentContainer">
|
<div class="homepageContentContainer">
|
||||||
<div class="homepageContent">
|
<div class="homepageMainContent">
|
||||||
<div class="postContainer mb10">
|
<div class="homepagePostContainer mb10">
|
||||||
<%= labelled_form_for @article, :url =>{:controller=>'article_homepages',:action => 'update'},
|
<%= labelled_form_for @article, :url =>{:controller=>'article_homepages',:action => 'update'},
|
||||||
:html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
:html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
||||||
<%= render :partial => 'article_form', :locals => {:is_edit => true, :f => f} %>
|
<%= render :partial => 'article_form', :locals => {:is_edit => true, :f => f} %>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="homepageContentContainer">
|
<div class="homepageContentContainer">
|
||||||
<div class="homepageContent">
|
<div class="homepageMainContent">
|
||||||
<div class="postContainer mb10">
|
<div class="homepagePostContainer mb10">
|
||||||
<%= labelled_form_for @article, :url =>{:controller=>'article_homepages',:action => 'create'},
|
<%= labelled_form_for @article, :url =>{:controller=>'article_homepages',:action => 'create'},
|
||||||
:html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
:html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
||||||
<%= render :partial => 'article_form', :locals => {:is_edit => false, :f => f} %>
|
<%= render :partial => 'article_form', :locals => {:is_edit => false, :f => f} %>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<% if User.current.logged?%>
|
<% if User.current.logged?%>
|
||||||
<% if User.current == target%>
|
<% if User.current == target%>
|
||||||
<li style="width: 119px; float: left; border-right: 1px solid #ddd;"><%= link_to("编辑基本资料", my_account_path, :class => "user_editinfo") %></li>
|
<li style="width: 119px; float: left; border-right: 1px solid #ddd;"><%= link_to("编辑基本资料", my_account_path, :class => "user_editinfo") %></li>
|
||||||
<li style="width: 118px; float: left;"><%= link_to '个人主页', user_homepages_path(:user_id => @user.id) , :class => "user_editinfo" %></li>
|
<li style="width: 118px; float: left;"><%= link_to '个人主页', homepage_user_path(@user), :class => "user_editinfo" %></li>
|
||||||
<li class="cl"></li>
|
<li class="cl"></li>
|
||||||
<% else%>
|
<% else%>
|
||||||
<li style="width: 119px; float: left; border-right: 1px solid #ddd;">
|
<li style="width: 119px; float: left; border-right: 1px solid #ddd;">
|
||||||
|
|
|
@ -911,6 +911,7 @@ zh:
|
||||||
button_edit: 编辑
|
button_edit: 编辑
|
||||||
button_delete: 删除
|
button_delete: 删除
|
||||||
button_approve: 批准
|
button_approve: 批准
|
||||||
|
button_conf_base_homepage: 配置主页
|
||||||
button_set_base_homepage: 设为主页
|
button_set_base_homepage: 设为主页
|
||||||
button_cancel_base_homepage: 取消主页
|
button_cancel_base_homepage: 取消主页
|
||||||
button_set_homepage: 设为首页
|
button_set_homepage: 设为首页
|
||||||
|
|
|
@ -1515,3 +1515,6 @@ a.syllabusbox_a_blue{
|
||||||
|
|
||||||
/*历史版本删除功能*/
|
/*历史版本删除功能*/
|
||||||
.popup_ziyuan_title{ display: block; margin-left: 10px; text-align: left; max-width:360px; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
|
.popup_ziyuan_title{ display: block; margin-left: 10px; text-align: left; max-width:360px; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
|
||||||
|
.homepagePostContainer {width:718px; border:1px solid #dddddd; padding:15px; background-color:#ffffff;}
|
||||||
|
.homepageMainContent {margin: 10px auto; width: 750px;}
|
||||||
|
|
Loading…
Reference in New Issue