src/Pure/Build/build_manager.scala
changeset 80467 010d45681b87
parent 80424 6ed82923d51d
child 80468 8ae5312032cc
equal deleted inserted replaced
80466:8506bfd25efb 80467:010d45681b87
  1134               par(text("Status: " + result.status)) ::
  1134               par(text("Status: " + result.status)) ::
  1135               source(cache.lookup(store, result.kind, result.id)) :: Nil
  1135               source(cache.lookup(store, result.kind, result.id)) :: Nil
  1136           }
  1136           }
  1137         }
  1137         }
  1138 
  1138 
  1139       def render_cancelled: XML.Body =
  1139       def render_cancelled: XML.Body = render_page("Build cancelled")(
  1140         List(chapter("Build Cancelled"), frontend_link(paths.frontend_url(Page.HOME), text("Home")))
  1140         List(frontend_link(paths.frontend_url(Page.HOME), text("Home"))))
  1141 
  1141 
  1142       def parse_uuid(params: Params.Data): Option[UUID.T] =
  1142       def parse_uuid(params: Params.Data): Option[UUID.T] =
  1143         for {
  1143         for {
  1144           id <- params.get(ID)
  1144           id <- params.get(ID)
  1145           uuid <- UUID.unapply(id)
  1145           uuid <- UUID.unapply(id)
  1180                 case job: Job =>
  1180                 case job: Job =>
  1181                   val job1 = job.copy(cancelled = true)
  1181                   val job1 = job.copy(cancelled = true)
  1182                   _state = _state
  1182                   _state = _state
  1183                     .remove_running(job.name)
  1183                     .remove_running(job.name)
  1184                     .add_running(job1)
  1184                     .add_running(job1)
  1185                   Model.Details(job1, _state, public = false)
  1185                   Model.Cancelled
  1186                 case result: Result => Model.Details(result, _state, public = false)
  1186                 case result: Result => Model.Details(result, _state, public = false)
  1187               }
  1187               }
  1188             }
  1188             }
  1189         } yield model
  1189         } yield model
  1190 
  1190