sic/src/DynamicObjects.cc

29 lines
724 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "DynamicObjects.H"
//add parameter for ordering??
std::string DynamicObjects::render_object_list(){
std::string output = u8R"FOO(
<ul id="down">
)FOO";
for (auto it : this->_themap){
output += u8"<li>\n";
output += u8"<a href=\"" + it.second->get_loadurl() + u8"\">";
output += it.second->get_fname();
output += u8"</a> <span class=\"size\">";
output += it.second->bytesize_string();
output += u8"</span>\n</li>";
}
output += u8R"HUENERBLUBBE(
</ul>
)HUENERBLUBBE";
return output;
}
//<li>
//<a href="/file/23/Foobar.jpg">Foobar.jpg</a> <span class="size">80 KB</span>
//<span class="stats"><b>42×</b> seit 1.1.1970 0:00 Uhr</span> //<--- TODO
//</li>