Commit graph

348 commits

Author SHA1 Message Date
Robert Gaggl
4be289a252 changed since the signature of Html.dropDown has changed (first argument must be an object instead of a string). 2003-12-17 22:03:23 +00:00
Hannes Wallnöfer
b79f82764f Return root.href() instead of http://www.antville.org in getUrl()
if root.sys_url isn't set.
2003-12-11 14:20:40 +00:00
Robert Gaggl
c09b31716c stylesheet.css was renamed to main.css, javascript.js to main.js 2003-12-10 11:36:13 +00:00
Robert Gaggl
4d3f8f10da removed old url_macro() which was still there 2003-12-10 11:35:09 +00:00
Robert Gaggl
3aa260a39a - renamed stylesheet_css_action() to main_css_action()
- renamed javascript_js_action() to main_js_action()
2003-12-10 11:32:43 +00:00
Robert Gaggl
d7de035ceb - added property sys_layout which now contains the currently active layout object
- removed collection "images" since the metadata of the former "root images" is no longer stored in database but in the global object DEFAULTIMAGES
2003-12-08 22:51:24 +00:00
Robert Gaggl
216e566227 pixel.gif is no longer a layout image but a default image, referenced using global image macro 2003-12-08 22:47:23 +00:00
Robert Gaggl
051a92cd3a simplyfied layout 2003-12-08 22:46:38 +00:00
Robert Gaggl
ad6bb67485 removed sys_layoutchooser_macro() since it's not used anymore 2003-12-08 22:44:10 +00:00
Robert Gaggl
8c2c9f466d rewrote css classes since the whole default layout has changed 2003-12-08 22:42:33 +00:00
Robert Gaggl
a73f862797 changed from using StringBuffer to res.push()/res.pop() 2003-12-08 22:37:09 +00:00
Robert Gaggl
2953de5131 completely rewrote basic layout 2003-12-08 22:29:06 +00:00
Robert Gaggl
d97d46a0a3 minor code cleanup 2003-12-08 21:49:46 +00:00
Robert Gaggl
3b81b68c63 added layoutchooser_macro() as a proxy macro for root.layouts.layoutchooser_macro() 2003-12-08 21:01:03 +00:00
Robert Gaggl
220e91bbec stylesheet_action was renamed to stylesheet_css_action, previous stylesheet_action is now a wrapper action (left for backwards compatibility) 2003-12-08 20:02:56 +00:00
Hannes Wallnöfer
256ab22b4b Open extended colorpicker popup with the right size.
Resizing popup windows is not implemented very well on Mozilla/Linux.
2003-12-04 10:02:29 +00:00
Robert Gaggl
a2b7a121d0 added mountpoint "layouts" 2003-11-23 19:10:00 +00:00
Robert Gaggl
e03866ce79 - replaced call of global image macro with layout.image
- use new macrohandler "context" instead of site (since context contains either root or a site object)
2003-11-23 19:07:03 +00:00
Robert Gaggl
6a817d0cd8 - added sys_layoutchooser_macro()
- call root.getTitle() instead of accessing root.sys_title directly (the latter might be empty)
2003-11-23 19:06:00 +00:00
Robert Gaggl
999903b34a - modified since all font- and color preferences are now defined in a layout object
- added some more classes (still not finished)
2003-11-23 19:02:41 +00:00
Robert Gaggl
8f0b401a48 removed some empty lines 2003-11-23 18:55:42 +00:00
Robert Gaggl
32f5e4de95 - stylesheet and javascript are now external files
- replaced any calls of global image macro with layout.image (since layout images are now handled by layout objects)
2003-11-23 18:49:59 +00:00
Robert Gaggl
13f2b62f9d - modified evalNewSite(): each new site now gets an initial layout object (which is a child layout of the currently activated root layout)
- added method getUrl() which is used in hopobject.onRequest() to retrieve the currently activated layout object
2003-11-23 18:42:17 +00:00
Robert Gaggl
540c81b232 - renamed systitle_macro() to title_macro() which calls getTitle() to return the system title
- fixed some comments
- added sysmgrnavigation_macro() for rendering the system manager navigation
2003-11-23 18:18:58 +00:00
Robert Gaggl
f9985ef9ce - root.getSysTitle() was renamed to getTitle()
- added stylesheet_action() and javascript_action() for rendering external stylesheet/javascript
2003-11-23 17:50:58 +00:00
Robert Gaggl
b9d2030f1e initial check-in 2003-11-23 17:46:34 +00:00
73ca975e42 restored and fixed colorpicker to regain flexible functionality and way-backwards-compatibility
* fixed bug that prevented colorpicker from working at all
* fixed bug that prevented display of colors that are changed but not saved
* <% colorpicker name="xyz" %> now renders the default colorpicker
* <% colorpicker name="xyz" skin="colorpickerExt" %> renders the extended version (or any other depending on the skin)
* modified site's edit.skin to open the extended version
* put client-side scripts and functionality into global Antville object to define a strict namespace
* updated AntvilleLib
NOTE: THIS IS STILL WORK IN PROGRESS
2003-11-14 10:47:51 +00:00
c61ac74b09 moved "user-safe" javascript stuff into root/systemscripts which is
automatically appended onto site/javascript.skin
(root/safescripts_action is deprecated now)
2003-10-30 14:59:28 +00:00
4e37c2b08d * renamed safescripts.skin to systemscripts for convenience
* added Antville object which will contain all of the Antville-specific, client-side javascript code from now on and in the future
2003-10-16 17:20:51 +00:00
Hannes Wallnöfer
a790064067 Added error action 2003-10-07 14:45:07 +00:00
9cd4aa4b7d implemented first version of e-mail notification using kris' contribution (with slight modifications):
* since site preferences are stored as xml the corresponding code had to be adjusted
* currently, no notification is sent if a story's status changes from offline to online (abuse factor is too high)
* there's only one global notification skin used for the mail body
* the sender is always set to sys_email to avoid the bounce problem we already had with registration mails
2003-10-06 16:28:03 +00:00
Hannes Wallnöfer
b962e7f9a9 Add a preview area to the colorpicker and make it possible
to edit all colors at once.
2003-09-09 14:41:09 +00:00
Robert Gaggl
049d34d8ec - rewrote permission framework: renamed isXxxDenied() to checkXxx(), all check-methods now throw a DenyException object instead of returning an Exception object
- use constant ONEDAY
2003-09-07 21:00:02 +00:00
Robert Gaggl
13847bdea7 modified notfound_action(): check if path.site is online, otherwise use the root's page.skin for rendering 2003-09-07 20:52:17 +00:00
Robert Gaggl
7a8cd0ede5 fixed a bug in sys_minMemberAge_macro that created a bogus dropdown 2003-09-07 20:49:20 +00:00
Hannes Wallnöfer
93e8b0d3a6 Add hours as strings to dropdown array to make them render as "18" rather than "18.0" 2003-09-04 13:37:05 +00:00
Robert Gaggl
a064a814c2 rewrote convertSites_action since the preferences aren't mapped in site's type.properties anymore 2003-08-31 14:31:39 +00:00
Hannes Wallnöfer
bee1355200 Redo the changes from rev. 1.32 that were (accidentally?) undone in 1.33 2003-08-19 16:37:49 +00:00
Robert Gaggl
b906acc347 initial check-in: helper action for converting site preferences 2003-08-02 12:24:22 +00:00
Robert Gaggl
b1d3bb6870 modified comments 2003-08-02 12:19:11 +00:00
Robert Gaggl
65701dc949 - changed to use AntvilleLib methods 2003-08-02 12:17:26 +00:00
Robert Gaggl
4dc576c5e0 - added checkAccess() that is called by onRequest() to check if a user is allowed to request a certain action
- modified permission check methods: they now return an Exception object in case a certain action is denied
2003-08-02 12:12:34 +00:00
Robert Gaggl
125ae3039a - removed createNewSite() since site now has a constructor function
- modified functions to throw an Exception object in case something is wrong, return a Message object as positive result
2003-08-02 11:38:52 +00:00
Robert Gaggl
9a1e050afe - changed to use AntvilleLib methods
- removed sitelist_macro() which was left for backwards compatibility
2003-08-02 10:58:24 +00:00
Robert Gaggl
028b5dc3aa - merged .hac files into this file
- removed permission checks, this is done in checkAccess() now
2003-08-02 10:31:27 +00:00
Robert Gaggl
799acc19fe moved from site to root - this way we don't have to create a temporary site object every time just for rendering the skin 2003-08-02 10:30:14 +00:00
Robert Gaggl
81f0c559e7 removed because .hac-files were merged into single actions.js files 2003-08-02 10:24:52 +00:00
Robert Gaggl
d9fb8f1ae7 merged changes done in antville_1_0 branch 2003-07-22 12:01:41 +00:00
Hannes Wallnöfer
bdcda3369d Changed RegExp constructors to include the global ("g")
and ignoreCase ("i") flags as required by Rhino.
2003-07-08 14:53:57 +00:00
Hannes Wallnöfer
1e32967c76 Rename public collection to publicSites because public is a reserved keyword in Rhino.
Prefetch sites in renderSitelist().
2003-07-08 14:31:15 +00:00