公共贴吧--编辑帖子,“置顶”与“引用”控件重叠及中英文混排问题 #1258
This commit is contained in:
parent
0ab7bfcda9
commit
1976aa9c72
|
@ -27,8 +27,7 @@
|
||||||
<p><%= f.text_area :content, :required => true, :size => 80, id: 'editor01' %></p>
|
<p><%= f.text_area :content, :required => true, :size => 80, id: 'editor01' %></p>
|
||||||
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script>
|
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script>
|
||||||
<br/>
|
<br/>
|
||||||
<%= f.submit :value => l(:button_change) %>
|
<%= f.submit :value => l(:button_change) %> <%= link_to l(:button_back), back_url ,:class => "button-canel",:style => "color: #ffffff;"%>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= link_to l(:button_back), back_url %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -43,11 +43,14 @@
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
:title => l(:button_delete)
|
:title => l(:button_delete)
|
||||||
) if @memo.destroyable_by?(User.current) %>
|
) if @memo.destroyable_by?(User.current) %>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="memo-title <%= @memo.sticky ? 'sticky' : '' %> <%= @memo.locked? ? 'locked' : '' %>" style="word-break: break-all;word-wrap: break-word;"><%= label_tag l(:field_subject) %>: <%=h @memo.subject %></div>
|
<div> </div>
|
||||||
|
|
||||||
|
<div class="memo-title <%= @memo.sticky ? 'sticky' : '' %> <%= @memo.locked? ? 'locked' : '' %>"
|
||||||
|
style="word-break: break-all;word-wrap: break-word;">
|
||||||
|
<%= label_tag l(:field_subject) %>: <%=h @memo.subject %>
|
||||||
|
</div>
|
||||||
<div class="memo-content">
|
<div class="memo-content">
|
||||||
<%= textAreailizable(@memo,:content) %>
|
<%= textAreailizable(@memo,:content) %>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -1,71 +1,68 @@
|
||||||
<% content_for :top_field do%>
|
<% content_for :top_field do%>
|
||||||
<%= render 'search_bar' %>
|
<%= render 'search_bar' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="resource_sum" id="IE_resource_sum_css">
|
<div class="resource_sum">
|
||||||
<% @attach_array.each do |k|%>
|
<% @attach_array.each do |k|%>
|
||||||
<div class="line_block" >
|
<div class="line_block">
|
||||||
<p>
|
<p>
|
||||||
<%= @str_arr.shift %>
|
<%= @str_arr.shift %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="table1">
|
<div class="table1">
|
||||||
<div class='table_row1'>
|
<div class='table_row1'>
|
||||||
<div class='table_cell1 filename1' style='text-align: center;'><%=l(:label_attachment)%></div>
|
<div class='table_cell1 filename1' style='text-align: center;'><%=l(:label_attachment)%></div>
|
||||||
<div class='table_cell1 filedown1'><%=l(:field_downloads)%></div>
|
<div class='table_cell1 filedown1'><%=l(:field_downloads)%></div>
|
||||||
<div class='table_cell1 downicon1'><%=l(:button_download)%></div>
|
<div class='table_cell1 downicon1'><%=l(:button_download)%></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table1">
|
<div class="table1">
|
||||||
<% k.each do |c1|%>
|
<% k.each do |c1|%>
|
||||||
<div class="table_row1 <%= cycle 'odd', 'even' %>">
|
<div class="table_row1 <%= cycle 'odd', 'even' %>">
|
||||||
<div class="filename table_cell1 filename1" >
|
<div class="filename table_cell1 filename1" >
|
||||||
<%= link_to c1.filename, (attachFromUrl c1), {:title => c1.filename, :target => "_blank"} %>
|
<%= link_to c1.filename, (attachFromUrl c1), {:title => c1.filename, :target => "_blank"} %>
|
||||||
</div>
|
</div>
|
||||||
<div class="table_cell1 filedown1">
|
<div class="table_cell1 filedown1">
|
||||||
<%= c1.downloads %>
|
<%= c1.downloads %>
|
||||||
</div>
|
</div>
|
||||||
<div class="table_cell1 downicon1 filename download_icon" >
|
<div class="table_cell1 downicon1 filename download_icon" >
|
||||||
<%= link_to_attachment c1, {:download => true, :text => image_tag("/images/button/download.png", width: "22px", alt: l(:button_download)) }%>
|
<%= link_to_attachment c1, {:download => true, :text => image_tag("/images/button/download.png", width: "22px", alt: l(:button_download)) }%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% end; reset_cycle %>
|
<% end; reset_cycle %>
|
||||||
</div>
|
</div>
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
function validate_required(field,alerttxt)
|
function validate_required(field,alerttxt)
|
||||||
{
|
|
||||||
with (field)
|
|
||||||
{
|
{
|
||||||
if (value==null||value=="")
|
with (field)
|
||||||
{alert(alerttxt);$.find('form').attr("data-submitted",'');return false}
|
{
|
||||||
else {return true}
|
if (value==null||value=="")
|
||||||
}
|
{alert(alerttxt);$.find('form').attr("data-submitted",'');return false}
|
||||||
}
|
else {return true}
|
||||||
|
|
||||||
function validate_form(thisform) {
|
|
||||||
with (thisform)
|
|
||||||
{
|
|
||||||
if (validate_required(name,"name must be filled out!")==false)
|
|
||||||
{name.focus();return false}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$(document).ready(function($) {
|
|
||||||
$('.download_icon').find("a").attr("target", "_blank");
|
|
||||||
$('.download_icon').each(function(){
|
|
||||||
$(this).mouseenter(function(event) {
|
|
||||||
$(this).find('img').attr("src", "/images/button/download_focus.png")
|
|
||||||
});
|
|
||||||
$(this).mouseleave(function(event) {
|
|
||||||
$(this).find('img').attr("src", "/images/button/download.png")
|
|
||||||
});
|
|
||||||
});
|
|
||||||
if(navigator.appName=="Microsoft Internet Explorer"){
|
|
||||||
$("#IE_resource_sum_css").children(".line_block").css("width","45%");
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
|
function validate_form(thisform) {
|
||||||
|
with (thisform)
|
||||||
|
{
|
||||||
|
if (validate_required(name,"name must be filled out!")==false)
|
||||||
|
{name.focus();return false}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$(document).ready(function($) {
|
||||||
|
$('.download_icon').find("a").attr("target", "_blank");
|
||||||
|
$('.download_icon').each(function(){
|
||||||
|
$(this).mouseenter(function(event) {
|
||||||
|
$(this).find('img').attr("src", "/images/button/download_focus.png")
|
||||||
|
});
|
||||||
|
$(this).mouseleave(function(event) {
|
||||||
|
$(this).find('img').attr("src", "/images/button/download.png")
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
|
@ -1936,7 +1936,7 @@ zh:
|
||||||
label_forum_edit: 编辑讨论区
|
label_forum_edit: 编辑讨论区
|
||||||
label_memo_create: 发布
|
label_memo_create: 发布
|
||||||
label_memo_new: 新建主题
|
label_memo_new: 新建主题
|
||||||
label_memo_edit: 修改主题label_board_new
|
label_memo_edit: 修改主题
|
||||||
label_memo_new_from_forum: 发布帖子
|
label_memo_new_from_forum: 发布帖子
|
||||||
label_forum: 公共贴吧
|
label_forum: 公共贴吧
|
||||||
label_forum_new: 新建贴吧
|
label_forum_new: 新建贴吧
|
||||||
|
|
|
@ -2794,3 +2794,19 @@ div.repos_explain{
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-canel{
|
||||||
|
padding-bottom: 5px;
|
||||||
|
width: auto;
|
||||||
|
height: 25px;
|
||||||
|
font-family: '微软雅黑',Arial,Helvetica,sans-serif;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 3px 9px;
|
||||||
|
background: #15bccf;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #15bccf;
|
||||||
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2), 0px 0px 2px rgb(255, 255, 255) inset;
|
||||||
|
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2), 0px 1px 0px rgb(255, 255, 255);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue