• last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
allow passing of template variables as icon name (which are resolved later)

There is no year zero in the Gregorian calendar

bumped version numbers to reflect dependency on sitemap icon

  1. … 2 more files in changeset.
added sitemap icon

shorten the description test and remove fa specifics

extended adp:icon

- added the feature "invisible" to <adp:icon....>

- added generic names "admin", "cog", "folder-add", "permissions", "search", and "unmount"

- added an overview page of adp-icons to the sitewide admin page

- bumped version to 5.10.1d22

UI improvements

- fixed link for reloading on apm/version-view page

- added generic icon name "check" (common icon name for checkmark)

- bumped version of acs-templating to 5.10.1d21

- bumped version of acs-admin to 5.10.1d3

  1. … 4 more files in changeset.
adp:icon: quote content of the "title" attribute

improved adp:icon support

- added images for arrow left and arrow right

- added arrow-left and arrow-right to the list of all supported icon sets

  1. … 4 more files in changeset.
added support for listing matches of multiple patterns

Just provide URN patterns separated by blanks (URN must no contain blanks)

added support for listing all registered URN of an OpenACS instance

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

    • -0
    • +0
    ./www/sitewide-admin/index.tcl
  1. … 1 more file in changeset.
file index.adp was initially added on branch oacs-5-10.

    • -0
    • +0
    ./www/sitewide-admin/index.adp
  1. … 1 more file in changeset.
registered-urns: new adp-include for listing registered URNs

This function is useful e.g. for the packages using optionally

CDN or local resources. It helps an admin for testing the

registered resources (e.g. via sitewide-admin pages).

Bump version number to 5.10.1d19.

file registered-urns.adp was initially added on branch oacs-5-10.

    • -0
    • +0
    ./lib/registered-urns.adp
file registered-urns.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./lib/registered-urns.tcl
reduce verbosity

avoid the usage of images for sorting order icons

  1. … 4 more files in changeset.
provided a helper proc to query the mapping of a generic icon name to a concrete

This function is necessary in boundary cases, where e.g. a display_template passes the generic

name of the icon via template variables which have to be

@-substituted before adp-tag resolution, which performs the

regular icon name mapping (otherwise, the tag resolver receives

e.g. ...name=@icon@...)

  1. … 2 more files in changeset.
prefer adp:icon over old-style .gif and .png mages

  1. … 2 more files in changeset.
prefer adp:icon over old-style .gif images

  1. … 2 more files in changeset.
Rset, rather than count, existing handlers in the test

improve spelling

  1. … 7 more files in changeset.
Make so that the path where the file is stored is returned by the request, in a way that should be correct on MacOS where the temp folder is user specific and cannot be therefore assumed to be /tmp for everyone

provide img icon for reload operations

main purpose is to provide a more reasonable look&feel when no iconsets are installed.

  1. … 1 more file in changeset.
improve log message

show that test fails under macOS

Fix acs-templating templates_and_scripts test, the multirow is called "body_script" with no s

Define js snippet as an onload handler with identifier so that it is loaded only once

Support for handler for double-click prevention via CSS class

This change makes it possible to provide a double click prevention for

HTML elements via the CSS class "prevent-double-click". The double

click prevention deactivates a button or an anchor element after

clicking for a short time (per default for 1s) and ignores in this

time window further clicks. The time window can be specified via the

data element oacs-timeout. When a double click occurs, the duplicate

click is determined at the client side (in the browser) such that the

first request will continue to run and will render its result when

finished. Without double-click prevention (or with the

double-click-prevention on the server side), the results of the first

request are lost for the client, although these are still computed at

the server side.

Usage Example:

<p>text with a <a class="prevent-double-click" data-oacs-timeout="2000" href="/slow.tcl?t=10s">link</a>

<p>

<form action="/slow.tcl">

<input class="btn prevent-double-click" data-oacs-timeout="2000" type="submit" value="Submit">

...

</form>

By reactivating the button automatically after the timeout, this

approach works also reasonable well when opening additional tabs or

browser windows.

The handler and implementation are designed to work with streaming

HTML, provided that "template::collect_body_scripts" is called (like

the reset of the template::* styling interface).

When HTML elements are deactivated, the DOM property "disabled" is set

as well as a CSS class "disabled". Since disabled anchors are

visually not different from non-disabled anchors, this CSS class can

be used for styling disabled anchors differently.