hectorr in OpenACS

Whitespace changes

Add parameter 'version' also to 'template::head::add_javascript' and 'template::head::add_script'

Add parameter 'version' to both 'template::head::add_css' and 'template::head::flush_link', in order to add a version to certain resources, as a query parameter, to perform 'cache busting' and forcing retrieval of stale files by the browser

Whitespace changes

Do not assume a package is installed only if it has an entry in the 'apm_package_types' table. This fixes the issue of package upgrade prompting, in not installed packages, that still have an entry in 'apm_package_types'

Allow to undelete a message from acs-lang 'edit-localized-message', instead of showing the option to delete it whatever the state is

Refactor acs-lang 'admin/index' page, adding the new columns 'total' and 'deleted' to the listing, and reworking the query so it is faster (53ms -> 7ms), correct (number of messages by state are computed coherently with other acs-lang pages) and gives more information

file index.xql was initially added on branch oacs-5-10.

    • -0
    • +0
    /openacs-4/packages/acs-lang/www/admin/index.xql
Refactor acs-lang 'message-list', using a single query for counting the different message states instead of one per state, and simplifying tcl logic

Fix typo

Rework acs-lang 'package-list' query 'packages_locale_status' query (89ms -> 4ms)

Rework acs-lang 'package-list' query 'packages_locale_status_default' query (48ms -> 2ms)

Add deleted column to acs-lang 'package-list', and fixed number of messages depending on status, making it coherent with 'message-list'. Also fixed translated/untranslated count on default locale in 'message-list'. Version bump.

file package-list.xql was initially added on branch oacs-5-10.

    • -0
    • +0
    /openacs-4/packages/acs-lang/www/admin/package-list.xql
Fix untranslated count and view on acs-lang 'message-list' + some refactoring

Fix acs-lang 'admin/message-list' page, making the number of messages in different states coherent, and general refactoring

HTML cleanup

Whitespace changes

Fix message key description edition

Add 'message-undelete' page to make use of the new '::message::undelete' proc for undeleting messages, a couple of icons, the undelete option in 'message-list' and the undelete action in automated tests

file message-undelete.adp was initially added on branch oacs-5-10.

    • -0
    • +0
    /openacs-4/packages/acs-lang/www/admin/message-undelete.adp
file Undelete24.gif was initially added on branch oacs-5-10.

file Undelete16.gif was initially added on branch oacs-5-10.

file message-undelete.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    /openacs-4/packages/acs-lang/www/admin/message-undelete.tcl
Add 'lang::message::undelete', in order to provide an API for undeletion of messages deleted via 'lang::message::delete', and modify 'lang::message::edit' accordingly. Next step would be to provide a user interface for it.

Whitespace changes + Editor hints

Update message key

Trailing whitespace cleanup

CSP: allow frame-ancestors

Fix message key + bump version number