• last updated 15 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
adding missing displayed_object_id, to get CKfinder working

Use 'attachments::detach_url' instead of building manually the URL

Remove form debug code

Forum attachments reform.

- Add new style of attachments to the forums, allowing multiple attachments to a single message directly from the message post page, using the multiple file input widget.

- Retain compatibility with old style attachments, using the new 'AttachmentStyle' package instance parameter. Currently, this supports two values: 'simple' (new behavior) and 'complex' previous behavior.

- Both attachment styles can coexist, and attachments added by any of such methods will be shown.

- Improve the contract on 'forums/lib/message/post.tcl'.

- Show attachments on message preview.

- Bump version number.

  1. … 1 more file in changeset.
Add 'alt_template' to include contract

Add include contract and 'preview' view to the attachment list

Require admin privileges for attachment deletion in the forum, the same as for message editing

Put the delete link to the right of the attachment

Add the 'detach' option on the attachment list, for users with write permissions on the message

Generalize attachment size logic in forum posts, so different object types, such as 'content_item', 'content_revision', and their subtypes, are supported

Move 'util::content_size_pretty' into 'acs-lang' and rename it to 'lc_content_size_pretty', localicing 'bytes' and adapting automated tests. Bump 'acs-lang' version.

  1. … 41 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

Show attachment size in forum messages

Use the attachment icon, available since 10+ years, for forums attachments.

  1. … 1 more file in changeset.
Only show the possibility to allow/disallow attachments in the forum new/edit pages if the attachments package is already mounted under the forums package instance

  1. … 1 more file in changeset.
Whitespace changes

  1. … 2 more files in changeset.
Modify user interface to allow/disallow attachments per forum, on forum creation and editing. Added message keys and bumped version as well.

  1. … 7 more files in changeset.
Cleanup trailing whitespace

Extend 'forum::attachments_enabled_p' with 'forum_id', so attachments ca be enabled per forum (see previous commit), and update underliying logic to make use of it.

  1. … 2 more files in changeset.
Reduce divergency between oracle and postgres codebase

    • -19
    • +0
    ./forums/forums-chunk-postgresql.xql
  1. … 3 more files in changeset.
fix invalid markup

follow usual indentation

ad_sign: generalize last ad_sign handling to

allow user and csrf binding

  1. … 2 more files in changeset.
use user-specific sign operations for protecting delete operations

  1. … 1 more file in changeset.
Secure forums delete button by protecting the message_id with a timed signature

  1. … 1 more file in changeset.
improve spelling

  1. … 8 more files in changeset.
show forum-edit link only, if the current forum is from the current package (see admin/forum-edit)

use consistently bind variables

improve rowcount expressions

  1. … 66 more files in changeset.