Commit graph

141 commits

Author SHA1 Message Date
471f6f92d2 Fixed issue causing a job removing a site to throw an exception due to trying to create a layout archive – which is nonsense as it the whole site is going to be removed anyway. 2015-05-24 22:57:55 +02: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
d856ba24e3 Renamed layout “variables” to “settings” 2015-03-14 16:17:16 +01:00
a93b467e8e Merge branch 'develop' into feature/layout-rerefactoring
* develop:
  Added control for copying the value macro to the clipboard
  Enabled built-in colorpicker for any value which name ends with “color”. (Fixes issue 39.) Added remove link for any value form element. Fixed issue where no value could be added after the last remaining one was removed.
2015-03-14 16:08:32 +01:00
90a700ab7c Added control for copying the value macro to the clipboard 2015-03-07 18:18:34 +01:00
649cd144eb Enabled built-in colorpicker for any value which name ends with “color”. (Fixes issue 39.) Added remove link for any value form element. Fixed issue where no value could be added after the last remaining one was removed. 2015-03-07 18:02:28 +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
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
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
fc6e6c5932 Refactored layout import which was not working anymore for a while and nobody noticed it o_0 2015-01-30 15:00:51 +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
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
25f5a5eaed Added meta information 2015-01-06 23:13:54 +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
4d7dc57213 Fixed width of legend to grid 2015-01-03 22:21:33 +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
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
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
b21d98211e Implemented first basic version of layout option for switching display of skin edit controls, ie. a button that appears next to every editable skin and directly leads to the skin editor when clicked. 2012-05-13 17:02:09 +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
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
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
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
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
90df535581 Enabled aggressive cache mode for metadata collections 2011-02-15 18:49:36 +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
bdcca7ab37 Removed strict check for Antville version when importing a layout 2011-01-24 18:30:37 +00:00
bd855b1ca7 Fixed check for res.skinpath[0] and added FIXME hinting how to make the whole evaluation much easier... 2011-01-21 23:16:02 +00:00
df20ca2efc Separately add/reset the Site skin of root 2011-01-04 16:04:16 +00:00
a0c7ee608e Check if temporary directory exists before trying to remove it in Layout.import_action() 2010-12-21 14:15:17 +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
1b8bf37675 * Added Layout.getTitle() method to compatibility layer always returning “Layout” to prevent display of remaining title properties in older databases
* Slightly increased sizes of some input elements for convenience
 * Added SQL patch updating constraints of the membership role column (MySQL)
 * Removed obsolete title and description properties from Layout
 * Minor layout enhancements and wording edits
2010-04-25 20:11:16 +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
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
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
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
dfe2e54fa1 * Improved eTag creation in main_js_action(), user_js_action() and main_css_action() methods of Site
* Removed obsolete modSorua.skin (we will do shared authentication right one day)
2009-12-27 15:35:50 +00:00
cca8f2c03a * Modified some res.data.title and res.messages assignments
* Added second argument to HopObject.remove() method; if set to true, any object will be removed without any checks for permissions or the like
 * Enhanced notfound and error screens
 * Removed obsolete Image.site property
 * Added missing LogEntry.remove() method
 * Added Site.deleted property
 * Fixed missing calls for remove() methods of some collections in Site.remove()
 * Added Root#stylesheet skin for future CSS classes necessary for GUI elements
 * Added missing Site.entries collection
 * Removed troublesome if condition in Skin.remove()
 * Generally deny access to Skin.main_action
 * Added missing Skin.getFormValue() method
 * Added check in Skin.update() if the Site#page skin contains the <% response.body %> macro 
 * Added Skins.onRequest() method checking if we are in-between two Skins objects
2009-12-13 22:29:21 +00:00
5ec14e5c06 Skin spring cleaning: unified and restructured skin parts and removed obsolete markup 2009-12-13 21:54:58 +00:00
1a317c1677 * Added Layout.reset() method to reliably copy the desired skins into a site’s layout directory
* Moved the private copy() method in Root.create_action() to helma.File.copyDirectory() in Global.js (will be committed later)
 * Replaced the copy routine with call for Layout.reset()
2009-11-04 14:12:01 +00:00
24f25c8436 * Added missing title and cancel link to layout import
* Edited wording of error messages in Layout.import_action()
 * Added redirect to import action if an error occurred
2009-11-03 18:08:09 +00:00
0e3b954b76 Fixed ugly bug causing sites to lose their layout on import or reset 2009-11-03 15:12:39 +00:00
dcc9cbcfc8 * Added basic doctags to the code
* Removed obsolete code
2009-11-02 16:16:41 +00:00