2014-02-21 12:02:31 +01:00
|
|
|
|
|
|
|
|
|
#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";
|
2014-02-22 18:03:05 +01:00
|
|
|
|
output += u8"<a href=\"" + it.second->get_loadurl() + u8"\">"; //we could include baseurl here?
|
2014-02-21 12:02:31 +01:00
|
|
|
|
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>
|
|
|
|
|
|