Commit graph

898 commits

Author SHA1 Message Date
d2f82bfa98 Removed redundant port number as well as slashes when building URL 2012-06-04 19:43:10 +00:00
27581de76b Reverted to URLs with http or https scheme 2012-06-04 19:02:40 +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
f7a415cd83 Rewrote getStaticUrl() and processHref() methods of Site 2012-06-04 18:36:30 +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
770b2d0717 Added support for LESS (http://lesscss.org) using a patched Rhino build 2012-05-14 14:51:54 +00:00
a94d061ce6 Fixed regression bug preventing site-wide disabling of comments and archive 2012-05-13 20:49:16 +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
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
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
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
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
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
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
61df9ba586 Removed forced linebreak between label and creation date 2011-03-15 23:09:06 +00:00
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
1d8b34a54a Trying to fix bloody file encoding... 2011-02-23 15:52:22 +00:00
7777a486de Refactored static URL handling by using static and staticMountpoint properties in apps.properties file instead of custom staticUrl and staticPath in app.properties – still experimental! 2011-02-23 15:17:52 +00:00
98bfd954b9 Updated site search to work with new Metadata 2011-02-20 16:10:37 +00:00
08d00dc9d8 Slightly improved output of RSS format by using the creation date as title if the story comes without one 2011-02-20 11:56:26 +00:00
90df535581 Enabled aggressive cache mode for metadata collections 2011-02-15 18:49:36 +00:00
f69e0fca5e Fixed syntax error 2011-02-11 09:56:09 +00:00
cc2e07ccc1 Replaced simple Root.VERSION string with fine grained structure, maybe a wee bit too complex...? 2011-02-10 23:57:59 +00:00
96bb36f4b9 * Updated code according to changes in Metadata handling
* Increased jQuery version to 1.5
2011-02-10 23:53:58 +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
e35356ddfa * Refactored rendering of date formats
* Increased jQuery version to 1.4
2011-01-24 18:22:59 +00:00
ff62e260cf Corrected CSS font-family value 2011-01-17 01:07:27 +00:00
828b85ba4c Prevent any href processing in Site.processHref() method when called from localhost 2011-01-06 16:10:54 +00:00
f2db3263d9 Slightly changed way individual domains are mapped to the sites by introducing the domain.* property which defines the default domain 2011-01-05 19:00:37 +00:00
5b0ba00ba9 Check for User.REGULAR role when subscribing to a site in Site.getPermission(). Fixes issue 134. 2010-12-21 14:13:42 +00:00
Christoph Leutner
9776619fb4 Corrected text in Site Preferences - cf. issue 127. 2010-11-30 02:43:20 +00:00
47deac6732 Prevent anyone from searching a restricted site. Fixes issue 123. 2010-08-28 17:42:43 +00:00
a053b46e21 Fixed defunct Site.robots_txt_action() method (typo in method name) 2010-06-14 06:44:53 +00:00
9125131e9f Replaced outdated exclusions in default robots.txt with commented help link and examples 2010-06-14 06:35:30 +00:00
10c5475c3f Whoops, forgot to commit this little change to prevent an error message when calling Site.backup_js_action() without backup data being present 2010-06-07 14:54:04 +00:00
5a1cad862c Finalized Open Search Description feature (see http://www.opensearch.org for more information) 2010-05-30 13:39:09 +00:00
280720c792 Added link elements for displaying the tiny ant as favicon 2010-05-24 16:01:52 +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