2016-07-25 15:20:01 +08:00
|
|
|
<div class="post-container">
|
|
|
|
<div loading-spinner></div>
|
2016-07-25 17:02:42 +08:00
|
|
|
<div class="class-detail-name"><span class="course-name-width hidden inline-block">{{project.name}}</span><span ng-click="invite()" class="f13 blue-title-sub">邀请码</span></div>
|
2016-07-25 15:20:01 +08:00
|
|
|
<div class="tab-wrap">
|
|
|
|
<a ng-click="tab($index+1)" ng-repeat="menu in menus" id="class_tab_1" href="javascript:void(0);" ng-class="['weixin-tab', {'class-tab-active': currentTab == $index+1}]">{{menu}}</a>
|
|
|
|
</div>
|
|
|
|
|
2016-07-27 14:30:19 +08:00
|
|
|
<div ng-class="{'undis': currentTab != 1}">
|
|
|
|
<div ng-repeat="act in project_activities">
|
|
|
|
<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 dataID = "{{act.act_id}}" ng-click="goDetail('issues',act.act_id, act.id)" id="act_{{act.id}}">
|
|
|
|
<div class="post-avatar fl mr10"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="30" height="30" class="border-radius img-circle" /></div>
|
|
|
|
<div class="post-dynamic-author hidden fl">
|
|
|
|
<span ng-if="act.author.realname != ' '">{{act.author.realname}}</span>
|
|
|
|
<span ng-if="act.author.realname == ' '">{{act.author.nickname}}</span>
|
|
|
|
<img ng-if="act.author.gender == '0'" src="images/wechat/male.png" width="14" class="ml5" />
|
|
|
|
<img ng-if="act.author.gender != '0'" src="images/wechat/female.png" width="14" class="ml5" />
|
|
|
|
</div>
|
|
|
|
<div class="post-dynamic-time fr f13">{{act.latest_update}}</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="post-dynamic-title c-grey3 hidden mt12 fb">【问题】{{act.subject|safeHtml}}</div>
|
|
|
|
<div class="post-content c-grey3 mt10 mb10">
|
|
|
|
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></div>
|
|
|
|
<span class="mr15 f13 c-grey2">状态:{{act.issue_detail.issue_status}}</span> <span class="mr15 f13 c-grey2">优先级:{{act.issue_detail.issue_priority}}</span> <br />
|
|
|
|
<span class="mr15 f13 c-grey2">指派给:{{act.issue_detail.issue_assigned_to}}</span> <span class="mr15 f13 c-grey2">完成度:{{act.issue_detail.done_ratio}}%</span>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2016-07-25 17:02:42 +08:00
|
|
|
</div>
|
2016-07-27 14:30:19 +08:00
|
|
|
<div class="post-dynamic-from hidden fl c-grey3">来源: <span class="c-blue">{{act.course_project_name}}</span></div>
|
|
|
|
<div class="fr f13">
|
|
|
|
<div ng-if="!act.praise_count" ng-click="addPraise(act);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>赞</span></div>
|
|
|
|
<div ng-if="act.praise_count && !act.has_praise" ng-click="addPraise(act);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{act.praise_count}}</span></div>
|
|
|
|
<div ng-if="act.has_praise" ng-click="decreasePraise(act);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{act.praise_count}}</span></div>
|
|
|
|
</div>
|
|
|
|
<div class="fr mr25 f13">
|
|
|
|
<a ng-if="!act.reply_count" ng-click="goDetail('issues',act.act_id, act.id)"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
|
|
|
<a ng-if="act.reply_count" ng-click="goDetail('issues',act.act_id, act.id)"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{act.reply_count}}</span></a>
|
2016-07-25 17:02:42 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-25 15:20:01 +08:00
|
|
|
|
|
|
|
|
2016-07-27 14:30:19 +08:00
|
|
|
<div ng-if="act.act_type=='Message'">
|
|
|
|
<div class="post-container">
|
|
|
|
<div class="post-wrapper">
|
|
|
|
<div class="post-main">
|
|
|
|
<div dataID = "{{act.act_id}}" ng-click="goDetail('project_discussion',act.act_id, act.id)" id="act_{{act.id}}">
|
|
|
|
<div class="post-avatar fl mr10"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="30" height="30" class="border-radius img-circle" /></div>
|
|
|
|
<div class="post-dynamic-author hidden fl">
|
|
|
|
<span ng-if="act.author.realname != ' '">{{act.author.realname}}</span>
|
|
|
|
<span ng-if="act.author.realname == ' '">{{act.author.nickname}}</span>
|
|
|
|
<img ng-if="act.author.gender == '0'" src="images/wechat/male.png" width="14" class="ml5" />
|
|
|
|
<img ng-if="act.author.gender != '0'" src="images/wechat/female.png" width="14" class="ml5" />
|
|
|
|
</div>
|
|
|
|
<div class="post-dynamic-time fr f13">{{act.latest_update}}</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="post-dynamic-title c-grey3 hidden mt12 fb">【帖子】{{act.subject|safeHtml}}</div>
|
|
|
|
<div class="post-content c-grey3 mt10 mb10">
|
|
|
|
<div class="post-all-content" ng-bind-html="act.description|safeHtml"></div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2016-07-25 17:02:42 +08:00
|
|
|
</div>
|
2016-07-27 14:30:19 +08:00
|
|
|
<div class="post-dynamic-from hidden fl c-grey3">来源: <span class="c-blue">{{act.course_project_name}}</span></div>
|
|
|
|
<div class="fr f13">
|
|
|
|
<div ng-if="!act.praise_count" ng-click="addPraise(act);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>赞</span></div>
|
|
|
|
<div ng-if="act.praise_count && !act.has_praise" ng-click="addPraise(act);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{act.praise_count}}</span></div>
|
|
|
|
<div ng-if="act.has_praise" ng-click="decreasePraise(act);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{act.praise_count}}</span></div>
|
|
|
|
</div>
|
|
|
|
<div class="fr mr25 f13">
|
|
|
|
<a ng-if="!act.reply_count" ng-click="goDetail('project_discussion',act.act_id, act.id)"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
|
|
|
<a ng-if="act.reply_count" ng-click="goDetail('project_discussion',act.act_id, act.id)"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{act.reply_count}}</span></a>
|
2016-07-25 17:02:42 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-25 15:20:01 +08:00
|
|
|
|
2016-07-27 14:30:19 +08:00
|
|
|
<div ng-if="act.act_type=='Project'">
|
|
|
|
<div class="post-container">
|
|
|
|
<div class="post-wrapper">
|
|
|
|
<div class="post-main">
|
|
|
|
<div class="post-avatar fl mr10"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="30" height="30" class="border-radius img-circle" /></div>
|
|
|
|
<div class="post-title hidden mb5"><span class="c-grey3 f13 fb mr10">{{act.author.realname}}</span>创建了<span class="c-grey3 f13 fb ml10">{{act.course_project_name}} | 项目</span></div>
|
|
|
|
<div class="post-title hidden"><span class="mr10">{{act.latest_update}}</span></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
2016-07-25 17:02:42 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-25 15:20:01 +08:00
|
|
|
</div>
|
2016-07-27 14:30:19 +08:00
|
|
|
<div ng-if="project_has_more">
|
|
|
|
<div id="more_project_activities" class="more-events mt10" ng-click="getActivities(project_activities_page+1);">更多</div>
|
|
|
|
</div>
|
2016-07-25 15:20:01 +08:00
|
|
|
</div>
|
2016-07-27 14:30:19 +08:00
|
|
|
|
|
|
|
<div ng-class="{'undis': currentTab != 2}">
|
|
|
|
<div class="class-search-wrap">
|
|
|
|
<div class="class-search-inner"> <img src="/images/wechat/search.png" width="18" class="class-search-icon" />
|
|
|
|
<input class="class-detail-search" ng-model="searchText" placeholder="输入关键词进行搜索" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="member-banner f13 c-grey3">管理人员({{project_master_members.length}})</div>
|
|
|
|
<div class="class-member-row f13 c-grey3" ng-repeat="master in project_master_members|filter:searchText">
|
|
|
|
<img ng-src="/images/wechat/{{master.user.gender==0 ? 'male' : 'female'}}.jpg" width="30" class="fl ml10 img-circle" /><span class="fl ml10 mt5">{{master.user.real_name == "" ? master.user.name : master.user.real_name }}</span><span class="fr mr10 c-grey2">{{teacher.role_name|identify}}</span><img ng-src="/images/wechat/{{master.user.gender==0 ? 'male' : 'female'}}.png" width="15" class="fl ml10 mt5" />
|
|
|
|
<img src="/images/wechat/setting.png" ng-show = "master.user.id != project.user_id && project.can_setting" width="15" class="class-list-setting" ng-click="onSetting(master)" />
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
<div class="member-banner f13 mt10 c-grey3">开发人员({{project_develop_members.length}})</div>
|
|
|
|
<div class="class-member-row f13 c-grey3" ng-repeat="develop in project_develop_members|filter:searchText">
|
|
|
|
<img ng-src="/images/wechat/{{develop.user.gender==0 ? 'male' : 'female'}}.jpg" width="30" class="fl ml10 img-circle" /><span class="fl ml10 mt5">{{develop.user.real_name == "" ? develop.user.name : develop.user.real_name}}</span><img ng-src="/images/wechat/{{develop.user.gender==0 ? 'male' : 'female'}}.png" width="15" class="fl ml10 mt5" />
|
|
|
|
<img src="/images/wechat/setting.png" ng-show = "master.user.id != project.user_id && project.can_setting " width="15" class="class-list-setting" ng-click="onSetting(develop)" />
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
<div class="member-banner f13 mt10 c-grey3">报告人员({{project_report_members.length}})</div>
|
|
|
|
<div class="class-member-row f13 c-grey3" ng-repeat="report in project_report_members|filter:searchText">
|
|
|
|
<img ng-src="/images/wechat/{{report.user.gender==0 ? 'male' : 'female'}}.jpg" width="30" class="fl ml10 img-circle" /><span class="fl ml10 mt5">{{report.user.real_name == "" ? report.user.name : report.user.real_name}}</span><img ng-src="/images/wechat/{{report.user.gender==0 ? 'male' : 'female'}}.png" width="15" class="fl ml10 mt5" />
|
|
|
|
<img src="/images/wechat/setting.png" ng-show = "master.user.id != project.user_id && project.can_setting " width="15" class="class-list-setting" ng-click="onSetting(report)" />
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
2016-07-25 15:20:01 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<my-alert message="alertService.message" title="alertService.title" visible="alertService.visible" cb="alertService.cb"></my-alert>
|
|
|
|
</div>
|