2015-04-07 12:48:47 +08:00
|
|
|
<% issue_list(issues) do |issue, level| -%>
|
2015-12-16 11:50:30 +08:00
|
|
|
<script>
|
|
|
|
function expand_reply(container, btnid) {
|
|
|
|
var target = $(container);
|
|
|
|
var btn = $(btnid);
|
|
|
|
if (btn.data('init') == '0') {
|
|
|
|
btn.data('init', 1);
|
|
|
|
btn.html('收起回复');
|
|
|
|
target.show();
|
|
|
|
} else {
|
|
|
|
btn.data('init', 0);
|
|
|
|
btn.html('展开更多');
|
|
|
|
target.hide();
|
|
|
|
target.eq(0).show();
|
|
|
|
target.eq(1).show();
|
|
|
|
target.eq(2).show();
|
|
|
|
}
|
|
|
|
}
|
2015-04-11 15:34:59 +08:00
|
|
|
|
2015-12-16 11:50:30 +08:00
|
|
|
$(function () {
|
2016-01-29 16:55:07 +08:00
|
|
|
sd_create_editor_from_data(<%= issue.id%>, null, "100%", "<%= issue.class.name %>");
|
2015-12-16 11:50:30 +08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<%= render :partial => 'users/project_issue', :locals => {:activity => issue, :user_activity_id => issue.id} %>
|
|
|
|
<% end %>
|
2015-12-16 15:55:40 +08:00
|
|
|
<% if issues.count == 10%>
|
2016-01-11 10:21:42 +08:00
|
|
|
<%= link_to "点击展开更多",project_issues_path({:project_id => project.id}.merge(params)),:id => "show_more_issues",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
2015-12-16 15:55:40 +08:00
|
|
|
<% end%>
|