PCqiandao
daiao 5 years ago
commit 8fe0f2ff48

@ -24,6 +24,7 @@ class FilesController < ApplicationController
get_category(@course, @course_second_category_id)
@total_count = @attachments.size
@unlink_count = @attachments.no_link.size
if @user.course_identity(@course) == 5
member = @course.course_members.find_by(user_id: current_user.id, is_active: 1)

@ -5,6 +5,7 @@ json.data do
json.total_count @total_count
json.publish_count @publish_count
json.unpublish_count @unpublish_count
json.unlink_count @unlink_count
json.course_is_public @course.is_public?
json.files do
json.array! @attachments do |attachment|

@ -745,7 +745,7 @@ class Challenges extends Component {
</div>
<div className="challengtes_Item">
<div className="flex1">
<div className="flex1 width0">
<div className="clearfix mb5">
{/*onClick={() => this.EditTraining(this.props.identity, item.challenge_id, "/editquestion")}*/}
{this.props.identity<5?

@ -268,7 +268,7 @@
justify-content: space-between;
align-items: center;
}
.flex1{
.flex1.width0{
flex: 1;
width: 0;
}

Loading…
Cancel
Save