• last updated 16 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Prettify data size using 'util::content_size_pretty'

Trailing whitespace cleanup

Prettify data size using 'util::content_size_pretty'

let test run without runtime errors

    • -10
    • +12
    /openacs-4/packages/xowiki/www/admin/test.tcl
Whitespace changes

Prettify data size using 'util::content_size_pretty'

  1. … 19 more files in changeset.
Improve content_type detection on forum attachments, and avoid redirecting to external hosts on URLs

Url attachments in forums: use URL icon and avoid showing the size

Fix es_* message key

Preserve old logic on total size increment

Show attachment size in forum messages

Whitespace changes

Use 'util::content_size_pretty' instead of manually prettifying data sizes

Use 'util::content_size_pretty' instead of manually prettifying data sizes

Add new proc 'util::content_size_pretty', to prettify data size given in bytes, and its automated tests.

It supports both binary and decimal representations, a resolution up to YB/YiB, and setting the precision via parameter.

It should replace ad-hoc size prettyfication done manually in several places of the codebase.

Fix workflow_constructs automated test: in this case, workflow context is not resolved and "::" is returned instead, which is not a command and would make this proc fail

    • -5
    • +8
    /openacs-4/packages/xowf/tcl/xowf-procs.tcl
Keep the eventual language prefix in the name, as it is useful to distinguish e.g. pages from folders with the same name

    • -2
    • +2
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
don't catch all render_icon calls

    • -1
    • +3
    /openacs-4/packages/xowf/tcl/xowf-procs.tcl
- added support for render_icon method

- improved error messages

    • -4
    • +36
    /openacs-4/packages/xowf/tcl/xowf-procs.tcl
improve spelling

added an addtional interaction type for uploading files upload_interaction

the basic interaction types are now:

- text_interaction

- upload_interaction

- mc_interaction (supporting as well single choice)

new includelet: link-with-local-return-url: insert a link with extra return URL pointing the current object.

improve robustness in view-mode

improve configurability of menu entries: support passing extra query parameters

improve configuratbility of make_form_link: support passing extra query parameters

    • -3
    • +3
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
Try to improve doc a bit. The proc seems to need some refactoring.

Don't send HTML mail as plain text

Don't send HTML mail as plain text

use glyphicons for file types in file listings (e.g. child-resources)

    • -4
    • +5
    /openacs-4/packages/xowiki/tcl/folder-procs.tcl
    • -12
    • +7
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
fix typo