Merge branch 'yuanke' into develop

This commit is contained in:
huang 2016-05-06 18:07:24 +08:00
commit 6ba4b9dfa2
8 changed files with 10 additions and 14 deletions

View File

@ -42,7 +42,7 @@
<% else %> <% else %>
<% content = activity.parent.content %> <% content = activity.parent.content %>
<% end %> <% end %>
<p><%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>content, :maxheight=>54} %></p> <p><%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>content, :maxheight=>54, :maxwordsnum=>100} %></p>
</div> </div>
<div class="ml15 mt10"> <div class="ml15 mt10">
<span class="grayTxt">发帖时间:<%= format_time(activity.created_on) %></span> <span class="grayTxt">发帖时间:<%= format_time(activity.created_on) %></span>

View File

@ -30,7 +30,7 @@
<div class="cl"></div> <div class="cl"></div>
</div> </div>
<div class="massages-content ml15"> <div class="massages-content ml15">
<p><%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>activity.description, :maxheight=>54} %></p> <p><%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>activity.description, :maxheight=>54, :maxwordsnum=>100} %></p>
</div> </div>
<div class="ml15 mt10"> <div class="ml15 mt10">
<span class="grayTxt">发布时间:<%= format_time(activity.created_on) %></span> <span class="grayTxt">发布时间:<%= format_time(activity.created_on) %></span>

View File

@ -12,6 +12,6 @@
$("#activity_description_<%= user_activity_id%>").css("max-height", heightType + "px"); $("#activity_description_<%= user_activity_id%>").css("max-height", heightType + "px");
} }
description_showwords_ellipsis(<%=user_activity_id %>); description_showwords_ellipsis(<%=user_activity_id %>,<%= maxwordsnum %>);
}); });
</script> </script>

View File

@ -42,7 +42,7 @@
<% else %> <% else %>
<% content = activity.parent.content %> <% content = activity.parent.content %>
<% end %> <% end %>
<p><%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>content, :maxheight=>54 } %></p> <p><%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>content, :maxheight=>54, :maxwordsnum=>100} %></p>
</div> </div>
<div class="ml15 mt10"> <div class="ml15 mt10">
<span class="grayTxt">发帖时间:<%= format_time(activity.created_on) %></span> <span class="grayTxt">发帖时间:<%= format_time(activity.created_on) %></span>

View File

@ -1266,7 +1266,7 @@ function expand_reply(container,btnid){
} }
//by yk 列表描述将文字和起来去掉空格多于100就显示省略号 //by yk 列表描述将文字和起来去掉空格多于100就显示省略号
function description_showwords_ellipsis(id){ function description_showwords_ellipsis(id,num){
var str = ""; var str = "";
$("#intro_content_"+id).each(function () { $("#intro_content_"+id).each(function () {
str = str + $(this).text(); str = str + $(this).text();
@ -1275,8 +1275,8 @@ function description_showwords_ellipsis(id){
//去掉空格 //去掉空格
str = str.replace(/\s/gi,''); str = str.replace(/\s/gi,'');
if(str.length > 100){ if(str.length > num){
str = str.substring(0,100)+"..."; str = str.substring(0,num)+"...";
} }
$("#intro_content_"+id).html(str); $("#intro_content_"+id).html(str);

View File

@ -134,8 +134,6 @@ a.postTypeGrey:hover {color:#269ac9;}
.homepagePostDeadline {font-size:12px; color:#888888; float:left; margin-top: 2px;} .homepagePostDeadline {font-size:12px; color:#888888; float:left; margin-top: 2px;}
.homepagePostDate {font-size:12px; color:#888888;margin-bottom: 5px;} .homepagePostDate {font-size:12px; color:#888888;margin-bottom: 5px;}
.homepagePostReply {width:710px; margin:0px auto; background-color:#f1f1f1; margin-top:10px;} .homepagePostReply {width:710px; margin:0px auto; background-color:#f1f1f1; margin-top:10px;}
.homepagePostReply ol li{list-style-type: decimal;margin-left: 20px;}
.homepagePostReply ul li{list-style-type: disc;margin-left: 20px;}
.homepagePostReplyBanner {width:708px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888;} .homepagePostReplyBanner {width:708px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888;}
.borderBottomNone {border-bottom:none !important;} .borderBottomNone {border-bottom:none !important;}

View File

@ -678,8 +678,6 @@ a.postTypeGrey:hover {color:#269ac9;}
.homepagePostReply {width:720px; margin:0px auto; background-color:#f1f1f1; margin-top:10px;} .homepagePostReply {width:720px; margin:0px auto; background-color:#f1f1f1; margin-top:10px;}
.homepagePostIntro ol li{list-style-type: decimal;margin-left: 20px;} .homepagePostIntro ol li{list-style-type: decimal;margin-left: 20px;}
.homepagePostIntro ul li{list-style-type: disc;margin-left: 20px;} .homepagePostIntro ul li{list-style-type: disc;margin-left: 20px;}
.homepagePostReply ol li{list-style-type: decimal;margin-left: 20px;}
.homepagePostReply ul li{list-style-type: disc;margin-left: 20px;}
.homepagePostReplyBanner {width:718px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888;} .homepagePostReplyBanner {width:718px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888;}
.borderBottomNone {border-bottom:none !important;} .borderBottomNone {border-bottom:none !important;}
.topBorder {border-top: 1px solid #e4e4e4;} .topBorder {border-top: 1px solid #e4e4e4;}

View File

@ -219,7 +219,9 @@ a:hover.talk_btn{ background:#2a9dc1;}
/****讨论区内页***/ /****讨论区内页***/
.mt0{ margin-top:0px;} .mt0{ margin-top:0px;}
.talk_info{ margin-left:60px; margin-top:10px;} .talk_info{ margin-left:60px; margin-top:10px;}
.issue_desc li{list-style-type: decimal;margin-left: 20px;} /*.issue_desc li{list-style-type: decimal;margin-left: 20px;}*/
.issue_desc ol li{list-style-type: decimal;margin-left: 20px;}
.issue_desc ul li{list-style-type: disc;margin-left: 20px;}
.talk_info img {max-width:100%;} .talk_info img {max-width:100%;}
a.talk_edit{ color:#426e9a; margin-right:5px;} a.talk_edit{ color:#426e9a; margin-right:5px;}
a:hover.talk_edit{ color:#ff5722;} a:hover.talk_edit{ color:#ff5722;}
@ -971,8 +973,6 @@ a:hover.Reply_pic{border:1px solid #64bdd9;}
} }
.homepagePostIntro ol li{list-style-type: decimal;margin-left: 20px;} .homepagePostIntro ol li{list-style-type: decimal;margin-left: 20px;}
.homepagePostIntro ul li{list-style-type: disc;margin-left: 20px;} .homepagePostIntro ul li{list-style-type: disc;margin-left: 20px;}
.homepagePostReply ol li{list-style-type: decimal;margin-left: 20px;}
.homepagePostReply ul li{list-style-type: disc;margin-left: 20px;}
.topBorder { .topBorder {
border-top: 1px solid #E4E4E4; border-top: 1px solid #E4E4E4;
} }