diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-14 00:37:16 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-15 20:37:43 +0300 |
commit | 5163436b00711318baea4fc0ad43a4de8222354a (patch) | |
tree | a05c06693bda84dd9a9b365a50c227126a5ec05f /mod/page.hxx | |
parent | 2ebf9de408f3fd629126a20b21221e186195813c (diff) |
Implement builds page
Diffstat (limited to 'mod/page.hxx')
-rw-r--r-- | mod/page.hxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mod/page.hxx b/mod/page.hxx index b7f895e..6d18f36 100644 --- a/mod/page.hxx +++ b/mod/page.hxx @@ -7,6 +7,8 @@ #include <libstudxml/forward.hxx> +#include <libbbot/manifest.hxx> + #include <web/xhtml-fragment.hxx> #include <libbrep/types.hxx> @@ -90,6 +92,22 @@ namespace brep const char* plural_; }; + // Generates table row element, that has the 'label: value' layout. + // + class TR_VALUE + { + public: + TR_VALUE (const string& l, const string& v) + : label_ (l), value_ (v) {} + + void + operator() (xml::serializer&) const; + + private: + const string& label_; + const string& value_; + }; + // Generates package name element. // class TR_NAME @@ -347,6 +365,20 @@ namespace brep const string& comment_; }; + // Generates package build result status element. + // + class SPAN_BUILD_RESULT_STATUS + { + public: + SPAN_BUILD_RESULT_STATUS (const bbot::result_status& s): status_ (s) {} + + void + operator() (xml::serializer&) const; + + private: + const bbot::result_status& status_; + }; + // Generates package description element. // class P_DESCRIPTION |