1 ! Copyright (C) 2010 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors furnace.actions http.server.responses kernel
4 urls xml.syntax webapps.mason.backend webapps.mason.utils ;
5 IN: webapps.mason.report
7 : <build-report-action> ( -- action )
9 [ validate-os/cpu ] >>init
12 current-builder last-report>>
17 : report-link ( builder -- xml )
19 [ os>> "os" set-query-param ]
20 [ cpu>> "cpu" set-query-param ] bi
21 [XML <a href=<->>Latest build report</a> XML] ;