29 lines
724 B
C++
29 lines
724 B
C++
|
|
|||
|
#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>
|
|||
|
|