diff --git a/app/api/mobile/entities/activity.rb b/app/api/mobile/entities/activity.rb index 3ba82bcb9..a90ff323d 100644 --- a/app/api/mobile/entities/activity.rb +++ b/app/api/mobile/entities/activity.rb @@ -41,11 +41,11 @@ module Mobile end when :description if ac.act_type == "HomeworkCommon" || ac.act_type == "Issue" || ac.act_type == "News" - ac.act.description unless ac.nil? || ac.act.nil? + strip_html(ac.act.description) unless ac.nil? || ac.act.nil? elsif ac.act_type == "Message" || ac.act_type == "BlogComment" - ac.act.content unless ac.nil? || ac.act.nil? + strip_html(ac.act.content) unless ac.nil? || ac.act.nil? elsif ac.act_type == "JournalsForMessage" - ac.act.notes unless ac.nil? || ac.act.nil? + strip_html(ac.act.notes) unless ac.nil? || ac.act.nil? end when :latest_update time_from_now ac.updated_at unless ac.nil? diff --git a/public/assets/wechat/activities.html b/public/assets/wechat/activities.html index dbf5e8b27..1bab8dfb4 100644 --- a/public/assets/wechat/activities.html +++ b/public/assets/wechat/activities.html @@ -5,33 +5,35 @@
-
+
-
- - -
- -
-
- 迟交扣分:{{act.homework_common_detail.late_penalty}}分 匿评开启时间:{{act.homework_common_detail.evaluation_start}}
- 缺评扣分:{{act.homework_common_detail.absence_penalty}}分/作品 匿评关闭时间:{{act.homework_common_detail.evaluation_end}} +
+
+ + +
+ +
+
+ 迟交扣分:{{act.homework_common_detail.late_penalty}}分 匿评开启时间:{{act.homework_common_detail.evaluation_start}}
+ 缺评扣分:{{act.homework_common_detail.absence_penalty}}分/作品 匿评关闭时间:{{act.homework_common_detail.evaluation_end}} +
+ +
- -
{{act.activity_type_name}} {{act.latest_update}} - - {{act.reply_count}} -
-
{{act.praise_count}}
-
{{act.praise_count}}
+ 回复 + {{act.reply_count}} +
+
{{act.praise_count}}
+
{{act.praise_count}}
@@ -39,26 +41,28 @@
-
+
-
- - -
- -
-
+ - -
{{act.activity_type_name}} {{act.latest_update}} - - {{act.reply_count}} -
-
{{act.praise_count}}
-
{{act.praise_count}}
+ 回复 + {{act.reply_count}} +
+
{{act.praise_count}}
+
{{act.praise_count}}
@@ -66,26 +70,28 @@
-
+
-
- - -
- -
-
+ - -
{{act.activity_type_name}} {{act.latest_update}} - - {{act.reply_count}} -
-
{{act.praise_count}}
-
{{act.praise_count}}
+ 回复 + {{act.reply_count}} +
+
{{act.praise_count}}
+
{{act.praise_count}}
@@ -109,28 +115,30 @@
-
+
-
- - -
- -
-
- 状态:{{act.issue_detail.issue_status}} 优先级:{{act.issue_detail.issue_priority}}
- 指派给:{{act.issue_detail.issue_assigned_to}} 完成度:{{act.issue_detail.done_ratio}}% +
+
+ + +
+ +
+
+ 状态:{{act.issue_detail.issue_status}} 优先级:{{act.issue_detail.issue_priority}}
+ 指派给:{{act.issue_detail.issue_assigned_to}} 完成度:{{act.issue_detail.done_ratio}}% +
+ +
- -
{{act.activity_type_name}} {{act.latest_update}} - - {{act.reply_count}} -
-
{{act.praise_count}}
-
{{act.praise_count}}
+ 回复 + {{act.reply_count}} +
+
{{act.praise_count}}
+
{{act.praise_count}}
@@ -139,26 +147,28 @@
-
+
-
- - -
- -
-
+ - -
{{act.activity_type_name}} {{act.latest_update}} - - {{act.reply_count}} -
-
{{act.praise_count}}
-
{{act.praise_count}}
+ 回复 + {{act.reply_count}} +
+
{{act.praise_count}}
+
{{act.praise_count}}
@@ -181,25 +191,27 @@
-
+
-
- - -
-
-
-

+
+
+ + +
+
+
+
+
+ +
- -
{{act.latest_update}} - - {{act.reply_count}} -
-
{{act.praise_count}}
-
{{act.praise_count}}
+ 回复 + {{act.reply_count}} +
+
{{act.praise_count}}
+
{{act.praise_count}}
@@ -208,25 +220,27 @@
-
+
-
- - -
- -
-
+ - -
{{act.latest_update}} - - {{act.reply_count}} -
-
{{act.praise_count}}
-
{{act.praise_count}}
+ 回复 + {{act.reply_count}} +
+
{{act.praise_count}}
+
{{act.praise_count}}
diff --git a/public/assets/wechat/blog_detail.html b/public/assets/wechat/blog_detail.html index ce7945872..fa3a9f341 100644 --- a/public/assets/wechat/blog_detail.html +++ b/public/assets/wechat/blog_detail.html @@ -1,46 +1,48 @@ -
-
-
-
{{blog.title}}      
-
{{blog.user.realname}}发表博客
-
-
-
+
+
+
+
+
{{blog.title}}
+
{{blog.user.realname}}发表博客
+
+
+
+
+
+ {{blog.created_at}} +
-
- {{blog.created_at}} -
-
-
-
回复 ({{blog.comment_count}})
-
已赞 ({{blog.praise_count}})
-
赞 ({{blog.praise_count}})
-
-
-
-
-
-
- -

-                        
{{journal.lasted_comment}}
-
回复
+
+
回复 ({{blog.comment_count}})
+
已赞 ({{blog.praise_count}})
+
赞 ({{blog.praise_count}})
+
+
+
+
+
+
+ +

+                            
{{journal.lasted_comment}}
+
回复
+
+
-
-
-
-
- -
- - +
+
+ +
+ + +
+ +
- -
diff --git a/public/assets/wechat/course_discussion.html b/public/assets/wechat/course_discussion.html index f464369ae..d1b65e629 100644 --- a/public/assets/wechat/course_discussion.html +++ b/public/assets/wechat/course_discussion.html @@ -1,52 +1,55 @@ -
-
-
-
{{discussion.subject}}      
- - - - - - - -
发布者:{{discussion.user.realname}}
来   源:{{discussion.course_project_name}}  |  课程问答区
-
-
-
-
- {{discussion.created_on}} -
-
-
-
回复 ({{discussion.replies_count}})
-
已赞 ({{discussion.praise_count}})
-
赞 ({{discussion.praise_count}})
-
-
-
-
-
-
- -

-                        
{{journal.lasted_comment}}
-
回复
+
+
+
+
+
+
{{discussion.subject}}
+ + + + + + + +
发布者:{{discussion.user.realname}}
来   源:{{discussion.course_project_name}}  |  课程问答区
+
+
+ {{discussion.created_on}} +
-
-
-
-
- -
- - +
+
回复 ({{discussion.replies_count}})
+
已赞 ({{discussion.praise_count}})
+
赞 ({{discussion.praise_count}})
+
+
+
+
+
+
+ +

+                            
{{journal.lasted_comment}}
+
回复
+
+
+
+
+
+
+
+ +
+ + +
+ +
- -
diff --git a/public/assets/wechat/course_notice.html b/public/assets/wechat/course_notice.html index ac1f7dcea..c10763bf8 100644 --- a/public/assets/wechat/course_notice.html +++ b/public/assets/wechat/course_notice.html @@ -1,5 +1,6 @@ +
@@ -51,3 +52,4 @@
+
\ No newline at end of file diff --git a/public/assets/wechat/homework_detail.html b/public/assets/wechat/homework_detail.html index 41ff56f57..2783bd317 100644 --- a/public/assets/wechat/homework_detail.html +++ b/public/assets/wechat/homework_detail.html @@ -1,5 +1,6 @@ +
@@ -56,4 +57,5 @@
-
\ No newline at end of file +
+
\ No newline at end of file diff --git a/public/assets/wechat/issue_detail.html b/public/assets/wechat/issue_detail.html index 08eb9a39d..035a7c98d 100644 --- a/public/assets/wechat/issue_detail.html +++ b/public/assets/wechat/issue_detail.html @@ -1,5 +1,6 @@ +
@@ -55,3 +56,4 @@
+
\ No newline at end of file diff --git a/public/assets/wechat/jour_message_detail.html b/public/assets/wechat/jour_message_detail.html index f813d19c1..5ccbf6248 100644 --- a/public/assets/wechat/jour_message_detail.html +++ b/public/assets/wechat/jour_message_detail.html @@ -1,44 +1,46 @@ -
-
-
-
{{message.user.realname}}给您留言了
-
{{message.created_on}}
-
-
-
+
+
+
+
+
{{message.user.realname}}给您留言了
+
{{message.created_on}}
+
+
+
+
+
-
-
-
-
回复 ({{message.reply_count}})
-
已赞 ({{message.praise_count}})
-
赞 ({{message.praise_count}})
-
-
+
+
回复 ({{message.reply_count}})
+
已赞 ({{message.praise_count}})
+
赞 ({{message.praise_count}})
+
+
-
-
-
-
- -

-                        
{{journal.lasted_comment}}
-
回复
+
+
+
+
+ +

+                            
{{journal.lasted_comment}}
+
回复
+
+
-
-
-
-
- -
- - +
+
+ +
+ + +
+ +
- -
diff --git a/public/assets/wechat/project_discussion.html b/public/assets/wechat/project_discussion.html index 31aa0b16a..be639c1a0 100644 --- a/public/assets/wechat/project_discussion.html +++ b/public/assets/wechat/project_discussion.html @@ -1,9 +1,10 @@ +
-
{{discussion.subject}}      
+
{{discussion.subject}}
@@ -38,7 +39,7 @@ -
+
@@ -50,4 +51,5 @@
-
\ No newline at end of file + + \ No newline at end of file diff --git a/public/images/wechat/icon_list.gif b/public/images/wechat/icon_list.gif index 1d7dcb061..8b38366c6 100755 Binary files a/public/images/wechat/icon_list.gif and b/public/images/wechat/icon_list.gif differ diff --git a/public/images/wechat/icon_list2.gif b/public/images/wechat/icon_list2.gif new file mode 100755 index 000000000..1d7dcb061 Binary files /dev/null and b/public/images/wechat/icon_list2.gif differ diff --git a/public/images/wechat/w_praise.png b/public/images/wechat/w_praise.png new file mode 100755 index 000000000..6c0a5f7eb Binary files /dev/null and b/public/images/wechat/w_praise.png differ diff --git a/public/images/wechat/w_praised.png b/public/images/wechat/w_praised.png new file mode 100755 index 000000000..3b80c9c0b Binary files /dev/null and b/public/images/wechat/w_praised.png differ diff --git a/public/images/wechat/w_reply.png b/public/images/wechat/w_reply.png new file mode 100755 index 000000000..d18e19508 Binary files /dev/null and b/public/images/wechat/w_reply.png differ diff --git a/public/stylesheets/weui/weixin.css b/public/stylesheets/weui/weixin.css index 5f0e5343f..ba3eac3df 100644 --- a/public/stylesheets/weui/weixin.css +++ b/public/stylesheets/weui/weixin.css @@ -52,7 +52,7 @@ a.underline {text-decoration:underline;} .fl {float:left;} .fr {float:right;} .cl {clear:both; overflow:hidden;} -.post-content {width:100%; font-size:13px; height:90px; overflow:hidden; word-break:break-all; word-wrap:break-word;} +.post-content {width:100%; font-size:13px; line-height:18px; height:90px; overflow:hidden; word-break:break-all; word-wrap:break-word;} .post-content img {max-width:100%;} .post-interactive {width:100%; height:35px; line-height:35px; vertical-align:middle; border-top:1px solid #e6e6e6; background-color:#f8f9fb;} .post-interactive-column,
发布者: {{discussion.user.realname}}