equal
deleted
inserted
replaced
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 |