* Re-implemented autosave feature (ie. automatic backup / restore) for stories and comments

* Removed obsolete rescue methods
 * Moved contents of many individual skin files as subskins in the corresponding prototype skin file
 * Moved commentform_macro of Story prototype into compatibility module
This commit is contained in:
Tobi Schäfer 2007-10-16 16:48:14 +00:00
parent ec700a655f
commit 75644bde63
18 changed files with 132 additions and 146 deletions

View file

@ -510,7 +510,7 @@ Site.prototype.unsubscribe_action = function() {
Site.prototype.robots_txt_action = function() {
res.contentType = "text/plain";
this.renderSkin("robots");
this.renderSkin("Site#robots");
return;
};

View file

@ -41,6 +41,36 @@ You can change it anytime you want.</p>
<p>This site was created on <% site.created long %> by
<% site.creator link %>.</p>
<% #search %>
<form method="get" action="<% site.href search %>">
<input type="text" name="q" class="searchbox" value="" />
<button type="submit" name="search" value="1"
class="searchbox">search</button>
</form>
<% #robots %>
User-agent: *
Disallow: /referrers
Disallow: /stories/top
<% #menuExt %>
<script type="text/javascript" defer="defer">
<!--
var win = external.menuArguments;
var url = "<% site.url %>stories/create?content_text=";
var link = escape('<a href="' + win.location.href + '">' +
win.document.title + "</a>: ");
var text = escape(win.document.selection.createRange().text);
win.location.href = url + link + text;
//-->
</script>
<% #menuExtRegistry %>
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post to <% site.title %>]
@="<% site.url %>menuext"
"contexts"=hex:31
<% #edit %>
<form id="prefs" method="post" action="<% response.action %>">
<table border="0" cellspacing="0" cellpadding="2">

View file

@ -1,4 +0,0 @@
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post to <% site.title %>]
@="<% site.url %>menuext"
"contexts"=hex:31

View file

@ -1,10 +0,0 @@
<script type="text/javascript" defer="defer">
<!--
var win = external.menuArguments;
var url = "<% site.url %>stories/create?content_text=";
var link = escape('<a href="' + win.location.href + '">' +
win.document.title + "</a>: ");
var text = escape(win.document.selection.createRange().text);
win.location.href = url + link + text;
//-->
</script>

View file

@ -1,15 +0,0 @@
<tr>
<td colspan="2" nowrap="nowrap"><div class="listSeparator">&nbsp;</div>
<strong>E-mail notification</strong></td>
</tr>
<tr>
<td class="small" nowrap="nowrap">New stories <br />or comments:</td>
<td nowrap="nowrap"><% site.notify event="create" as="editor" %></td>
</tr>
<tr>
<td class="small" nowrap="nowrap">Updated stories <br />or comments:</td>
<td nowrap="nowrap"><% site.notify event="update" as="editor" %></td>
</tr><tr>
<td class="small" nowrap="nowrap">New image <br />or file uploads:</td>
<td nowrap="nowrap"><% site.notify event="upload" as="editor" %></td>
</tr>

View file

@ -1,17 +0,0 @@
This is a notification to inform you that changes were applied to the site <% site.title %><% param.user prefix=" by user " %>.
For details please check the following URL:
<% param.url %>
PLEASE DO NOT REPLY TO THIS MESSAGE.
Best regards,
The autonomous Antville agent.
DISCLAIMER:
===========
This is a message automatically sent to you because you are listed as recipient of notification e-mails of the aforementioned site. Thus, you will be notified whenever the site has undergone changes as specified in the site preferences.
If you think you have received this e-mail in error please contact the maintainer of the site.

View file

@ -68,7 +68,7 @@
</div>
<div class="boxheader">search</div>
<div class="box"><% site.skin searchbox %></div>
<div class="box"><% site.skin Site#search %></div>
<div class="boxheader">calendar</div>
<div class="box"><% site.calendar %></div>

View file

@ -1,3 +0,0 @@
User-agent: *
Disallow: /referrers
Disallow: /mostread

View file

@ -1,4 +0,0 @@
<form method="get" action="<% site.href search %>">
<input type="text" name="q" class="searchbox" value="" />
<button type="submit" name="search" value="1" class="searchbox">search</button>
</form>