             styles.muchUnpaid
 
     render:  () ->
-        admin = @props.me?.admin
         <div className={@paidStyle()}>
-            <Grid fluid>
-                <Col xs={12} sm={12} md={8} lg={8}>
-                    {
-                    if @state.currentSubmit
-                        <div>
-                            <Submit submit={@state.currentSubmit} showHeader me={@props.me} copyTest={@copyTest}/>
-                            {
-                            admin and not @state.currentSubmit.similar and <div>
-                                <div>
-                                    {
-                                    if @state.currentSubmit.outcome in ["OK", "AC"]
-                                        starsClass = styles.stars
-                                    else
-                                        starsClass = ""
-                                    <div className={starsClass}>
-                                        <FontAwesome name="times" key={0} onClick={@setQuality(0)}/>
-                                        {(<FontAwesome
-                                            name={"star" + (if x <= @state.currentSubmit.quality then "" else "-o")}
-                                            key={x}
-                                            onClick={@setQuality(x)}/> \
-                                            for x in [1..5])}
-                                    </div>
-                                    }
-                                </div>
-                                {
-                                if @props.bestSubmits.length
-                                    <span>
-                                        <a href="#" onClick={@toggleBestSubmits}>Хорошие решения</a>
-                                        {" = " + @props.bestSubmits.length}
-                                        {" " + @props.bestSubmits.map((submit) -> submit.language || "unknown").join(", ")}
-                                    </span>
-                                }
-                                <FieldGroup
-                                        id="commentText"
-                                        label="Комментарий"
-                                        componentClass="textarea"
-                                        setField={@setField}
-                                        style={{ height: 200 }}
-                                        state={@state}/>
-                                    <FormGroup>
-                                        {
-                                        bsSize = null
-                                        bsCommentSize = null
-                                        if not (@state.currentSubmit.outcome in ["OK", "AC", "IG"])
-                                            bsSize = "xsmall"
-                                        if not @props.result?.activated
-                                            bsSize = "xsmall"
-                                            bsCommentSize = "xsmall"
-                                        <ButtonGroup>
-                                            <Button onClick={@accept} bsStyle="success" bsSize={bsSize}>Зачесть</Button>
-                                            <Button onClick={@ignore} bsStyle="info" bsSize={bsSize}>Проигнорировать</Button>
-                                            <Button onClick={@comment}  bsSize={bsCommentSize}>Прокомментировать</Button>
-                                            <Button onClick={@disqualify} bsStyle="danger" bsSize="xsmall">Дисквалифицировать</Button>
-                                        </ButtonGroup>
-                                        }
-                                    </FormGroup>
-                                    <Button onClick={@downloadSubmits} bsSize="xsmall">re-download submits</Button>
-                                </div>
-                            }
-                        </div>
-                    else if @state.currentDiff[1] and @state.currentDiff[0]
-                        if @state.currentDiff[1].source == @state.currentDiff[0].source
-                            <div>
-                                <SubmitHeader submit={@state.currentDiff[0]} admin={admin}/>
-                                <pre>Нет изменений</pre>
-                            </div>
-                        else
-                            diffText = JsDiff.createTwoFilesPatch(
-                                @state.currentDiff[1]._id,
-                                @state.currentDiff[0]._id,
-                                @state.currentDiff[1].sourceRaw,
-                                @state.currentDiff[0].sourceRaw)
-                            diffText = diffText.split("\n")
-                            diffText[0] = "diff --git a/#{@state.currentDiff[0]._id} b/#{@state.currentDiff[1]._id}\nindex aaaaaaa..aaaaaaa 100644"
-                            diffText = diffText.join("\n")
-                            files = parseDiff(diffText, {nearbySequences: "zip"})
-
-                            <div>
-                                <SubmitHeader submit={@state.currentDiff[0]} admin={admin}/>
-                                <pre>
-                                    {files.map(({hunks}, i) => <Diff key={i} hunks={hunks} viewType="split"/>)}
-                                </pre>
-                            </div>
-                    }
-                </Col>
-                <Col xs={12} sm={12} md={4} lg={4}>
-                    <SubmitListTable
-                        submits={@props.submits}
-                        handleSubmitClick={@setCurrentSubmit}
-                        handleDiffClick={@setCurrentDiff}
-                        activeId={@state.currentSubmit?._id}
-                        activeDiffId={@state.currentDiff.map((submit)->submit?._id)}/>
-                </Col>
-                {
-                admin and @state.currentSubmit and not @state.currentSubmit.similar and <Col xs={12} sm={12} md={12} lg={12}>
-                    <ConnectedProblemCommentsLists problemId={@props.result.fullTable._id} handleCommentClicked={@setComment}/>
-                </Col>
-                }
-                {
-                admin && @state.bestSubmits && <BestSubmits submits={@props.bestSubmits} close={@toggleBestSubmits} stars/>
-                }
-            </Grid>
+            {`<SubmitListWithDiff {...this.props} SubmitComponent={SubmitWithActions}/>`}
         </div>
 
 SubmitsAndSimilarMerger = (props) ->

            @setState
                currentSubmit: undefined
                currentDiff: newDiff

    paidStyle: () ->
        user = @props.user
        if (!user?.paidTill)

        @comment = @comment.bind this
        @setField = @setField.bind this
        @setComment = @setComment.bind this
        @setQuality = @setQuality.bind this
        @toggleBestSubmits = @toggleBestSubmits.bind this
        @downloadSubmits = @downloadSubmits.bind this
