antville/code/Site/$Site.skin

450 lines
17 KiB
Text
Raw Normal View History

<% #href %>
* 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
<% param.path %>
<% #listItem %>
<tr>
2015-01-01 21:03:26 +01:00
<td><% site.title | site.link %></td>
<td><% gettext '{0} by {1}' <% site.modified text %> <% site.modifier %> %></td>
</tr>
2015-01-01 21:00:43 +01:00
<% #search %>
<h1><% response.title %></h1>
<form class='uk-form' method='post' action='<% site.href search %>'>
<div class='uk-form-controls'>
<input type='text' class='uk-width-1-2' name='q' value='<% request.q encoding="form" %>' required>
<button type='submit' name='search' value='1' class='uk-button uk-button-primary'>
<% gettext Find %>
</button>
<a href='<% site.href %>' class='uk-button uk-button-link'><% gettext Cancel %></a>
2015-01-01 21:00:43 +01:00
</div>
</form>
<p>
<% if <% response.count %> is null then '' else <% ngettext 'Showing {0} result' 'Showing {0} results' <% response.count %> suffix=. %> %>
</p>
<dl class='uk-description-list-line'>
<% response.result %>
</dl>
<% #opensearchdescription %>
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName><% site.title %></ShortName>
<Description>Search the site <% site.href %></Description>
<Tags>antville search</Tags>
<Image height="16" width="16" type="image/vnd.microsoft.icon"><% image /ant-icon.png url %></Image>
<Url type="text/html" template="<% site.href search %>?q={searchTerms}" />
<Query role="example" searchTerms="cat" />
</OpenSearchDescription>
<% #menuExt %>
<script type="text/javascript" defer="defer">
var win = external.menuArguments;
var url = "<% site.url %>stories/create?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
<% #referrers %>
<h1><% response.title %></h1>
<form class='uk-form' action="<% response.action %>" method="get">
<div class='uk-form-row'>
<input class='uk-width-1-2' type="text" name="filter" value="<% request.filter encoding="form" %>">
<button class='uk-button uk-button-primary' type="submit" name="submit" value="1"><% gettext Search %></button>
<a class='uk-button' href='<% site.href referrers %>'>
<% gettext Reset %>
</a>
<div class='uk-form-help-block'>
<label>
<input type="checkbox" id="includeSpam" name="includeSpam" value="checked" <% request.includeSpam prefix='checked="' suffix='"' encoding="form" %> />
<% gettext 'Disable spam filter' %>
<i class='uk-icon uk-icon-info-circle uk-text-muted' data-uk-tooltip="{pos: 'right'}"title='<% gettext "You can edit the spam filter in the site settings." %>'></i>
</label>
</div>
</div>
<% site.skin $Site#referrerTable %>
</form>
<% #referrerTable %>
<table class='uk-table uk-table-condensed'>
<thead>
<tr>
<td class='uk-text-right'><i class='uk-icon-bar-chart'></i></td>
<td><% gettext Referrer %></td>
<td></td>
</tr>
</thead>
<tbody>
<% site.skin $Site#referrer %>
<% response.list %>
</tbody>
</table>
<script type="text/javascript">
$(function () {
var query = new Antville.Query();
var spamFilter = new Antville.Filter([<% site.spamfilter %>]);
var searchFilter = new Antville.Filter(query.filter);
var searchEngineFilters = [
new Antville.Filter("\/\/.*altavista.*\?", "q"),
new Antville.Filter("\/\/.*bing\..*\?", "q"),
new Antville.Filter("\/\/.*google\..*\?", "q"),
new Antville.Filter("\/\/.*search\.yahoo\..*\?", "p"),
new Antville.Filter("\/\/.*yandex\..*\?", "text")
];
var urlShortenerCounter = 0;
var urlShortenerFilters = [
new Antville.Filter('\/\/bit\.ly/'),
new Antville.Filter('\/\/goo\.gl/'),
new Antville.Filter('\/\/owl\.ly/'),
new Antville.Filter('\/\/t\.co/'),
new Antville.Filter('\/\/tinyurl\.com/')
];
$('.av-referrer-row').each(function (index) {
if (index < 1) return;
var row = $(this);
var ref = row.find('.av-referrer a');
var url = ref.attr('href');
var count = row.find('.av-referrer-count').html();
var control = row.find('.av-referrer-control a');
control.on('click', function (event) {
event.preventDefault();
var input = prompt("<% gettext 'Are you sure you want to add this URL to the referrer spam filter?'%> <% gettext 'You can edit it before if you only want to filter a pattern.' %>", url);
if (input) {
location.href = '<% site.href referrers %>?submit=1&permanent=' + encodeURIComponent(input);
}
});
var referrer = new Antville.Referrer(url, url, count);
ref.html(referrer.text);
for (var i = 0, filter; i < urlShortenerFilters.length; i += 1) {
filter = urlShortenerFilters[i];
if (filter.test(url)) {
urlShortenerCounter += parseInt(count, 10);
row.hide();
}
}
if (spamFilter.test(url)) {
if (query.includeSpam) {
ref.addClass('uk-text-muted');
control.remove();
} else {
row.hide();
}
}
if (query.filter && !searchFilter.test(url)) {
row.hide();
}
var re = new RegExp('[:/].*$');
for (var i = 0, filter; i < searchEngineFilters.length; i += 1) {
filter = searchEngineFilters[i];
if (filter.test(url)) {
var host = referrer.text.replace(re, '');
ref.html(referrer.compose('<i><% gettext "Search" %> ' + host + ':</i>', filter.key));
break;
}
}
});
var firstRow = $('.av-referrer-row:first');
if (urlShortenerCounter > 0) {
firstRow.find('.av-referrer-count')
.html(urlShortenerCounter)
.end()
.find('.av-referrer')
.html('URL Shorteners')
.end()
.find('.av-referrer-control a')
.remove();
var rows = $('.av-referrer-row');
for (var i = 1, count; i < rows.length; i += 1) {
count = parseInt(rows.eq(i).find('.av-referrer-count').html(), 10);
if (count >= urlShortenerCounter) {
firstRow.insertAfter(rows.eq(i));
break;
}
}
} else {
firstRow.hide();
}
});
</script>
<% #referrer %>
<tr class='av-referrer-row'>
<td class='uk-text-right av-referrer-count'><% param.requests %></td>
<td class='av-referrer' style='max-width: 400px; overflow: hidden;'>
<% param.referrer | link %>
</td>
<td class='av-referrer-control uk-text-right'>
<a href='javascript:'><i class='uk-icon uk-icon-filter'></i></a>
</td>
</tr>
<% #noscript %>
<% gettext "To make spamming referrers and backlinks useless, they are displayed using client-side JavaScript. To see them, your browser needs to permit the execution of JavaScript." %>
<% #deleted %>
<% gettext "This site is going to be deleted completely and irreversibly after {0}." <% site.deleted | format long %> %>
<% #export %>
<h1><% gettext "Export Site Data" %></h1>
<p>
<% if <% param.status %> is null then <% if <% file.self %> is null then '' else <% gettext "Download the file {0} or klick “Start” to create a new one." <% file.skin File#main %> '<small>' <% file.created | format short %> '</small>' %> %> else <% param.status %> %>
</p>
<form action="" method="post">
<button type="submit" name="submit" value="<% if <% param.status %> is null then start else stop %>" class='uk-button uk-button-primary'>
<% if <% param.status %> is null then <% gettext Start %> else <% gettext Stop %> %>
</button>
<a href='<% site.href %>' class='uk-button uk-link-button'><% gettext Cancel %></a>
</form>
<% #import %>
<h1><% gettext 'Import Site Data' %></h1>
<p>
<% if <% file.self %> is null then '' else <% gettext "The site is scheduled for importing the file {0}. The imported site data will be available within 24 hours." <% file.skin File#main %> '</a>' '<small>' <% file.created | format short %> '</small>' %> %>
</p>
<form class='uk-form uk-form-stacked' method="post" enctype="multipart/form-data">
<div class='uk-form-row'>
<label class='uk-form-label' for=''>
<% gettext File %>
</label>
<div class='uk-form-controls'>
<% if <% file.self %> is null then <% site.upload file %> %>
</div>
</div>
<div class='uk-form-row'>
<button class='uk-button uk-button-primary' type="submit" name="submit" value="<% if <% file.self %> is null then start else stop %>">
<% if <% file.self %> is null then <% gettext Start %> else <% gettext Stop %> %>
</button>
<a href='<% site.href %>' class='uk-button uk-button-link'><% gettext Cancel %></a>
</div>
</form>
<% #edit %>
<h1><% response.title %></h1>
<div class='uk-article-meta'><% site.skin $HopObject#meta %></div>
<form class='uk-form uk-form-stacked' id="prefs" method="post" action="<% response.action %>">
<fieldset>
<div class='uk-form-row uk-margin-top'>
<label class='uk-form-label' for='mode'>
<% gettext Mode %>
</label>
<div class='uk-form-controls'>
<% site.select mode %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='title'>
<% gettext Title %>
</label>
<div class='uk-form-controls'>
<% site.input title class='uk-width-1-1' %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='tagline'>
<% gettext Description %>
</label>
<div class='uk-form-controls'>
<% site.input tagline class='uk-width-1-1' %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='pageSize'>
<% gettext Paging %>
</label>
<div class='uk-form-controls'>
<% site.input pageSize class='uk-width-1-6' type=number min=1 max=25 %>
<% gettext "{0} per page" <% gettext "stories" %> %>
<% // site.select pageMode %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='commentMode'>
<% gettext Comments %>
</label>
<div class='uk-form-controls'>
<label>
<% site.checkbox commentMode %>
enabled
</label>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label'>
<% gettext Archive %>
</label>
<div class='uk-form-controls'>
<label>
<% site.checkbox archiveMode %>
<% gettext enabled %>
</label>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='locale'>
<% gettext Language %>
</label>
<div class='uk-form-controls'>
<% site.select locale %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='timeZone'>
<% gettext 'Time Zone' %>
</label>
<div class='uk-form-controls'>
<% site.select timeZone %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='notificationMode'>
<% gettext Notifications %>
</label>
<div class='uk-form-controls'>
<% site.select notificationMode %>
</div>
</div>
</fieldset>
<% site.skin $Site#admin restricted=true %>
<fieldset class='uk-margin-top'>
<legend><% gettext Advanced %></legend>
<div class='uk-form-row'>
<label class='uk-form-label' for='callbackUrl'>
<% gettext 'Callback URL' %>
</label>
<div class='uk-form-controls'>
<% site.input callbackUrl type=url class='uk-width-1-1' %>
<label>
<% site.checkbox callbackMode %>
<% gettext enabled %>
</label>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label'>
<% gettext 'Disk Space' %>
</label>
<div class='uk-form-controls'>
<% site.diskspace %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label'>
<% gettext Bookmarklet %>
</label>
<div class='uk-form-controls'>
<a class='uk-button' data-uk-tooltip='{pos: "right"}' href="javascript: var siteUrl = '<% site.href %>'; var selection = (window.getSelection) ? window.getSelection() : document.selection.createRange(); selection = selection.text || selection; selection = selection + ''; var url='<% site.static %>../www/formica.html?s=' + encodeURIComponent(siteUrl) + '&l=' + encodeURIComponent(location.href) + '&r=' + encodeURIComponent(document.referrer) + '&w=400&h=400&c=' + encodeURIComponent(selection || document.title); window.open(url, 'formica', 'width=630, height=350'); void 0;" title="<% gettext 'Drag to Bookmarks Bar' %>"><% gettext "Post to {0}" <% site.title %> %></a>
</div>
</div>
</fieldset>
<a id="spamfilter" name="spamfilter"></a>
<fieldset class='uk-margin-top'>
<legend><% gettext "Referrer Spam Filter" %></legend>
<div class='uk-form-row'>
<div class='uk-form-controls'>
<% site.textarea spamfilter rows=5 class='uk-width-1-1' %>
<p class="uk-form-help-block">
<% gettext "Enter one filter {0}pattern{1} per line to be applied on every URL in the referrer and backlink lists." '<a href="http://en.wikipedia.org/wiki/Regular_expression">' </a> %>
</p>
</div>
</div>
</fieldset>
<div class='uk-margin-top'>
<button class='uk-button uk-button-primary' type="submit" id="submit" name="save" value="1">
<% gettext Save %>
</button>
<a href='<% site.href %>' class="uk-button uk-button-link"><% gettext Cancel %></a>
</div>
</form>
<script>
$(function() {
$('input#callbackMode').on('click', function(event) {
$('input#callbackUrl').prop('disabled', !this.checked);
});
$('input#callbackUrl').prop('disabled', !$('input#callbackMode').prop('checked'));
});
</script>
<% #admin %>
<a name='admin' id='admin'></a>
<fieldset class='uk-margin-top'>
<legend><% gettext Administration %></legend>
<div class='uk-form-row'>
<label class='uk-form-label' for='status'>
<% gettext Status %>
</label>
<div class='uk-form-controls'>
<% site.select status %>
</div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='status'>
<% gettext Information %>
</label>
<div><% ngettext "{0} Story" "{0} Stories" <% count <% site.self stories %> %> %></div>
<div><% ngettext "{0} Comment" "{0} Comments" <% count <% site.self comments %> %> %></div>
<div><% ngettext "{0} Image" "{0} Images" <% count <% site.self images %> %> %></div>
<div><% ngettext "{0} File" "{0} Files" <% count <% site.self files %> %> %></div>
</div>
<div class='uk-form-row'>
<label class='uk-form-label' for='notes'>
<% gettext Notes %>
</label>
<div class='uk-form-controls'>
<% site.textarea notes class='uk-width-1-1' rows=5 %>
</div>
</div>
<div class='uk-form-row'>
<a style='color: #fff;' href='<% this.href delete %>' class='uk-button uk-button-danger'>
<i class='uk-icon-trash-o'></i>
Delete this site
</a>
</div>
</fieldset>
<% #delete %>
<div class='uk-alert uk-alert-danger'>
<% gettext 'You are about to delete the whole site which currently contains {0}, {1}, {2}, {3} and {4}.'
<% ngettext '{0} story' '{0} stories' <% count <% site.self stories %> %> %>
<% ngettext '{0} comment' '{0} comments' <% count <% site.self comments %> %> %>
<% ngettext '{0} image' '{0} images' <% count <% site.self images %> %> %>
<% ngettext '{0} file' '{0} files' <% count <% site.self files %> %> %>
<% ngettext '{0} poll' '{0} polls' <% count <% site.self polls %> %> %> %>
<strong><% gettext 'All of this will be deleted irreversibly.' %></strong>
<% gettext 'Are you sure you want to proceed?' %>
</div>
* Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features * Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites * Renamed Root.getScopes() method to Admin.getNotificationScopes() * Renamed User.getScopes() method to Admin.getCreationScopes() * Added Admin.getPhaseOutModes() method * Removed obsolete code * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection * Finally added simple and reasonable quota implementation * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used * Fixed some i18n messages * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen * Completely rewrote HopObject.notify() method (hopefully fixing issue 49) * Check free disk space before invoking create_action() of Files and Images prototypes * Modified output of Membership.toString() method * Fixed some linebreaks in Membership.skin * Added option to set session.data.error for additonal information in $Root#error skin * Slightly modified output of $Root#health skin * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode * Removed qualifyingDate property from Root * Renamed Root.qualifyingPeriod property to Root.probationPeriod * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root * Added replyTo property to Root * Rewrote Root.getCreationPermission() method * Added #notify_blocking and #notify_deletion skins to $Site.skin * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified * Added Site.diskspace_macro() returning the free disk space in MB * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
<% #notify_block %>
* Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features * Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites * Renamed Root.getScopes() method to Admin.getNotificationScopes() * Renamed User.getScopes() method to Admin.getCreationScopes() * Added Admin.getPhaseOutModes() method * Removed obsolete code * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection * Finally added simple and reasonable quota implementation * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used * Fixed some i18n messages * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen * Completely rewrote HopObject.notify() method (hopefully fixing issue 49) * Check free disk space before invoking create_action() of Files and Images prototypes * Modified output of Membership.toString() method * Fixed some linebreaks in Membership.skin * Added option to set session.data.error for additonal information in $Root#error skin * Slightly modified output of $Root#health skin * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode * Removed qualifyingDate property from Root * Renamed Root.qualifyingPeriod property to Root.probationPeriod * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root * Added replyTo property to Root * Rewrote Root.getCreationPermission() method * Added #notify_blocking and #notify_deletion skins to $Site.skin * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified * Added Site.diskspace_macro() returning the free disk space in MB * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
<% gettext 'Hello {0}.' <% membership.name %> %>
<% gettext 'The site {0} at {1} will be blocked in {2} because it is being
restricted for too long.' <% site.title %> <%site.href %>
<% ngettext '{0} day' '{0} days' <% root.phaseOutGracePeriod %> %> %>
* Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features * Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites * Renamed Root.getScopes() method to Admin.getNotificationScopes() * Renamed User.getScopes() method to Admin.getCreationScopes() * Added Admin.getPhaseOutModes() method * Removed obsolete code * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection * Finally added simple and reasonable quota implementation * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used * Fixed some i18n messages * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen * Completely rewrote HopObject.notify() method (hopefully fixing issue 49) * Check free disk space before invoking create_action() of Files and Images prototypes * Modified output of Membership.toString() method * Fixed some linebreaks in Membership.skin * Added option to set session.data.error for additonal information in $Root#error skin * Slightly modified output of $Root#health skin * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode * Removed qualifyingDate property from Root * Renamed Root.qualifyingPeriod property to Root.probationPeriod * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root * Added replyTo property to Root * Rewrote Root.getCreationPermission() method * Added #notify_blocking and #notify_deletion skins to $Site.skin * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified * Added Site.diskspace_macro() returning the free disk space in MB * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
<% gettext "Best regards." %>
<% gettext "The Management" %>
<% #notify_delete %>
* Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features * Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites * Renamed Root.getScopes() method to Admin.getNotificationScopes() * Renamed User.getScopes() method to Admin.getCreationScopes() * Added Admin.getPhaseOutModes() method * Removed obsolete code * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection * Finally added simple and reasonable quota implementation * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used * Fixed some i18n messages * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen * Completely rewrote HopObject.notify() method (hopefully fixing issue 49) * Check free disk space before invoking create_action() of Files and Images prototypes * Modified output of Membership.toString() method * Fixed some linebreaks in Membership.skin * Added option to set session.data.error for additonal information in $Root#error skin * Slightly modified output of $Root#health skin * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode * Removed qualifyingDate property from Root * Renamed Root.qualifyingPeriod property to Root.probationPeriod * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root * Added replyTo property to Root * Rewrote Root.getCreationPermission() method * Added #notify_blocking and #notify_deletion skins to $Site.skin * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified * Added Site.diskspace_macro() returning the free disk space in MB * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
<% gettext 'Hello {0}.' <% membership.name %> %>
<% gettext 'The site {0} at {1} will be deleted in {2} because it has been
considered as abandoned.' <% site.title %> <% site.href %>
<% ngettext '{0} day' '{0} days' <% root.phaseOutGracePeriod %> %> %>
* Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features * Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites * Renamed Root.getScopes() method to Admin.getNotificationScopes() * Renamed User.getScopes() method to Admin.getCreationScopes() * Added Admin.getPhaseOutModes() method * Removed obsolete code * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection * Finally added simple and reasonable quota implementation * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used * Fixed some i18n messages * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen * Completely rewrote HopObject.notify() method (hopefully fixing issue 49) * Check free disk space before invoking create_action() of Files and Images prototypes * Modified output of Membership.toString() method * Fixed some linebreaks in Membership.skin * Added option to set session.data.error for additonal information in $Root#error skin * Slightly modified output of $Root#health skin * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode * Removed qualifyingDate property from Root * Renamed Root.qualifyingPeriod property to Root.probationPeriod * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root * Added replyTo property to Root * Rewrote Root.getCreationPermission() method * Added #notify_blocking and #notify_deletion skins to $Site.skin * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified * Added Site.diskspace_macro() returning the free disk space in MB * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
<% gettext "Best regards." %>
<% gettext "The Management" %>
2015-01-01 21:03:26 +01:00
<% #include %>
document.writeln('<script type="text/javascript" src="<% param.href %>"><\/script>');
<% // This does not work because the asynchronous loading causes nasty side-effects
"var script = document.createElement('script');
script.type = 'text/javascript';
script.src = '<% param.href %>';
document.head.appendChild(script);"
%>