Commit graph

228 commits

Author SHA1 Message Date
ca5e560ef2 Fixed bug causing error when trying to delete a comment (see e-mail from kinomu, 22 Feb 2015 19:20:15 – trinity-4365fa39-f3f6-407b-a241-18f3c180b59e-1424629215534@3capp-gmx-bs61) 2015-03-14 19:23:32 +01:00
90b0124d56 Removed title from default comment form 2015-02-22 14:36:53 +01:00
dd3fbb9a0a Fixed HTML for validation with validator.w3.org 2015-02-22 14:36:00 +01:00
9ef3184d11 Refactored code with required client-side functionality to basically work with disabled JS, too. Fixes #36 2015-02-21 19:21:35 +01:00
7ff4399b05 Escaped text in story preview 2015-02-06 12:02:13 +01:00
6276392100 Removed global client-side scripts array and refactored page-specific scripts, now that library code is loaded at once 2015-01-31 00:00:12 +01:00
69cafa2506 Refactored Story.getAbstract() to also display bold title (if available) 2015-01-21 14:24:23 +01:00
30e078c57d Fixed style of text adjacent to icon 2015-01-21 14:22:14 +01:00
c0ebad15e1 Added scripts array to contain all scripts from individual skins that are going to be executed after library code has loaded asynchronously 2015-01-11 22:05:05 +01:00
6d2a296389 Added tooltips with the full date to output of created / modified values in tables 2015-01-11 13:18:11 +01:00
03ebe385bc Cleaned up CSS.
Moved content of style attributes to main.less or the stylesheet skins of Root and Site.
Adapted original Antville colors for some of UIKits elements (e.g. primary button, default alert, pagination) and the Jala calendar
2015-01-11 13:08:19 +01:00
36105ddec6 Renamed story.summary to story.abstract to get rid of b/w compatibility hell 2015-01-05 22:31:52 +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
c70eb730b1 Always redirect to main action after editing a story, image, comment or poll 2015-01-01 20:32:22 +01:00
7a9abfc984 Modified permissions for editing a comment. Instead of checking the story permissions we only allow editing for the original creator. 2015-01-01 20:30:29 +01:00
824d58bf36 Fixed indentation for replies and enabled Gravatar profile pictures 2015-01-01 20:29:14 +01:00
f9cb122444 Added edit link 2015-01-01 20:25:51 +01:00
4daddb822f Always redirect to the form for more convenience when editing 2014-12-21 17:25:34 +01:00
17d66dd419 Added User.getMembership() method to ease display of comments by a non-member (“virtual membership”) 2014-12-21 17:24:52 +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
83de9d37ca Moved story link to the right 2014-12-17 23:53:34 +01:00
d4869034d6 Refactored comments for UIKit support 2014-12-16 23:09:48 +01:00
ca1fb24f74 Implemented support for a virtual membership to allow batch-deletion of comments by non-members, too.
Removed restriction of preventing comment creators from deleting their own comments.

Fixes issue 101
Updates issue 88
2014-12-14 15:09:07 +01:00
51910a67eb Fixed client-side script for removing all of a user’s comments from a site 2014-12-14 14:39:06 +01:00
5688cabffa Refactored delete action for HopObject, Site and Comment 2014-12-10 16:50:16 +01:00
b6693b0e83 Fixed missing parameter in link macro 2014-12-10 16:46:53 +01:00
ab8560b057 Updated license header and unified comments 2014-07-04 17:16:51 +02:00
a70d7e9029 Replaced most double ticks with single ones 2014-07-04 15:44:41 +02:00
c7d78eba65 Reduced line indent from 3 to 2 spaces 2014-07-04 15:32:18 +02:00
e3a5e68102 Changed signature of HopObject.confirmConstructor() method: argument can now be either a constructor function or a prototype instance 2012-05-12 16:31:43 +00:00
2cb742024d * Added new static add() method to most of the prototypes doing all necessary stuff to create the desired object, updating it, adding it to the right collection etc.
* Disburdened constructor methods of most of the prototypes by moving most of the code to the new static add() method.
 * Added temporary debugging method HopObject.confirmConstructor() to log a warning whenever a constructor is directly called – in which case it should be checked if the static add() method is to be preferred.
 * Removed obsolete code in Poll.edit_action() method.
2012-05-12 13:50:41 +00:00
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
6a4cbcc1ed Fixed camel-case in cacheMode and accessName properties 2011-02-15 18:57:15 +00:00
e5964eb5b9 Improved soft comment deletion:
* If comment contains a child comment set its status to DELETED, erase metadata (content) and prevent macro calls to display creator or modifier
 * Otherwise – or if status already equals DELETED – completely remove it and its children from the database
2011-02-15 18:12:43 +00:00
14cc9a6988 Rewrote Metadata prototype for more efficient database handling:
* Metadata is now written to its own table instead of a column only
 * Values are saved as JSON-like structure only for certain types (like Array or Function)
 * Adding custom metadata is more generic using the new HopObject methods setMetadata(), getMetadata() and deleteMetadata()
 * Searching keys and values via common SQL query is much more straightforward (no JSON-like structure involved when basic types like String and Number)
2011-02-10 23:35:00 +00:00
f500a8d808 Reverted last change; the “Restore” buttons are fully functional in my installation 2010-06-06 06:50:36 +00:00
Christoph Leutner
860b2523f0 Removed inoperable 'restore'-buttons 2010-06-06 04:20:55 +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
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
4ecc50937f Exclude non-members from batch deletion. Fixes issue 88. 2010-04-05 12:41:38 +00:00
0a0e3f4169 Show the hide/show link in replies, too 2010-04-02 14:21:31 +00:00
df4d7a5cac Added missing Comment.text_macro() method with check if the comment is deleted (or rather: hidden) 2010-04-02 14:13:04 +00:00
2835f03425 Added soft comment deletion. Updates issue 43. 2010-04-02 13:50:15 +00:00
158623b089 Disabled comment delete options for the comment author 2010-02-15 21:17:23 +00:00
896f5daf28 * Added Membership.comments collection to fix a bug causing display of the number of comments of a user throughout the whole installation instead of those of the member of the site only
* Replaced custom SQL query in Comment.remove() with code using new Membership.comments collection
 * Removed obsolete Sql.COMMENTS statement
 * Added getConfirmText() method to Comment, File, Image, Layout, Membership, Poll, Skin and Story prototypes – which is used in HopObject.delete_action() for more convenient feedback about what is going to be deleted (fixes issue 37 for now)
 * Fully enabled translation in global breadcrumb_macro()
 * Removed obsolete Layout.getTitle() method
 * Disabled translation in HopObject.toString() methods
 * Fixed and added some i18n messages to ease translation
2010-02-06 15:13:39 +00:00
33ef009f20 * Moved all direct SQL statements as constants into Sql object
* Removed redundant call for HopObject.log() in Admin.update() method
2010-01-19 22:01:39 +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
cb5ba5f78c * Added the username as well as the number of comments to be deleted to the confirmation dialogue when deleting a comment
* Fixed typo in Site#navigation skin of Root
2010-01-11 08:29:12 +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