解决Chrome浏览器等比缩放后样式错乱问题
This commit is contained in:
parent
d0d736d55c
commit
aa87ef6f1b
|
@ -92,132 +92,134 @@
|
||||||
showNormalImage('message_description_<%= @topic.id %>');
|
showNormalImage('message_description_<%= @topic.id %>');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div class="postRightContainer ml10" onmouseover="$('#message_setting_<%= @topic.id%>').show();" onmouseout="$('#message_setting_<%= @topic.id%>').hide();">
|
<div class="homepageRight mt0">
|
||||||
<div class="postThemeContainer">
|
<div class="postRightContainer ml10" onmouseover="$('#message_setting_<%= @topic.id%>').show();" onmouseout="$('#message_setting_<%= @topic.id%>').hide();">
|
||||||
<div class="postDetailPortrait">
|
<div class="postThemeContainer">
|
||||||
<%= link_to image_tag(url_to_avatar(@topic.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@topic.author) %>
|
<div class="postDetailPortrait">
|
||||||
</div>
|
<%= link_to image_tag(url_to_avatar(@topic.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@topic.author) %>
|
||||||
<div class="postThemeWrap">
|
|
||||||
<% if @topic.author.id == User.current.id%>
|
|
||||||
<div class="homepagePostSetting" id="message_setting_<%= @topic.id%>" style="display: none">
|
|
||||||
<ul>
|
|
||||||
<li class="homepagePostSettingIcon">
|
|
||||||
<ul class="homepagePostSettiongText">
|
|
||||||
<li>
|
|
||||||
<%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'postOptionLink') if @message.editable_by?(User.current) %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic},:method => :post,
|
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
|
||||||
:class => 'postOptionLink'
|
|
||||||
) if @message.destroyable_by?(User.current) %>
|
|
||||||
<%#= link_to "发送",messages_join_org_subfield_path(:message_id => @topic.id) , :remote=> true,:class => 'postOptionLink' %>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<%end%>
|
|
||||||
<div class="postDetailTitle fl">
|
|
||||||
<a href="javascript:void(0);" class="f14 linkGrey4 fb" style="overflow:hidden;">主题: <%= @topic.subject%></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="postThemeWrap">
|
||||||
|
<% if @topic.author.id == User.current.id%>
|
||||||
|
<div class="homepagePostSetting" id="message_setting_<%= @topic.id%>" style="display: none">
|
||||||
|
<ul>
|
||||||
|
<li class="homepagePostSettingIcon">
|
||||||
|
<ul class="homepagePostSettiongText">
|
||||||
|
<li>
|
||||||
|
<%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'postOptionLink') if @message.editable_by?(User.current) %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic},:method => :post,
|
||||||
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
|
:class => 'postOptionLink'
|
||||||
|
) if @message.destroyable_by?(User.current) %>
|
||||||
|
<%#= link_to "发送",messages_join_org_subfield_path(:message_id => @topic.id) , :remote=> true,:class => 'postOptionLink' %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<%end%>
|
||||||
|
<div class="postDetailTitle fl">
|
||||||
|
<a href="javascript:void(0);" class="f14 linkGrey4 fb" style="overflow:hidden;">主题: <%= @topic.subject%></a>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
|
||||||
<div class="postDetailCreater">
|
<div class="postDetailCreater">
|
||||||
<% if @topic.try(:author).try(:realname) == ' ' %>
|
<% if @topic.try(:author).try(:realname) == ' ' %>
|
||||||
<%= link_to @topic.try(:author), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
<%= link_to @topic.try(:author), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to @topic.try(:author).try(:realname), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
<%= link_to @topic.try(:author).try(:realname), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="postDetailDate mb5"><%= format_time( @topic.created_on)%></div>
|
<div class="postDetailDate mb5"><%= format_time( @topic.created_on)%></div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div class="memo-content upload_img break_word" id="message_description_<%= @topic.id %>" style="word-break: break-all; word-wrap:break-word;margin-bottom: 0px !important;" >
|
<div class="memo-content upload_img break_word" id="message_description_<%= @topic.id %>" style="word-break: break-all; word-wrap:break-word;margin-bottom: 0px !important;" >
|
||||||
<%= @topic.content.html_safe%>
|
<%= @topic.content.html_safe%>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class=" fl" style="width: 600px">
|
||||||
|
<%= link_to_attachments_course @topic, :author => false %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div class=" fl" style="width: 600px">
|
|
||||||
<%= link_to_attachments_course @topic, :author => false %>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
<div class="homepagePostReply">
|
||||||
<div class="cl"></div>
|
<% unless @replies.empty? %>
|
||||||
<div class="homepagePostReply">
|
<div class="homepagePostReplyBanner">
|
||||||
<% unless @replies.empty? %>
|
<div class="homepagePostReplyBannerCount">回复(<%=@reply_count %>)</div>
|
||||||
<div class="homepagePostReplyBanner">
|
<div class="homepagePostReplyBannerTime"></div>
|
||||||
<div class="homepagePostReplyBannerCount">回复(<%=@reply_count %>)</div>
|
<!-- <div class="homepagePostReplyBannerMore">
|
||||||
<div class="homepagePostReplyBannerTime"></div>
|
|
||||||
<!-- <div class="homepagePostReplyBannerMore">
|
|
||||||
<%# if @reply_count > 2%>
|
<%# if @reply_count > 2%>
|
||||||
<a href="javascript:void(0);" class="replyGrey" id="reply_btn_<%#= @topic.id%>" onclick="expand_reply('#reply_div_<%#= @topic.id %>','#reply_btn_<%#= @topic.id%>')" data-count="<%#= @reply_count %>" data-init="0" >点击展开更多回复</a>
|
<a href="javascript:void(0);" class="replyGrey" id="reply_btn_<%#= @topic.id%>" onclick="expand_reply('#reply_div_<%#= @topic.id %>','#reply_btn_<%#= @topic.id%>')" data-count="<%#= @reply_count %>" data-init="0" >点击展开更多回复</a>
|
||||||
<%# end %>
|
<%# end %>
|
||||||
</div>-->
|
</div>-->
|
||||||
</div>
|
|
||||||
<div class="" id="reply_div_<%= @topic.id %>">
|
|
||||||
<% @replies.each_with_index do |reply,i| %>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function(){
|
|
||||||
showNormalImage('reply_message_description_<%= reply.id %>');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<div class="homepagePostReplyContainer" onmouseover="$('#reply_edit_menu_<%= reply.id%>').show();" onmouseout="$('#reply_edit_menu_<%= reply.id%>').hide();">
|
|
||||||
<div class="homepagePostReplyPortrait">
|
|
||||||
<%= link_to image_tag(url_to_avatar(reply.author), :width => 33,:height => 33), user_path(reply.author) %>
|
|
||||||
</div>
|
|
||||||
<div class="homepagePostReplyDes">
|
|
||||||
<div class="homepagePostReplyPublisher">
|
|
||||||
<% if reply.try(:author).try(:realname) == ' ' %>
|
|
||||||
<%= link_to reply.try(:author), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %>
|
|
||||||
<% else %>
|
|
||||||
<%= link_to reply.try(:author).try(:realname), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<div class="homepagePostReplyContent upload_img break_word table_maxWidth" id="reply_message_description_<%= reply.id %>">
|
|
||||||
<%= reply.content.html_safe%>
|
|
||||||
</div>
|
|
||||||
<div style="margin-top: -7px; margin-bottom: 5px">
|
|
||||||
<%= format_time(reply.created_on) %>
|
|
||||||
<div class="fr" id="reply_edit_menu_<%= reply.id%>" style="display: none">
|
|
||||||
<%= link_to(
|
|
||||||
l(:button_reply),
|
|
||||||
{:action => 'quote', :id => reply},
|
|
||||||
:remote => true,
|
|
||||||
:method => 'get',
|
|
||||||
:class => 'fr newsBlue',
|
|
||||||
:title => l(:button_reply)) if !@topic.locked? && authorize_for('messages', 'reply') %>
|
|
||||||
<%= link_to(
|
|
||||||
l(:button_delete),
|
|
||||||
{:action => 'destroy', :id => reply},
|
|
||||||
:method => :post,
|
|
||||||
:class => 'fr newsGrey mr10',
|
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
|
||||||
:title => l(:button_delete)
|
|
||||||
) if reply.destroyable_by?(User.current) %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p id="reply_message_<%= reply.id%>"></p>
|
|
||||||
</div>
|
|
||||||
<div class="cl"></div>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<% if !@topic.locked? && authorize_for('messages', 'reply') %>
|
|
||||||
<div class="talkWrapMsg" nhname="about_talk_reply">
|
|
||||||
<em class="talkWrapArrow"></em>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<div class="talkConIpt ml5 mb10" id="reply<%= @topic.id %>">
|
|
||||||
<%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message_form'} do |f| %>
|
|
||||||
<%= render :partial => 'form_project', :locals => {:f => f, :replying => true} %>
|
|
||||||
<%= link_to l(:button_cancel), "javascript:void(0)", :onclick => 'project_board_cancel_message_replay();', :class => "blue_btn grey_btn fr c_white mt10 mr5" %>
|
|
||||||
<%= link_to l(:button_submit), "javascript:void(0)", :onclick => 'project_board_submit_message_replay();', :class => "blue_btn fr c_white mt10", :style => "margin-left: 50px;" %>
|
|
||||||
<% end %>
|
|
||||||
<div class="cl"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="" id="reply_div_<%= @topic.id %>">
|
||||||
<% end %>
|
<% @replies.each_with_index do |reply,i| %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
showNormalImage('reply_message_description_<%= reply.id %>');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div class="homepagePostReplyContainer" onmouseover="$('#reply_edit_menu_<%= reply.id%>').show();" onmouseout="$('#reply_edit_menu_<%= reply.id%>').hide();">
|
||||||
|
<div class="homepagePostReplyPortrait">
|
||||||
|
<%= link_to image_tag(url_to_avatar(reply.author), :width => 33,:height => 33), user_path(reply.author) %>
|
||||||
|
</div>
|
||||||
|
<div class="homepagePostReplyDes">
|
||||||
|
<div class="homepagePostReplyPublisher">
|
||||||
|
<% if reply.try(:author).try(:realname) == ' ' %>
|
||||||
|
<%= link_to reply.try(:author), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to reply.try(:author).try(:realname), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="homepagePostReplyContent upload_img break_word table_maxWidth" id="reply_message_description_<%= reply.id %>">
|
||||||
|
<%= reply.content.html_safe%>
|
||||||
|
</div>
|
||||||
|
<div style="margin-top: -7px; margin-bottom: 5px">
|
||||||
|
<%= format_time(reply.created_on) %>
|
||||||
|
<div class="fr" id="reply_edit_menu_<%= reply.id%>" style="display: none">
|
||||||
|
<%= link_to(
|
||||||
|
l(:button_reply),
|
||||||
|
{:action => 'quote', :id => reply},
|
||||||
|
:remote => true,
|
||||||
|
:method => 'get',
|
||||||
|
:class => 'fr newsBlue',
|
||||||
|
:title => l(:button_reply)) if !@topic.locked? && authorize_for('messages', 'reply') %>
|
||||||
|
<%= link_to(
|
||||||
|
l(:button_delete),
|
||||||
|
{:action => 'destroy', :id => reply},
|
||||||
|
:method => :post,
|
||||||
|
:class => 'fr newsGrey mr10',
|
||||||
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
|
:title => l(:button_delete)
|
||||||
|
) if reply.destroyable_by?(User.current) %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p id="reply_message_<%= reply.id%>"></p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<% if !@topic.locked? && authorize_for('messages', 'reply') %>
|
||||||
|
<div class="talkWrapMsg" nhname="about_talk_reply">
|
||||||
|
<em class="talkWrapArrow"></em>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="talkConIpt ml5 mb10" id="reply<%= @topic.id %>">
|
||||||
|
<%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message_form'} do |f| %>
|
||||||
|
<%= render :partial => 'form_project', :locals => {:f => f, :replying => true} %>
|
||||||
|
<%= link_to l(:button_cancel), "javascript:void(0)", :onclick => 'project_board_cancel_message_replay();', :class => "blue_btn grey_btn fr c_white mt10 mr5" %>
|
||||||
|
<%= link_to l(:button_submit), "javascript:void(0)", :onclick => 'project_board_submit_message_replay();', :class => "blue_btn fr c_white mt10", :style => "margin-left: 50px;" %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue