227 lines
14 KiB
HTML
227 lines
14 KiB
HTML
<div id="container">
|
||
|
||
<!-- 模板1开始,可以使用script(type设置为text/html)来存放模板片段,并且用id标示 -->
|
||
<div ng-repeat="act in activities">
|
||
<div ng-if="act.container_type=='Course'">
|
||
<div ng-if="act.act_type=='HomeworkCommon'">
|
||
<div class="post-container">
|
||
<div class="post-wrapper">
|
||
<div class="post-main">
|
||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="45" height="45" class="border-radius" /></div>
|
||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb">{{act.subject|safeHtml}}</span></div>
|
||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10">{{act.author.nickname}}</a>to<a herf="javascript:void(0);" class="ml10">{{act.course_project_name}} | {{act.activity_type_name}}</a></div>
|
||
<div class="cl"></div>
|
||
<div class="post-content c-grey2 mt10">
|
||
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></div>
|
||
<span class="mr15">迟交扣分:{{act.homework_common_detail.late_penalty}}分</span> 匿评开启时间:{{act.homework_common_detail.evaluation_start}}<br />
|
||
<span class="mr15">缺评扣分:{{act.homework_common_detail.absence_penalty}}分/作品</span> 匿评关闭时间:{{act.homework_common_detail.evaluation_end}}
|
||
</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">{{act.latest_update}}</span>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" ng-href="#/homework/{{act.act_id}}" class="c-grey">回复 ({{act.reply_count}})</a></div>
|
||
<div class="post-interactive-column c-grey2">赞 ({{act.activity_praise_count}})</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div ng-if="act.act_type=='News'">
|
||
<div class="post-container">
|
||
<div class="post-wrapper">
|
||
<div class="post-main">
|
||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="45" height="45" class="border-radius" /></div>
|
||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb">{{act.subject|safeHtml}}</span></div>
|
||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10">{{act.author.nickname}}</a>to<a herf="javascript:void(0);" class="ml10">{{act.course_project_name}} | {{act.activity_type_name}}</a></div>
|
||
<div class="cl"></div>
|
||
<div class="post-content c-grey2 mt10">
|
||
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></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">{{act.latest_update}}</span>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" ng-click="window.open('course_notice.html?id={{act.act_id}}');" class="c-grey">回复 ({{act.reply_count}})</a></div>
|
||
<div class="post-interactive-column c-grey2">赞 ({{act.activity_praise_count}})</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div ng-if="act.act_type=='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 hidden mb5"><span class="c-grey3 f15 fb">{{act.subject|safeHtml}}</span></div>
|
||
<div class="post-title fl mb10 hidden"><a herf="javascript:void(0);" class="mr10">{{act.author.nickname}}</a>to<a herf="javascript:void(0);" class="ml10">{{act.course_project_name}} | {{act.activity_type_name}}</a></div>
|
||
<div class="cl"></div>
|
||
<div class="post-content c-grey2 mt10">
|
||
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></div>
|
||
</div>
|
||
<a herf="javascript:void(0);" class="link-blue f13 fl mt5 post-more undis" style="text-decoration:underline;" ng-click="descToggle()">点击展开</a>
|
||
<span class="c-grey f13 mt10 fl">{{act.latest_update}}</span>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" class="c-grey">回复 ({{act.reply_count}})</a></div>
|
||
<div class="post-interactive-column c-grey2">赞 ({{act.activity_praise_count}})</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div ng-if="act.act_type=='Course'">
|
||
<div class="post-container">
|
||
<div class="post-wrapper">
|
||
<div class="post-main">
|
||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="45" height="45" class="border-radius" /></div>
|
||
<div class="post-title hidden mb5"><span class="c-grey3 f13 fb mr10">{{act.author.nickname}}</span>创建了<span class="c-grey3 f13 fb ml10">{{act.course_project_name}}</span></div>
|
||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10">{{act.latest_update}}</a></div>
|
||
<div class="cl"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<div ng-if="act.container_type=='Project'">
|
||
<div ng-if="act.act_type=='Issue'">
|
||
<div class="post-container">
|
||
<div class="post-wrapper">
|
||
<div class="post-main">
|
||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="45" height="45" class="border-radius" /></div>
|
||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb">{{act.subject|safeHtml}}</span></div>
|
||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10">{{act.author.nickname}}</a>to<a herf="javascript:void(0);" class="ml10">{{act.course_project_name}} | {{act.activity_type_name}}</a></div>
|
||
<div class="cl"></div>
|
||
<div class="post-content c-grey2 mt10">
|
||
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></div>
|
||
<span class="mr15">状态:{{act.issue_detail.issue_status}}</span> <span class="mr15">优先级:{{act.issue_detail.issue_priority}}</span> <br />
|
||
<span class="mr15">指派给:{{act.issue_detail.issue_assigned_to}}</span> <span class="mr15">完成度:{{act.issue_detail.done_ratio}}%</span>
|
||
</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">{{act.latest_update}}</span>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" ng-href="#/issues/{{act.act_id}}" class="c-grey"> 回复 ({{act.reply_count}})</a></div>
|
||
<div class="post-interactive-column c-grey2">赞 ({{act.activity_praise_count}})</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div ng-if="act.act_type=='Message'">
|
||
<div class="post-container">
|
||
<div class="post-wrapper">
|
||
<div class="post-main">
|
||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="45" height="45" class="border-radius" /></div>
|
||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb">{{act.subject|safeHtml}}</span></div>
|
||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10">{{act.author.nickname}}</a>to<a herf="javascript:void(0);" class="ml10">{{act.course_project_name}} | {{act.activity_type_name}}</a></div>
|
||
<div class="cl"></div>
|
||
<div class="post-content c-grey2 mt10">
|
||
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></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">{{act.latest_update}}</span>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" class="c-grey"> 回复 ({{act.reply_count}}) </a></div>
|
||
<div class="post-interactive-column c-grey2">赞 ({{act.activity_praise_count}})</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].latest_update!></span>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" onclick="window.open('project_discussion.html?id=<!=activities[i].act_id!>');" class="c-grey"> 回复 (<!=activities[i].reply_count!>) </a></div>
|
||
<div class="post-interactive-column c-grey2">赞 (<!=activities[i].activity_praise_count!>)</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div ng-if="act.act_type=='ProjectCreateInfo'">
|
||
<div class="post-container">
|
||
<div class="post-wrapper">
|
||
<div class="post-main">
|
||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="45" height="45" class="border-radius" /></div>
|
||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb">{{act.author.nickname}}</span>创建了<span class="c-grey3 f15 fb">{{act.course_project_name}}</span></div>
|
||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10">{{act.latest_update}}</a></div>
|
||
<div class="cl"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div ng-if="act.act_type=='Principal'">
|
||
<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 mb5 hidden"><a herf="javascript:void(0);" class="mr10">{{act.author.nickname}}</a> <span style="vertical-align:top;">给您留言了</span></div>
|
||
<div class="post-title hidden">{{act.latest_update}}</div>
|
||
<div class="cl"></div>
|
||
<div class="post-content c-grey2 mt10">
|
||
<p class="post-all-content" ng-bind-html="act.description|safeHtml"></p>
|
||
</div>
|
||
<a herf="javascript:void(0);" class="link-blue f13 fl mt5 post-more undis" style="text-decoration:underline;">点击展开</a>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" class="c-grey"> 回复 ({{act.reply_count}})</a></div>
|
||
<div class="post-interactive-column c-grey2">赞 ({{act.activity_praise_count}})</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div ng-if="act.act_type=='Blog'">
|
||
<div class="post-container">
|
||
<div class="post-wrapper">
|
||
<div class="post-main">
|
||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="45" height="45" class="border-radius" /></div>
|
||
<div class="post-title hidden mb5"><span class="c-grey3 f15 fb">{{act.subject|safeHtml}}</span></div>
|
||
<div class="post-title hidden"><a herf="javascript:void(0);" class="mr10">{{act.author.nickname}}</a>发表博客</div>
|
||
<div class="cl"></div>
|
||
<div class="post-content c-grey2 mt10">
|
||
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></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">{{act.latest_update}}</span>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="post-interactive">
|
||
<div class="post-interactive-column c-grey2"><a href="javascript:void(0);" class="c-grey"> 回复 ({{act.reply_count}})</a></div>
|
||
<div class="post-interactive-column c-grey2">赞 ({{act.activity_praise_count}})</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div id="more_activities" class="more-events mt10" ng-click="loadActData(page+1);">更多</div>
|
||
|
||
</div>
|
||
|