mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
modules/webhook: Use background colors for labels.
This commit is contained in:
parent
bff7373918
commit
9ebc536534
1 changed files with 14 additions and 5 deletions
|
@ -560,12 +560,15 @@ github_handle__issues(std::ostream &out,
|
|||
for(const json::object &label : labels)
|
||||
{
|
||||
out << "<li>";
|
||||
out << "<font color="
|
||||
<< label["color"]
|
||||
<< ">";
|
||||
out << "<font color=\"#FFFFFF\""
|
||||
<< "data-mx-bg-color=\"#"
|
||||
<< unquote(label["color"])
|
||||
<< "\">";
|
||||
|
||||
out << "<b>";
|
||||
out << " ";
|
||||
out << unquote(label["name"]);
|
||||
out << " ";
|
||||
out << "</b>";
|
||||
|
||||
out << "</font>";
|
||||
|
@ -670,12 +673,15 @@ github_handle__label(std::ostream &out,
|
|||
|
||||
out << "<ul>";
|
||||
out << "<li>";
|
||||
out << "<font color=\"#"
|
||||
out << "<font color=\"#FFFFFF\""
|
||||
<< "data-mx-bg-color=\"#"
|
||||
<< unquote(label["color"])
|
||||
<< "\">";
|
||||
|
||||
out << "<b>";
|
||||
out << " ";
|
||||
out << unquote(label["name"]);
|
||||
out << " ";
|
||||
out << "</b>";
|
||||
out << "</font>";
|
||||
out << "</li>";
|
||||
|
@ -715,12 +721,15 @@ github_handle__label(std::ostream &out,
|
|||
out << "from: ";
|
||||
out << "<ul>";
|
||||
out << "<li>";
|
||||
out << "<font color=\"#"
|
||||
out << "<font color=\"#FFFFFF\""
|
||||
<< "data-mx-bg-color=\"#"
|
||||
<< color
|
||||
<< "\">";
|
||||
|
||||
out << "<b>";
|
||||
out << " ";
|
||||
out << name;
|
||||
out << " ";
|
||||
out << "</b>";
|
||||
out << "</font>";
|
||||
out << "</li>";
|
||||
|
|
Loading…
Reference in a new issue