HTML generator: Make screenshots clickable.

This commit is contained in:
tastytea 2020-07-02 11:43:17 +02:00
parent 92e137f3b2
commit d4f4e8ae16
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 4 deletions

View File

@ -118,10 +118,10 @@ void write_html(ostream &out, const vector<entry_type> &entries)
out << "</p>\n";
if (!entry.screenshot_filepath.empty())
{
out << " <p><strong>Screenshot:</strong><br>\n";
out << " <img src=\"" << entry.screenshot_filepath
<< R"(" height="100">)" << '\n';
out << " </p>\n";
out << " <p><strong>Screenshot:</strong><br>"
<< "<a href=\"" << entry.screenshot_filepath << "\"><img src=\""
<< entry.screenshot_filepath << R"(" height="100"></a></p>)"
<< '\n';
}
out << " </details>\n";
}