Commit graph

257 commits

Author SHA1 Message Date
242f3f61da Fixed macro output for layout images (no box per default) 2015-04-04 15:23:59 +02:00
5391f96840 Merge branch 'develop' into feature/revise-translations
* develop:
  Fixed compatibility issues with missing core stylesheet / JavaScript
  Moved client-side upload code to Images#upload skin
  Re-added click handler for cancel links (compatibility)
  Fixed display of Gravatar for accounts
  Added code for embedded audio and video player (HTML5)
  (Whitespace)
  Updated proxy URL
  Updated translation files
  Slightly rearranged code
  Moved image dimension limits from image creation to site settings
  Fixed batch upload for layout images
  Refactored Story.getAbstract() method. Commented out abstract for custom content.
  Refactored Story.getDelta() method. Commented out calculation for custom content.
  Moved calculation of delta behind sanitizing comment title and completely removed HTML sanitization
  Moved calculation of delta behind sanitizing comment title and replaced call for setMetadata() with setCustomContent()
  Fixed appearance of button for new site creation
  Added box argument to image macro output
  Added metadata for Open Graph et al. to Stories.create_action()
  Implemented first version of multiple image upload by drag&drop
  Refactored Comment.update() method - text is now required, title remains optional - sanitize text first to catch potential empty string afterwards

Conflicts:
	i18n/antville.pot
	i18n/de.po
	i18n/en.po
	i18n/messages.de.js
	i18n/messages.en.js
2015-03-27 22:02:27 +01:00
face5d5e99 Fixed display of Gravatar for accounts 2015-03-27 17:13:50 +01:00
af25a813de Added box argument to image macro output 2015-03-27 11:49:41 +01:00
20e605aa7b Added accusatives for user-defined objects. Replaced user with account. Balanced out gender in german translation. 2015-03-25 16:04:47 +01:00
593c0558e0 Refactored simple backup feature when creating a new story and discarding unsaved content (e.g. by accidentally closing the window – which furthermore is alerted now using onbeforeunload handler) 2015-03-15 17:48:38 +01:00
35bb4734ed Streamlined WYSIWYG story editor integration 2015-03-14 19:16:23 +01:00
fb3168701c Refactored blocking users and deleting sites in admin section 2015-02-15 20:26:57 +01:00
73af9f864b Fixed potential bug in quote() method, leaving some strings unquoted which might break things 2015-02-14 16:30:49 +01:00
246e1c9503 Fixed some issues when creating / removing a site 2015-02-11 22:23:30 +01:00
1cbe8fde9c Refactored trails to claustra 2015-01-23 18:19:24 +01:00
88aa97424b Removed obsolete code 2015-01-11 13:20:28 +01:00
4a24d7cf1e Refactored global macros for story, image, file and poll 2015-01-07 17:17:20 +01:00
1dd49a9bec Added $HopObject#meta skin for consistent display of posted / last modified information 2015-01-06 14:03:44 +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
824d58bf36 Fixed indentation for replies and enabled Gravatar profile pictures 2015-01-01 20:29:14 +01:00
3d477bc989 Do not return anything in link_macro() for transient objects (except trails and skins)
Removed requirement for text argument in link_macro()
2014-12-21 17:30:00 +01:00
5f6896d885 Enable permission check by option in skin_macro() 2014-12-21 17:28:08 +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
993a4e679e Added checks for transient objects to prevent macro errors 2014-12-17 23:54:22 +01:00
1b79f12eff Refactored for UIKit support 2014-12-16 23:08:48 +01:00
5884269360 Removed unnecessary user relation from TagHub 2014-12-14 09:52:58 +01:00
5688cabffa Refactored delete action for HopObject, Site and Comment 2014-12-10 16:50:16 +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
3e769d3d6e Cleaned up whitespace with Sublime Text 2 2014-07-04 15:30:46 +02:00
0a498e7294 Moved aspect code to new global file to prevent ugly errors from incorrect code update 2012-05-29 09:52:07 +00:00
c6519a0245 Fixed case of Aspects module 2012-05-19 13:02:27 +00:00
bf06beac65 Turned ugly code overriding HopObject.renderSkin/AsString() methods into helma.Aspects and added check if skins should be wrapped into extra <div>s for showing edit controls 2012-05-19 12:41:24 +00:00
1af49c2b5a * Fixed bug in Site.link_macro() method of the compatibility layer
* Fixed rendering of legacy navigation skins with overridden HopObject.renderSkinAsString() method
 * Fixed typo when saving the original HopObject.renderSkinAsString() method
2012-05-13 19:22:56 +00:00
d571c921fe * Added i18n and label for sandbox checkbox in $Layout#edit skin
* Fixed value of layout sandbox cookie in Layout.sandbox() method
 * Removed (yet) unused Layout.sandbox_action()
 * Removed (yet) unused session.data.layout in HopObject.onRequest() 
 * Moved code setting res.contentType to top of Tag.rss_xml_action()
2012-05-13 18:22:05 +00:00
eff1a99adc Added code to override the HopObject.renderSkin() methods to enable display of skin edit controls. 2012-05-13 17:05:12 +00: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
8e0e494d9a Implemented selection of macro code on click 2012-04-21 14:55:15 +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
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
28808135d4 Refactored plugin handling:
* Removed “extras” code because I just forgot I already implemented a Feature prototype
 * Added global <% feature %> macro calling the main() method of the desired feature
 * Added Feature.getPermission() method which can be invoked from HopObject.getPermission()
 * Refactored connect feature to work with modified Feature prototype
2011-03-24 01:54:21 +00:00
91b45b3732 Implemented basic extra handling (ie. plug-ins in Antville):
* Added global app.data.extras collection and registerExtra() method
 * Defined res.handlers.extra in HopObject.onRequest() handler to provide extra macros
 * Implemented reCAPTCHA for anonymously contacting an Antville member as proof of concept
2011-03-23 13:35:02 +00:00
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
b27aa3145c * Moved value normalization from HopObject to Metadata prototype
* Removed limitation to edit running polls
 * Fixed some issues in MySQL database scheme
 * Moved routine for replacing version tags from init to export target in build script
2011-02-20 11:26:41 +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
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
9917068dc7 * Modified order of actions in item list views
* Slightly modified the message informing about successful deletion of an object
 * Fixed type when calling Membership.remove() in Site.unsubscribe_action() method
 * Fixed bug causing exception when calling Membership.remove() method with no arguments
 * FIxed still incorrect permissions for editing and deleting a membership
2010-04-26 00:22:20 +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
356364bda3 * Added Site.comments collection and use it in $Admin#editSite skin. Fixes issue 89.
* Modified default sorting of user list in $Admin#users skin. Fixes issue 70.
 * Added property argument to HopObject.self_macro() to allow access to subnodes of the HopObject
 * Replace macros directly accessing HopObject subnodes with <% this.self property %> ones
 * Reverted changes made in r4026
2010-04-02 12:45:27 +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