微信最新动态修改
This commit is contained in:
parent
6f9fcbe1a7
commit
77e11fe0fe
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>react js</title>
|
||||
<title>最新动态</title>
|
||||
<meta charset='utf-8' />
|
||||
<meta name="keywords" content="" />
|
||||
<meta name="description" content="" />
|
||||
|
@ -20,65 +20,65 @@
|
|||
|
||||
<!-- 模板1开始,可以使用script(type设置为text/html)来存放模板片段,并且用id标示 -->
|
||||
<script id="t:result-list" type="text/html">
|
||||
<! for(var i =0; i <activities.length; ++i){ !>
|
||||
<! var container_type = "course"; var act_type = "homework"; !>
|
||||
<! if (container_type == "course") { !>
|
||||
<! if (act_type == "homework") { !>
|
||||
<! for(var i =0; i < activities.length; ++i){ !>
|
||||
<! var container_type = activities[i].container_type; var act_type = activities[i].act_type; !>
|
||||
<! if (container_type == "Course") { !>
|
||||
<! if (act_type == "HomeworkCommon") { !>
|
||||
<!--homework -->
|
||||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="<!=activities[i].author.img_url!>" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb"><!=activities[i].subject!></span></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to<a herf="javascript:void(0);" class="ml10">我的私有课程 | 课程作业</a></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to<a herf="javascript:void(0);" class="ml10"><!=activities[i].course_project_name!> | <!=activities[i].activity_type_name!></a></div>
|
||||
<div class="cl"></div>
|
||||
<div class="post-content c-grey2 mt10">
|
||||
<div class="post-all-content"><!:=activities[i].description!><br />
|
||||
<span class="mr15">迟交扣分:10分</span> 匿评开启时间:2016-03-14 00:00<br />
|
||||
<span class="mr15">缺评扣分:5分/作品</span> 匿评关闭时间:2016-03-21 23:59</div>
|
||||
<span class="mr15">迟交扣分:<!:=activities[i].homework_common_detail.late_penalty!>分</span> 匿评开启时间:<!:=activities[i].homework_common_detail.evaluation_start!><br />
|
||||
<span class="mr15">缺评扣分:<!:=activities[i].homework_common_detail.absence_penalty!>分/作品</span> 匿评关闭时间:<!:=activities[i].homework_common_detail.evaluation_end!></div>
|
||||
</div>
|
||||
<a herf="javascript:void(0);" class="link-blue f13 fl mt5 post-more undis" style="text-decoration:underline">点击展开</a>
|
||||
<div class="cl"></div>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].created_on!></span>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].latest_update!></span>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive">
|
||||
<div class="post-interactive-column c-grey2">回复<!=activities[i].reply_num!></div>
|
||||
<div class="post-interactive-column c-grey2">赞<!=activities[i].praise_num!></div>
|
||||
<div class="post-interactive-column c-grey2">回复 (<!=activities[i].reply_count!>)</div>
|
||||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<! } else if (act_type == "news") { !>
|
||||
<! } else if (act_type == "News") { !>
|
||||
<!-- course news -->
|
||||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="<!=activities[i].author.img_url!>" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb"><!=activities[i].subject!></span></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to<a herf="javascript:void(0);" class="ml10">我的私有课程 | 课程讨论区</a></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to<!=activities[i].course_project_name!> | <!=activities[i].activity_type_name!></div>
|
||||
<div class="cl"></div>
|
||||
<div class="post-content c-grey2 mt10">
|
||||
<div class="post-all-content"><!:=activities[i].description!></div>
|
||||
</div>
|
||||
<a herf="javascript:void(0);" class="link-blue f13 fl mt5 post-more undis" style="text-decoration:underline">点击展开</a>
|
||||
<div class="cl"></div>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].created_on!></span>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].latest_update!></span>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive">
|
||||
<div class="post-interactive-column c-grey2">回复</div>
|
||||
<div class="post-interactive-column c-grey2">赞</div>
|
||||
<div class="post-interactive-column c-grey2">回复 (<!=activities[i].reply_count!>)</div>
|
||||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<! } else if (act_type == "messge") { !>
|
||||
<! } else if (act_type == "Message") { !>
|
||||
<!--course message -->
|
||||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="images/post-avatar.jpg" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title fl mb10 hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a> <span style="vertical-align:top;">给您留言了</span><br />
|
||||
<span class="c-grey"><!=activities[i].created_on!></span> </div>
|
||||
<span class="c-grey"><!=activities[i].latest_update!></span> </div>
|
||||
<div class="cl"></div>
|
||||
<div class="post-content c-grey2 mt10">
|
||||
<p class="post-all-content"><!:=activities[i].description!></p>
|
||||
|
@ -87,68 +87,68 @@
|
|||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive">
|
||||
<div class="post-interactive-column c-grey2">回复</div>
|
||||
<div class="post-interactive-column c-grey2">赞</div>
|
||||
<div class="post-interactive-column c-grey2">回复 (<!=activities[i].reply_count!>)</div>
|
||||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<! } else if (act_type == "course") { !>
|
||||
<! } else if (act_type == "Course") { !>
|
||||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="<!=activities[i].author.img_url!>" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb"><!=activities[i].author.nickname!></span>创建了<span class="c-grey3 f15 fb">我的私有课程 | 课程</span></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].created_on!></a></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].latest_update!></a></div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<! } !>
|
||||
<! } else if (container_type == "project") { !>
|
||||
<! if (act_type == "activities") { !>
|
||||
<! } else if (container_type == "Project") { !>
|
||||
<! if (act_type == "Issue") { !>
|
||||
<!-- activities -->
|
||||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="<!=activities[i].author.img_url!>" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb"><!=activities[i].subject!></span></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to</div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to<!=activities[i].course_project_name!> | <!=activities[i].activity_type_name!></div>
|
||||
<div class="cl"></div>
|
||||
<div class="post-content c-grey2 mt10">
|
||||
<div class="post-all-content"><!:=activities[i].description!><br />
|
||||
<span class="mr15">指派给:黄井泉</span> <span class="mr15">状态:新增</span> <span class="mr15">完成度:30%</span></div>
|
||||
<span class="mr15">状态:<!:=activities[i].issue_detail.issue_status!></span> <span class="mr15">优先级:<!:=activities[i].issue_detail.issue_priority!></span> <br /> <span class="mr15">指派给:<!:=activities[i].issue_detail.issue_assigned_to!></span> <span class="mr15">完成度:<!:=activities[i].issue_detail.done_ratio!></span></div>
|
||||
</div>
|
||||
<a herf="javascript:void(0);" class="link-blue f13 fl mt5 post-more undis" style="text-decoration:underline">点击展开</a>
|
||||
<div class="cl"></div>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].created_on!></span>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].latest_update!></span>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive">
|
||||
<div class="post-interactive-column c-grey2">回复</div>
|
||||
<div class="post-interactive-column c-grey2">赞</div>
|
||||
<div class="post-interactive-column c-grey2">回复 (<!=activities[i].reply_count!>)</div>
|
||||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<! } else if (act_type == "message") { !>
|
||||
<! } else if (act_type == "Message") { !>
|
||||
<!-- project news -->
|
||||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="<!=activities[i].author.img_url!>" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb"><!=activities[i].subject!></span></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to<a herf="javascript:void(0);" class="ml10">我的私有课程 | 课程讨论区</a></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a>to<!=activities[i].course_project_name!> | <!=activities[i].activity_type_name!></div>
|
||||
<div class="cl"></div>
|
||||
<div class="post-content c-grey2 mt10">
|
||||
<div class="post-all-content"><!:=activities[i].description!></div>
|
||||
</div>
|
||||
<a herf="javascript:void(0);" class="link-blue f13 fl mt5 post-more undis" style="text-decoration:underline">点击展开</a>
|
||||
<div class="cl"></div>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].created_on!></span>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].latest_update!></span>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive">
|
||||
<div class="post-interactive-column c-grey2">回复</div>
|
||||
<div class="post-interactive-column c-grey2">赞</div>
|
||||
<div class="post-interactive-column c-grey2">回复 (<!=activities[i].reply_count!>)</div>
|
||||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -159,7 +159,7 @@
|
|||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="<!=activities[i].author.img_url!>" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb"><!=activities[i].author.nickname!></span>创建了<span class="c-grey3 f15 fb">我的私有课程 | 课程</span></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].created_on!></a></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].latest_update!></a></div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -172,7 +172,7 @@
|
|||
<div class="post-main">
|
||||
<div class="post-avatar fl"><img src="images/post-avatar.jpg" width="45" height="45" class="border-radius" /></div>
|
||||
<div class="post-title fl mb10 hidden"><a herf="javascript:void(0);" class="mr10"><!=activities[i].author.nickname!></a> <span style="vertical-align:top;">给您留言了</span><br />
|
||||
<span class="c-grey"><!=activities[i].created_on!></span> </div>
|
||||
<span class="c-grey"><!=activities[i].latest_update!></span> </div>
|
||||
<div class="cl"></div>
|
||||
<div class="post-content c-grey2 mt10">
|
||||
<p class="post-all-content"><!:=activities[i].description!></p>
|
||||
|
@ -181,12 +181,12 @@
|
|||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive">
|
||||
<div class="post-interactive-column c-grey2">回复</div>
|
||||
<div class="post-interactive-column c-grey2">赞</div>
|
||||
<div class="post-interactive-column c-grey2">回复 (<!=activities[i].reply_count!>)</div>
|
||||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<! } else if (container_type == "blog") { !>
|
||||
<! } else if (container_type == "Blog") { !>
|
||||
<!--blog -->
|
||||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
|
@ -200,12 +200,12 @@
|
|||
</div>
|
||||
<a herf="javascript:void(0);" class="link-blue f13 fl mt5 post-more undis" style="text-decoration:underline">点击展开</a>
|
||||
<div class="cl"></div>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].created_on!></span>
|
||||
<span class="c-grey f13 mt10 fl"><!=activities[i].latest_update!></span>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive">
|
||||
<div class="post-interactive-column c-grey2">回复</div>
|
||||
<div class="post-interactive-column c-grey2">赞</div>
|
||||
<div class="post-interactive-column c-grey2">回复 (<!=activities[i].reply_count!>)</div>
|
||||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue