                         <tr>
                             <th>Время</th>
                             <th>Результат</th>
+                            <th>&nbsp;</th>
                          </tr>
                     </thead>
                     <tbody>
-                        {@props.submits && @props.submits.map((submit) ->
+                        {@props.submits && @props.submits.map((submit) =>
                             cl = undefined
                             if submit.outcome == "AC"
                                 cl = "success"

import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import { CometSpinLoader } from 'react-css-loaders'
import Table from 'react-bootstrap/lib/Table'

import * as actions from '../redux/actions'

class SubmitList extends React.Component
    constructor: (props) ->
        super(props)
        @handleReload = @handleReload.bind(this)

    url: () ->
        if @props?.myUser?._id
            "submits/#{@props.myUser._id}/#{@props.material._id}"

    render:  () ->
        if not @props.myUser?._id
            return null
        <div>
            <h4>Попытки</h4>
            {
            if @dataOutdated()

                            <tr key={submit._id} className={cl}>
                                <td>{moment(submit.time).format('YYYY-MM-DD kk:mm:ss')}</td>
                                <td>{submit.outcome}</td>
                                <td><a onClick={@openSubmit(submit)}>Подробнее</a></td>
                            </tr>
                        ).reverse()}
                    </tbody>
