* Fixed skin names according to issue #16

* Fixed rendering of values stored in res.meta.values
 * Removed obsolete code (mostly disabled by comments already)
This commit is contained in:
Tobi Schäfer 2008-01-19 17:36:33 +00:00
parent 5044e3610a
commit 0ba8805d02
25 changed files with 279 additions and 294 deletions

View file

@ -55,7 +55,7 @@ Skins.prototype.main_action = function() {
var group = path[offset + 3];
if (!group) {
res.data.list = this.getOutline();
res.data.title = gettext("Skins of {0}", res.handlers.layout.title);
res.data.title = gettext("Skins of {0}", res.handlers.site.title);
res.data.body = this.renderSkinAsString("main");
res.handlers.site.renderSkin("Site#page");
return;
@ -64,19 +64,6 @@ Skins.prototype.main_action = function() {
skin = new Skin(group.name, skin.name);
skin.edit_action();
return;
res.debug("skins: " + skins);
res.debug("group: " + group.name);
res.debug("skin: " + skin.name);
var skinFiles = app.getSkinfilesInPath(res.skinpath)[group.name];
var source = skinFiles[skin.name];
if (!source) {
skin = createSkin(skinFiles[group.name]).getSubskin(skin.name);
source = skin && skin.getSource();
}
res.encode(source);
return;
};
Skins.prototype.getOutline = function(type) {
@ -129,13 +116,6 @@ Skins.prototype.getOutline = function(type) {
}
html.closeTag("ul");
return this.cache[key] = res.pop();
var outline = this.cache.outline || []
if (outline.length > 0) {
return outline;
}
this.cache.outline = outline;
return outline;
};
Skins.prototype.create_action = function() {