Mark unreachable instances as unreachable in HTML output.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7dd89a3d9b
commit
60d89e775d
|
@ -87,10 +87,24 @@ void write_html(ostream &out, const vector<entry_type> &entries)
|
||||||
{
|
{
|
||||||
out << "\n";
|
out << "\n";
|
||||||
out << " <details id=\"" << entry.instance << "\">\n";
|
out << " <details id=\"" << entry.instance << "\">\n";
|
||||||
out << " <summary>" << entry.report_time.substr(0, 10) << ": "
|
out << " <summary>";
|
||||||
<< entry.instance << "</summary>\n";
|
if (entry.unreachable)
|
||||||
out << R"( <a href="#)" << entry.instance
|
{
|
||||||
|
out << "<del>";
|
||||||
|
}
|
||||||
|
out << entry.report_time.substr(0, 10) << ": " << entry.instance;
|
||||||
|
if (entry.unreachable)
|
||||||
|
{
|
||||||
|
out << "</del>";
|
||||||
|
}
|
||||||
|
out << "</summary>\n"
|
||||||
|
<< R"( <a href="#)" << entry.instance
|
||||||
<< R"(" class="small">Hyperlink to this entry</a>)" << '\n';
|
<< R"(" class="small">Hyperlink to this entry</a>)" << '\n';
|
||||||
|
if (entry.unreachable)
|
||||||
|
{
|
||||||
|
out << " <p><em>This instance is currently "
|
||||||
|
"unreachable.</em></p>\n";
|
||||||
|
}
|
||||||
out << " <p>" << cgi::text2html(entry.description) << "</p>\n";
|
out << " <p>" << cgi::text2html(entry.description) << "</p>\n";
|
||||||
out << " <p><strong>Tags:</strong> ";
|
out << " <p><strong>Tags:</strong> ";
|
||||||
for (const auto &tag : entry.tags)
|
for (const auto &tag : entry.tags)
|
||||||
|
|
Reference in New Issue