* Refactored Archive due to buggy behaviour of the calendar and general inconsistent code

* Disabled tagging of layout images
 * Disabled "days" page mode (ie. switched to counting stories only)
 * Moved Site.href skin to Site#href (subskin)
 * Fixed minor issues
 * Edited text and messages
This commit is contained in:
Tobi Schäfer 2008-04-16 16:42:40 +00:00
parent d18a5b95fc
commit 06eed430a8
12 changed files with 181 additions and 165 deletions

View file

@ -208,7 +208,9 @@ Image.prototype.update = function(data) {
this.writeFiles(image, thumbnail);
}
this.setTags(data.tags || data.tag_array);
if (this.parent_type !== "Layout") {
this.setTags(data.tags || data.tag_array);
}
this.description = data.description;
this.touch();
return;

View file

@ -31,8 +31,11 @@ paste the following code:' %> <pre><% image.macro %></pre></p>
$(document).ready(function() {
if ("<% image.created %>") {
$(".name").hide();
$(".resize").hide();
$(".resize").hide();
};
if ("<% image.parent_type %>" === "Layout") {
$(".tags").hide();
}
});
</script>
<p class="storyTitle"><% response.title %></p><br />
@ -55,7 +58,7 @@ $(document).ready(function() {
<td class="small" valign="top"><% gettext Description suffix=: %></td>
<td><% image.textarea description %></td>
</tr>
<tr>
<tr class="tags">
<td class="small" valign="top"><% gettext Tags suffix=: %></td>
<td><% image.input tags %></td>
</tr>