From: Brendan Hansen Date: Wed, 9 Oct 2019 14:36:49 +0000 (-0500) Subject: Added button to resubmit X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=57a44780cfaec5ee383e0e712c677e872ba8f2fe;p=codebox.git Added button to resubmit --- diff --git a/codebox/views/ssr/job_result.moon b/codebox/views/ssr/job_result.moon index d042c83..e33443b 100644 --- a/codebox/views/ssr/job_result.moon +++ b/codebox/views/ssr/job_result.moon @@ -58,7 +58,10 @@ class JobResultView extends html.Widget div class: 'fill', '' div class: 'mar-r-12', -> - div class: 'header-line', -> + a href: (@url_for "problem.submit", { problem_name: @problem.short_name }), class: 'button w100 ta-center mar-t-12', + "Create new submission" + + div class: 'header-line mar-t-4', -> div 'Stats' div class: 'box', -> @@ -80,6 +83,7 @@ class JobResultView extends html.Widget div class: "highlight pad-l-12 pad-r-12 pad-t-4 pad-b-4 split-lr", -> div "Time submittted:" div "#{ os.date '%c', @time_started }" + div -> if @show_slash div class: 'header-line', ->