<% if @ctivity.try(:author).try(:realname) == ' ' %>
<%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %>
<% else %>
@@ -16,13 +16,13 @@
<%= link_to activity.title.to_s, user_blog_blog_comment_path(:user_id=>activity.author_id,:blog_id=>activity.blog_id,:id=>activity.id,:in_act => true), :class => "postGrey" %>
+ <% if activity.locked%>
+
+ <% end%>
+ <% if activity.sticky == 1%>
+ 置顶
+ <% end%>
- <% if activity.sticky == 1%>
-
置顶
- <% end%>
- <% if activity.locked%>
-
- <% end%>
@@ -83,7 +83,7 @@
<%= link_to image_tag(url_to_avatar(comment.author), :width => "33", :height => "33"), user_path(comment.author_id), :alt => "用户头像" %>
-
+
<% if comment.try(:author).try(:realname) == ' ' %>
<%= link_to comment.try(:author), user_path(comment.author_id), :class => "newsBlue mr10 f14" %>
<% else %>
diff --git a/app/views/users/_user_homework_detail.html.erb b/app/views/users/_user_homework_detail.html.erb
index 4bc5bfaa5..e561c6363 100644
--- a/app/views/users/_user_homework_detail.html.erb
+++ b/app/views/users/_user_homework_detail.html.erb
@@ -5,7 +5,7 @@
<%=link_to image_tag(url_to_avatar(homework_common.user),width:"50px", height: "50px"), user_activities_path(homework_common.user.id)%>
-
+
<%= link_to homework_common.user.show_name, user_activities_path(homework_common.user_id), :class => "newsBlue mr15"%>
TO
<%= link_to homework_common.course.name, course_path(homework_common.course_id), :class => "newsBlue ml15"%>
diff --git a/app/views/users/user_system_messages.html.erb b/app/views/users/user_system_messages.html.erb
index 86ae56cc8..57c6eb573 100644
--- a/app/views/users/user_system_messages.html.erb
+++ b/app/views/users/user_system_messages.html.erb
@@ -7,7 +7,7 @@
<%= image_tag("/images/trustie_logo1.png", :width => "50", :height => "50") %>
-
+
Trustie平台 发布了系统消息:
<%= system_message.subject.nil? ? "系统消息" : system_message.subject %>
diff --git a/config/menu.yml b/config/menu.yml
index d129f7aff..3951f836b 100644
--- a/config/menu.yml
+++ b/config/menu.yml
@@ -5,7 +5,7 @@ button:
url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d&redirect_uri=https://www.trustie.net/assets/wechat/app.html#/activities?response_type=code&scope=snsapi_base&state=123#wechat_redirect"
-
type: "click"
- name: "意见返馈"
+ name: "意见反馈"
key: "FEEDBACK"
-
name: "更多"
diff --git a/db/schema.rb b/db/schema.rb
index a6587086e..02a79aa9b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,8 +11,12 @@
#
# It's strongly recommended to check this file into your version control system.
+<<<<<<< HEAD
ActiveRecord::Schema.define(:version => 20160513120002) do
+=======
+ActiveRecord::Schema.define(:version => 20160513021204) do
+>>>>>>> weixin_guange
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
diff --git a/public/assets/wechat/activities.html b/public/assets/wechat/activities.html
index f0f8e9c92..b4e582336 100644
--- a/public/assets/wechat/activities.html
+++ b/public/assets/wechat/activities.html
@@ -17,18 +17,18 @@
-
{{act.subject|safeHtml}}
+
-
迟交扣分:{{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.reply_count}}
{{act.praise_count}}
{{act.praise_count}}
@@ -46,7 +46,7 @@
-
{{act.subject|safeHtml}}
+
@@ -54,8 +54,8 @@
{{act.activity_type_name}}
{{act.latest_update}}
-
-
{{act.reply_count}}
+
+
{{act.reply_count}}
{{act.praise_count}}
{{act.praise_count}}
@@ -73,7 +73,7 @@
-
{{act.subject|safeHtml}}
+
@@ -81,8 +81,8 @@
{{act.activity_type_name}}
{{act.latest_update}}
-
-
{{act.reply_count}}
+
+
{{act.reply_count}}
{{act.praise_count}}
{{act.praise_count}}
@@ -98,8 +98,8 @@
-
{{act.author.realname}}创建了{{act.course_project_name}}
-
+
{{act.author.realname}}创建了{{act.course_project_name}} | 课程
+
{{act.latest_update}}
@@ -116,7 +116,7 @@
-
{{act.subject|safeHtml}}
+
状态:{{act.issue_detail.issue_status}} 优先级:{{act.issue_detail.issue_priority}}
@@ -126,8 +126,8 @@
{{act.activity_type_name}}
{{act.latest_update}}
-
-
{{act.reply_count}}
+
+
{{act.reply_count}}
{{act.praise_count}}
{{act.praise_count}}
@@ -146,7 +146,7 @@
-
{{act.subject|safeHtml}}
+
@@ -154,8 +154,8 @@
{{act.activity_type_name}}
{{act.latest_update}}
-
-
{{act.reply_count}}
+
+
{{act.reply_count}}
{{act.praise_count}}
{{act.praise_count}}
@@ -170,8 +170,8 @@
-
{{act.author.realname}}创建了{{act.course_project_name}}
-
+
{{act.author.realname}}创建了{{act.course_project_name}} | 项目
+
{{act.latest_update}}
@@ -195,8 +195,8 @@
点击展开
{{act.latest_update}}
-
-
{{act.reply_count}}
+
+
{{act.reply_count}}
{{act.praise_count}}
{{act.praise_count}}
@@ -215,15 +215,15 @@
博客
-
{{act.subject|safeHtml}}
+
点击展开
{{act.latest_update}}
-
-
{{act.reply_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 0eaa2cda7..514a2c94e 100644
--- a/public/assets/wechat/blog_detail.html
+++ b/public/assets/wechat/blog_detail.html
@@ -38,7 +38,7 @@
-
+
diff --git a/public/assets/wechat/course_discussion.html b/public/assets/wechat/course_discussion.html
index e36fb3e27..d8c50364d 100644
--- a/public/assets/wechat/course_discussion.html
+++ b/public/assets/wechat/course_discussion.html
@@ -44,7 +44,7 @@
-
+
diff --git a/public/assets/wechat/course_notice.html b/public/assets/wechat/course_notice.html
index 3b7965733..c426f2794 100644
--- a/public/assets/wechat/course_notice.html
+++ b/public/assets/wechat/course_notice.html
@@ -44,7 +44,7 @@
-
+
diff --git a/public/assets/wechat/homework_detail.html b/public/assets/wechat/homework_detail.html
index fec0c4cff..1af5e185d 100644
--- a/public/assets/wechat/homework_detail.html
+++ b/public/assets/wechat/homework_detail.html
@@ -16,10 +16,10 @@
-
迟交扣分:{{homework.late_penalty}}分
- 缺评扣分:{{homework.absence_penalty}}分/作品
- 匿评开启时间:{{homework.evaluation_start}}
- 匿评关闭时间:{{homework.evaluation_end}}
+
迟交扣分:{{homework.late_penalty}}分
+
缺评扣分:{{homework.absence_penalty}}分/作品
+
匿评开启时间:{{homework.evaluation_start}}
+
匿评关闭时间:{{homework.evaluation_end}}
{{homework.publish_time}}
@@ -50,7 +50,7 @@
-
+