Commit graph

3984 commits

Author SHA1 Message Date
385bb40b48 Fixed control links 2012-04-21 16:08:57 +00:00
c760ba1c76 Slightly improved error ratio output 2012-04-21 15:46:45 +00:00
172f1c901a * Revamped and condensed health output
* Added error ratio for last 5 minutes. Fixes issue 65.
2012-04-21 15:35:44 +00:00
8e0e494d9a Implemented selection of macro code on click 2012-04-21 14:55:15 +00:00
c321c837d0 Fixed another occurrence of bug described in previous commit 2012-04-21 13:58:00 +00:00
4304d5c2ab Fixed strange bug causing the following macro structure to throw [Macro error in gettext: TypeError: Cannot find function replace in object Public. (/opt/helma/apps/antville/code/Global/i18n.js#100)]:
<% gettext <% item.status | capitalize %> %>
2012-04-21 13:57:17 +00:00
4f51765105 Fixed page width 2012-04-20 23:52:08 +00:00
e250a1bf3c Fixed i18n 2012-04-20 23:43:32 +00:00
bc2a770097 Improved diff view of skins (side-by-side, lighter colors, controls) 2012-04-20 23:21:50 +00:00
ebcf50bfe6 Implemented syntax highlighting in skin editor using Code Mirror from http://codemirror.net 2012-04-20 19:11:56 +00:00
0642342673 * Fixed issue requiring java.net.IDN class (ie. Java version >= 1.6) when creating a site
* Improved checks for site name containing problematic characters when used in vhost environment
2011-07-14 14:32:07 +00:00
2ebcb20184 Removed "final" as default string for the development part of Root.VERSION 2011-06-28 07:58:55 +00:00
f65641e28f Fixed link to Helma Documentation 2011-06-27 20:22:23 +00:00
66951ca743 Completed API documentation 2011-06-27 20:17:21 +00:00
a4bd814c47 Fixed typo 2011-06-27 20:15:55 +00:00
3954dc9894 Fixed some (missing) API doc tags 2011-06-27 20:14:55 +00:00
5732b470a5 Added missing API doc comments 2011-06-27 19:19:12 +00:00
Philipp Naderer
c7803133b3 Added addition parameters to API methods to upload images. 2011-06-27 13:52:02 +00:00
2f0b263110 Fixed bug in Story.format_filter() causing exception when replacing pseudo-quotes with their entities 2011-06-27 11:51:05 +00:00
c12b9f7c72 Renamed static antville-1.2.js to antville.js – version is now determined in query string 2011-06-16 09:47:31 +00:00
53e3848b14 Escaped false quotes to smooth things out with TextMate 2011-06-16 09:28:26 +00:00
b897dd7b16 Replaced rotten links with equivalent web.archive.org URLs 2011-06-16 09:16:00 +00:00
4df1183c03 Removed confusing comment 2011-06-16 08:59:40 +00:00
d483c14650 Trying to reduce SQL queries and thus speed up things by issuing HopObject.prefetchChildren() requests for metadata and layout images 2011-06-09 08:43:46 +00:00
b860191347 Trying to improve site deletion routine:
* Call Admin.purgeSites() from scheduler() to reduce delay between deletion date and running nightly()
 * Do not remove already existing deletion job, can be useful for debugging
 * Do not increase Site.deleted property when queueing the deletion job
 * Remove deletion job if exists and the site status has been changed again to prevent undesired deletion of sites
2011-06-09 08:25:24 +00:00
8f788da1b2 Fixed the Sql.SEARCH query to be compatible with PostgreSQL, too 2011-06-06 14:53:21 +00:00
a72fd7e1ee Fixed Sql.SEARCH query to only output distinct IDs to prevent redundant results 2011-06-06 14:31:23 +00:00
06406614db Fixed regular expression to remove single and double ticks (aka false quotes); using hexadecimal codes to prevent my editor from choking. 2011-06-06 07:00:15 +00:00
2de6c6ff15 Added default parameter to macro of connect feature; not really beautiful but for now it should be ok. 2011-06-06 06:33:25 +00:00
98bfb0b0db Fixed Root.VERSION to print build variables instead of [object Object] when the version string pattern cannot be applied 2011-06-04 18:53:00 +00:00
2174ec3ab4 * Fixed bad bug in User.update() causing user.email and user.url to be overwritten even with invalid data
* Added connect feature to user profile by providing links to connect and disconnect from the various services
 * Updated Scribe library to version 1.2 (used by connect feature)
2011-06-04 10:53:35 +00:00
2837612b49 Improved display of window title in Archive by calculating res.data.title more elaborately in Archive.main_action() 2011-05-29 13:55:47 +00:00
f51d2fb0ca Slightly modified last change by using Number() instead of parseFloat() 2011-05-28 15:29:32 +00:00
b28007a3aa Fixed bug in Metadata.getValue() when calculating a Date type value 2011-05-28 15:25:20 +00:00
8b852014a2 Removed display of concrete time values in global formatDate() 2011-05-21 17:04:02 +00:00
b0ab9f6ba2 * Added new formats to global formatDate() method: text and iso
* Changed format argument to text for modified sites on frontpage and content in history
 * Fixed assignment of Root.VERSION in Layout.getArchive()
2011-05-21 09:47:01 +00:00
9679f3d561 * Removed Site.longDateFormat and Site.shortDateFormat properties; date formatting is now completely delegated to the underlying JVM
* Removed <select> elements for long and short date formats in $Site.edit skin
 * Removed compatibility support for long and short date formats
 * Removed global getDateFormats() method and commented code in global formatDate() method
 * Slightly shortened <select> elements in site preferences again
2011-05-16 16:52:21 +00:00
84fd98200e * Rewrote global getTimeZones() method
* Rewrite client-side code for reformatting the time zone <select> element according to changes in global getTimeZones() method
 * Replaced “return false” with call for event.preventDefault() in client-side event-driven code
 * Rewrote global getDateFormats() and formatDate() methods – caution! getDateFormats() will be removed in the next commit because the dropdown menus in site preferences are obsolete; just committing the code for the record
2011-05-16 16:35:41 +00:00
0f7c8f53e1 * Slightly modified Story.content_macro() in compat to prevent leaking of param properties into HTML attributes
* Replaced req.data with req.params in Stories.create_action() and Images.create_action() to prevent leaking of unwanted data (e.g. http_*) to the database
* Renamed and refactored Story.setMetadata() to Story.setCustomContent()
* Renamed Story.isMetadata() to Story.isCustomContent()
2011-05-15 14:42:54 +00:00
5a05bc3d48 Added empty string as fallback for the feed channel description in Root.updates_xml_action() as new metadata could render a missing tagline as null 2011-05-08 12:03:12 +00:00
db1af9e7ce Upgrade to code from Crockford’s json2.js as of 23 Feb 2011 (see https://github.com/douglascrockford/JSON-js/blob/master/json2.js) 2011-05-08 11:52:02 +00:00
778921abed Added optional third argument defining a user to Admin.queue() 2011-05-08 11:46:14 +00:00
7b4e241cff Added padded JSON response to error handler 2011-05-04 13:50:44 +00:00
0580f0ae33 Replaced SHORTDATEFORMAT constant which since has been removed with literal date format string 2011-04-07 12:09:37 +00:00
4678f272b6 Implemented first draft of JSONP support for creating stories and images as a new part of the Antville API. I.e. it is now possible to create an image (cross-domain!) from within client-side JavaScript simply by calling e.g. Images.create_action() and also providing a name for the callback method in req.data.callback:
* Added JSON.pad() and JSON.sendPaddedResponse() methods
 * Added calls for JSON.sendPaddedResponse() in Stories.create_action() and Images.create_action()
2011-04-05 12:34:30 +00:00
468809b033 Added JSON.pad() method for wrapping data in a JSONP-compatible response 2011-04-04 18:16:12 +00:00
b5947d888a Changed way to invoke Feature.getPermission() by using Function.apply() with object instance and arguments array 2011-03-29 11:18:45 +00:00
cc4c31b46d * Added calls for HopObject.deleteMetadata() in HopObject.remove() methods of prototypes using Metadata
* Removed call for Site.processHref() method in Site.getStaticUrl() - still to be evaluated
 * Added call for Feature.getPermission() in Site.getPermission()
2011-03-29 10:54:19 +00:00
1ee2440f80 * Moved <script> element back to the page header for now – needs more care because some pages using JavaScript stopped from working correctly 2011-03-29 10:13:26 +00:00
e9b9391517 * Moved <script> element to the bottom of the page
* Replaced sidebar list of recent postings with recent comments and changed section title accordingly
2011-03-29 09:03:20 +00:00