Commit graph

62 commits

Author SHA1 Message Date
a220b25945 Fixed menu extension (hypothetically… did not test) 2015-01-04 19:21:13 +01:00
af65759912 Fixed incorrect warning about site deletion when unsubscribing from a site 2015-01-04 19:12:49 +01:00
00d645e9c8 Implemented client-side script to prevent duplicate form submits
Removed client-side click handler for cancel links and used macros or simple relative paths instead
2015-01-04 13:35:59 +01:00
163025eb23 Refactored site list 2015-01-01 21:03:26 +01:00
a98b7fddb3 Refactored site search 2015-01-01 21:00:43 +01:00
b5a7cdbcb7 Refactored remaining prototypes for UIKit support as well as unified and smoothed already refactored ones 2014-12-21 17:22:01 +01:00
73089d0658 Slightly improved site settings display 2014-12-17 23:56:06 +01:00
11cd154c28 Replaced dark trash icon with lighter version 2014-12-16 23:03:58 +01:00
55931a76e4 Improved form elements by adding appropriate types and limits as well as CSS classes 2014-12-14 10:20:04 +01:00
5099287624 Added textarea for keeping administrative notes about sites.
Fixes issue 42
2014-12-12 14:50:50 +01:00
5688cabffa Refactored delete action for HopObject, Site and Comment 2014-12-10 16:50:16 +01:00
55ceb24208 Refactored site admin for UIKit and delegation of admin tools to actual site 2014-12-08 20:19:12 +01:00
d15b899f47 Restyled more skins for working with UIKit 2014-11-09 20:22:42 +01:00
c505b8e7b4 Created client-side antville.js with Browserify:
`browserify main.js -p [minifyify --map main.map.json --output main.map.json] > main.min.js`
2014-07-04 21:14:00 +02:00
3e769d3d6e Cleaned up whitespace with Sublime Text 2 2014-07-04 15:30:46 +02:00
83105d0217 Added client-side code to reflect state of callbackMode in callbackUrl input 2013-04-06 21:55:25 +00:00
b6095cc869 Added referrer as “via” to bookmarklet text 2012-07-20 17:46:12 +00:00
b1cc83945c Added support for text selection: selected text will be wrapped in hyperlink to source URL and used as default value for text input 2012-06-04 18:42:19 +00:00
50c331f86f * Moved Root.static_macro() to Site
* Added call for Site.processHref() before returning result of Site.getStaticUrl()
 * Fixed URL in bookmarklet link of $Site#edit skin
2012-05-29 11:53:49 +00:00
f997f56c77 Fixed wrong setting of image width and height 2012-05-24 12:46:37 +00:00
61b843629e Added arguments for max. width and height of the image 2012-05-24 12:40:02 +00:00
38443d4e79 Removed <% request.http_host %> macro from bookmarklet as it seems to be necessary only for my local installation 2012-05-24 11:51:35 +00:00
7cdc36d9bc Added bookmarklet for easily posting a story and one image with a link to the URL of the active
browser window or tab. Only tested with Chrome, needs further testing with other browsers.
2012-05-24 11:48:09 +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
Christoph Leutner
9776619fb4 Corrected text in Site Preferences - cf. issue 127. 2010-11-30 02:43:20 +00:00
5a1cad862c Finalized Open Search Description feature (see http://www.opensearch.org for more information) 2010-05-30 13:39:09 +00:00
ae44c39d6f * Heavily edited wording of gettext() calls in notification messages
* Removed numbered, footnote-like links in most of the noficitaion messages
 * Added prefix to subjects of notification mails (like “[Antville] ...”) for convenience
 * Added markgettext() calls for most of the prototype names and their plural forms – this time in each corresponding prototype file, though
 * Added options argument to global sendMail() method, currently only to switch inclusion of generic footer in mail body
 * Fix bug in Membership.contact_action() method when an unknown (i.e. unregistered or unsubscribed) user tries to send a message via contact form
 * Unified naming of notify skins (e.g. #notify_delete instead of #notify_deletion)
 * Updated and rebuilt i18n and message files
2010-05-24 13:32:40 +00:00
Christoph Leutner
98bb544ea8 Changed site exporting dialogue - issue 104 comments 6, 7. 2010-05-06 21:48:51 +00:00
Christoph Leutner
e68a2607ef Referrers: added 'bing' as search engine instead of search.msn.tld and search.live.com 2010-05-03 22:27:20 +00:00
Christoph Leutner
3aba0fb64f Changed wording for displaying the referrer list including spam: the previous wording made some people think they had to check the box to 'include' links as 'referrer spam' to the blacklist, see e.g. the comment by arboretum http://hilfe.blogger.de/stories/1615243/comments/1623743 2010-05-03 12:24:05 +00:00
259bd2c68b Replaced hard coded file upload element with Antville enhanced one :) 2010-04-25 20:19:32 +00:00
12309653a5 * Decentralized markgettext() calls by moving them from i18n.js to the places where the messages actually are defined
* Added markgettext_macro()
 * Readjusted Admin.dropdown_macro() and the global defineConstants() methods to work with the modified markgettext() calls
 * Updated Members.properties and added SQL patch for lowercasing all membership status due to the modified margettext() calls
 * Added Membership.role_macro() as convenience method
 * Removed syntactic sugar from HopObject.link_macro() and moved it to the compatibility layer to prevent current layouts from breaking
 * Removed obsolete permission for non-existing Image.replace_action()
2010-04-25 17:31:44 +00:00
01b15b36f0 * Added stop button to export/import features, cancelling a previously started job
* Added some messages to the export/import features
 * Added routine to remove the corresponding file after successful import
2010-04-24 12:28:29 +00:00
65c139bc6e * Rewrote global Importer() and Site.import_action() for compatibility with Blogger.com export format using Rome parser
* Simplified Site.export_action()
 * Wrapped run() method of Importer and Exporter in try/catch clause
2010-04-23 19:51:40 +00:00
5d710ed6d7 * Added Admin.Job prototype representing objects suitable for persistent asynchronous tasks
* Refactored Admin.queue(), Admin.dequeue() and Admin.purgeSites() methods to use new Admin.Job prototype
 * Refactored Exporter and Importer objects to use new Admin.Job prototype (the way sites are im/exported still needs to be rewritten)
 * Refactored resetting and importing a layout to always backup the current layout in a temporary ZIP file
 * Moved import_action() method along with corresponding skins from Root to Site
 * Moved #create skin from $Root to $Site
 * Added the root site itself to the Root.sites collection
 * Permitted deletion of the root site by adding appropriate checks and treatment in Site.remove()
 * Moved call for Admin.dequeue() from scheduler() to nightly() method
 * Removed obsolete Admin.importExport() method
 * Removed obsolete app.data.exports and app.data.imports properties
2010-04-10 21:53:53 +00:00
Christoph Leutner
cb9cbad111 Removed site status explanation from the user interface cf revision 4059 2010-04-08 12:40:29 +00:00
Christoph Leutner
053b8d2ef5 Add an explanation what the site status options mean. 2010-04-07 03:57:59 +00:00
Christoph Leutner
a5f3dbc510 Capitalize URL in message. 2010-04-07 00:03:54 +00:00
Christoph Leutner
16f1001a8e Site preferences page: comment out the useless (and therefore ugly) dropdown menu in the 'paging' dialogue 2010-04-04 02:08:10 +00:00
Christoph Leutner
314a99e2eb Changed wording of notification that JavaScript is necessary to see the referrers and backlinks - the old 'To prevent spam abuse...' led to the misconception that backlink spamming should be in fact prevented. 2010-04-03 00:56:02 +00:00
2a7462a2eb * Tested and fixed Admin.purgeSites() method
* Fixed global nightly() scheduler method to run only once even if the main scheduler is running many times per minute
 * Fixed call for jala.i18n.setLocaleGetter() method in Global to prevent nasty exceptions in scheduler methods (ie. where res.handlers.site is not set)
 * Fixed bug in Root.getCreationPermission() method
 * Updated i18n template, catalog and message files
 * Minor change in $Site#create skin
2010-01-16 10:57:01 +00:00
80831e6ad7 Modified Site.diskspace_macro() to either output free or used disk space and always show it in $Site#edit skin 2010-01-15 22:18:03 +00:00
5523ab28d2 * Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features
* Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype
 * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites
 * Renamed Root.getScopes() method to Admin.getNotificationScopes()
 * Renamed User.getScopes() method to Admin.getCreationScopes()
 * Added Admin.getPhaseOutModes() method
 * Removed obsolete code
 * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection
 * Finally added simple and reasonable quota implementation
 * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments
 * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used
 * Fixed some i18n messages
 * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen
 * Completely rewrote HopObject.notify() method (hopefully fixing issue 49)
 * Check free disk space before invoking create_action() of Files and Images prototypes
 * Modified output of Membership.toString() method
 * Fixed some linebreaks in Membership.skin
 * Added option to set session.data.error for additonal information in $Root#error skin
 * Slightly modified output of $Root#health skin
 * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode
 * Removed qualifyingDate property from Root
 * Renamed Root.qualifyingPeriod property to Root.probationPeriod
 * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root
 * Added replyTo property to Root
 * Rewrote Root.getCreationPermission() method
 * Added #notify_blocking and #notify_deletion skins to $Site.skin
 * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified
 * Added Site.diskspace_macro() returning the free disk space in MB
 * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
841d17c05e * Edited and rephrased some messages (still needs a lot of work)
* Added gettext calls and macros where missing
 * Removed obsolete LogEntry.remove() method
2010-01-10 16:33:46 +00:00
32c52791fe * Refactored code and skins in respect for comprehensive i18n
* Refactored and unified remove() methods and calls for greater flexibility as well as reliability
 * Added option to remove all comments by a user to Comment.remove() method and $Comment#delete skin
 * Added global #listItemFlag skin as well as listItemFlag_macro() for rendering vertically written text of items in a list view (e.g. closed)
 * Fixed bug in gettext_macro() and ngettext_macro() causing incorrect whitespace
 * Refactored timezone and locale handling
 * Modified automatic translation of untitled links in HopObject.link_macro()
 * Added honeypot to login and registration forms
 * Fixed client-side JavaScript to be evaluated when login or registration form is submitted, not only when the submit button is clicked
 * Removed redundant filter expression from DB mapping of Membership.images collection
 * Added Membership.content collection
 * Changed terminology from open to running polls, thus renaming Polls.open_action() method and Polls.open collection
 * Moved a lot of CSS used in root or administration sections from Site#stylesheet to $Root#stylesheet skin
 * Added Root.updateDomains() method (most likely already obsolete)
 * Removed Root.processHref() method (only necessary for very advanced setup) and obsolete comments
 * Fixed Root.xgettext() method to correctly read UTF-8 encoded data
 * Fixed Site.deleted_macro() to return the date object for late formatting
 * Refactored Site.processHref() for more convenient custom domain name mapping
 * Renamed Skins.advanced_action() method to Skins.all_action()
 * Removed redundant filter from Stories.comments collection
 * Removed unnecessary filter from Story.comments collection
2010-01-10 14:40:36 +00:00
5ec14e5c06 Skin spring cleaning: unified and restructured skin parts and removed obsolete markup 2009-12-13 21:54:58 +00:00
091de300c7 Defined res.handlers.example in Root.create_action() to provide a working example URL in description of $Site#create skin 2009-10-28 15:03:42 +00:00
86ade4f962 Updated reference URL for filter patterns (regular expressions) 2009-10-28 14:39:48 +00:00