{%- macro event_info(notify) %} {% set sender = notify.sender %} {% set type = notify.event_type %} {% set info = notify.event_info %} {% if type == 0 %}
未知类型
{% elseif type == 147 %} {% set course_url = url({'for':'home.course.show','id':info.course.id}) %}{{ sender.name }} 喜欢了你在课程 {{ info.course.title }} 中的咨询
咨询内容:{{ info.consult.question }}
{% elseif type == 167 %} {% set course_url = url({'for':'home.course.show','id':info.course.id}) %}{{ sender.name }} 喜欢了你在课程 {{ info.course.title }} 中的评价
评价内容:{{ info.review.content }}
{% elseif type == 184 %} {% set article_url = url({'for':'home.article.show','id':info.article.id}) %}你的文章 {{ info.article.title }} 审核已通过
{% elseif type == 185 %} {% set article_url = url({'for':'home.article.show','id':info.article.id}) %}你的文章 {{ info.article.title }} 审核未通过
拒绝原因:{{ info.reason }}
{% elseif type == 187 %} {% set article_url = url({'for':'home.article.show','id':info.article.id}) %}{{ sender.name }} 评论了你的文章 {{ info.article.title }}
评论内容:{{ info.comment.content }}
{% elseif type == 188 %} {% set article_url = url({'for':'home.article.show','id':info.article.id}) %}{{ sender.name }} 收藏了你的文章 {{ info.article.title }}
{% elseif type == 189 %} {% set article_url = url({'for':'home.article.show','id':info.article.id}) %}{{ sender.name }} 喜欢了你的文章 {{ info.article.title }}
{% elseif type == 204 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}你的提问 {{ info.question.title }} 审核已通过
{% elseif type == 205 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}你的提问 {{ info.question.title }} 审核未通过
拒绝原因:{{ info.reason }}
{% elseif type == 206 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}{{ sender.name }} 回答了你的提问 {{ info.question.title }}
回答内容:{{ info.answer.summary }}
{% elseif type == 208 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}{{ sender.name }} 收藏了你的问题 {{ info.question.title }}
{% elseif type == 209 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}{{ sender.name }} 喜欢了你的问题 {{ info.question.title }}
{% elseif type == 224 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}你对问题 {{ info.question.title }} 的回答,审核已通过
回答内容:{{ info.answer.summary }}
{% elseif type == 225 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}你对问题 {{ info.question.title }} 的回答,审核未通过
回答内容:{{ info.answer.summary }}
{% elseif type == 228 %} {% set question_url = url({'for':'home.question.show','id':info.question.id}) %}{{ sender.name }} 喜欢了你对问题 {{ info.question.title }} 的回答
回答内容:{{ info.answer.summary }}
{% elseif type == 506 %}{{ sender.name }} 回复了你的评论:{{ info.comment.content }}
回复内容:{{ info.reply.content }}
{% elseif type == 507 %}{{ sender.name }} 喜欢了你的评论:{{ info.comment.content }}
{% endif %} {%- endmacro %}