Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (793 - 795 of 2152)

Ticket Resolution Summary Owner Reporter
#2527 wontfix Implement a method of loading templates into the demo site aron.carroll aron.carroll

Reported by aron.carroll, 23 months ago.

Description

JavaScript? needs to be able to insert html templates into the document.

There are three common solutions to templating at the moment.

  1. Insert the html into <script> tags at the bottom of the page and pull them in using the DOM and innerHTML. This is a very simple solution but not very portable.
  2. Request the HTML snippets as plain text/html using XHR. This adds an extra HTTP request per template but is very clean. It would also be possible to inline the HTML into the JS at the minification stage for production.
  3. Include the HTML in JavaScript? strings (horrible to maintain and bloats the js)

It makes sense to keep these with the other templates so that we can take advantage of localisation where possible. This indicates 1 or 2.

#1199 fixed Implement an email function for users. pudo pudo

Reported by pudo, 3 years ago.

Description

We need an email function in CKAN to accept messages sent to users. The basic signature will be:

  • mail_user(user_obj, subject, body, mime_type='text/plain', headers={})

This has a number of use cases:

  • Retrieval of lost passwords
  • E-Mail confirmation

Finally, the mail function should be exposed in the API for sysadmin clients. This way we can have scripts traverse CKAN for 404s, invalid data or missing fields and ping users about that automatically (requires traversal by revision, not package, to get the associated users).

Implementation

Note we have already written code like this (*and* tested it) in isitopen:

#671 fixed Implement and show user names in WUI pudo pudo
Note: See TracQuery for help on using queries.