Skip to main content

attachments

Function attachments 

Source
pub fn attachments(list: &CursorPage<WikiAttachment>, ctx: &Context) -> String
Expand description

A page’s attachments.

The name was chosen by whoever uploaded it, so it gets the styling of somebody else’s text, as Tracker’s attachment names do. The Wiki sends the size as a string of megabytes to two places, which a live upload settled (300 KB came back as 0.29); the unit is written out, and a file under five kilobytes, which the Wiki rounds to 0.00, is said to be small rather than empty.