From 2b31e5cb109e2b009529e97f4fdb4a707cae14f2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 13 Jun 2017 17:52:42 +0300 Subject: Add builds to package version details page --- mod/page.hxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mod/page.hxx') diff --git a/mod/page.hxx b/mod/page.hxx index d7c44d6..dea2733 100644 --- a/mod/page.hxx +++ b/mod/page.hxx @@ -14,6 +14,7 @@ #include #include +#include #include #include // page_menu @@ -400,6 +401,23 @@ namespace brep const string& sha256sum_; }; + // Generates build results element. + // + class TR_BUILD_RESULT + { + public: + TR_BUILD_RESULT (const build& b, const string& h, const dir_path& r): + build_ (b), host_ (h), root_ (r) {} + + void + operator() (xml::serializer&) const; + + private: + const build& build_; + const string& host_; + const dir_path& root_; + }; + // Generates comment element. // class SPAN_COMMENT -- cgit v1.1