diff --git a/sites/dev.scrapy.org/htdocs/asc.png b/sites/dev.scrapy.org/htdocs/asc.png new file mode 100644 index 000000000..486b73159 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/asc.png differ diff --git a/sites/dev.scrapy.org/htdocs/attachment.png b/sites/dev.scrapy.org/htdocs/attachment.png new file mode 100644 index 000000000..a4d212439 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/attachment.png differ diff --git a/sites/dev.scrapy.org/htdocs/changeset.png b/sites/dev.scrapy.org/htdocs/changeset.png new file mode 100644 index 000000000..31c0356a3 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/changeset.png differ diff --git a/sites/dev.scrapy.org/htdocs/closedticket.png b/sites/dev.scrapy.org/htdocs/closedticket.png new file mode 100644 index 000000000..43f7a8447 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/closedticket.png differ diff --git a/sites/dev.scrapy.org/htdocs/collapsed.png b/sites/dev.scrapy.org/htdocs/collapsed.png new file mode 100644 index 000000000..4a2ac198c Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/collapsed.png differ diff --git a/sites/dev.scrapy.org/htdocs/css/trac.css b/sites/dev.scrapy.org/htdocs/css/trac.css index bf899ba31..a3d85892b 100644 --- a/sites/dev.scrapy.org/htdocs/css/trac.css +++ b/sites/dev.scrapy.org/htdocs/css/trac.css @@ -1,5 +1,5 @@ body { - background: #FFFFFF url('/scrapy/chrome/site/main-bg.jpg') repeat-x left top; + background: #FFFFFF url('/main-bg.jpg') repeat-x left top; color: #000; margin: 10px; padding: 0; diff --git a/sites/dev.scrapy.org/htdocs/desc.png b/sites/dev.scrapy.org/htdocs/desc.png new file mode 100644 index 000000000..207018551 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/desc.png differ diff --git a/sites/dev.scrapy.org/htdocs/dots.gif b/sites/dev.scrapy.org/htdocs/dots.gif new file mode 100644 index 000000000..c6ae052fe Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/dots.gif differ diff --git a/sites/dev.scrapy.org/htdocs/draft.png b/sites/dev.scrapy.org/htdocs/draft.png new file mode 100644 index 000000000..cd6a67a55 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/draft.png differ diff --git a/sites/dev.scrapy.org/htdocs/edit_toolbar.png b/sites/dev.scrapy.org/htdocs/edit_toolbar.png new file mode 100644 index 000000000..1269b3fb9 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/edit_toolbar.png differ diff --git a/sites/dev.scrapy.org/htdocs/editedticket.png b/sites/dev.scrapy.org/htdocs/editedticket.png new file mode 100644 index 000000000..9d12a9107 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/editedticket.png differ diff --git a/sites/dev.scrapy.org/htdocs/envelope.png b/sites/dev.scrapy.org/htdocs/envelope.png new file mode 100644 index 000000000..74676b359 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/envelope.png differ diff --git a/sites/dev.scrapy.org/htdocs/expanded.png b/sites/dev.scrapy.org/htdocs/expanded.png new file mode 100644 index 000000000..4f8a587f7 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/expanded.png differ diff --git a/sites/dev.scrapy.org/htdocs/expander_normal.png b/sites/dev.scrapy.org/htdocs/expander_normal.png new file mode 100644 index 000000000..fb580df47 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/expander_normal.png differ diff --git a/sites/dev.scrapy.org/htdocs/expander_normal_hover.png b/sites/dev.scrapy.org/htdocs/expander_normal_hover.png new file mode 100644 index 000000000..e3a866c4b Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/expander_normal_hover.png differ diff --git a/sites/dev.scrapy.org/htdocs/expander_open.png b/sites/dev.scrapy.org/htdocs/expander_open.png new file mode 100644 index 000000000..a4c90a29e Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/expander_open.png differ diff --git a/sites/dev.scrapy.org/htdocs/expander_open_hover.png b/sites/dev.scrapy.org/htdocs/expander_open_hover.png new file mode 100644 index 000000000..255064b89 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/expander_open_hover.png differ diff --git a/sites/dev.scrapy.org/htdocs/extlink.gif b/sites/dev.scrapy.org/htdocs/extlink.gif new file mode 100644 index 000000000..d47e14ca5 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/extlink.gif differ diff --git a/sites/dev.scrapy.org/htdocs/feed.png b/sites/dev.scrapy.org/htdocs/feed.png new file mode 100644 index 000000000..fec919dd2 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/feed.png differ diff --git a/sites/dev.scrapy.org/htdocs/file.png b/sites/dev.scrapy.org/htdocs/file.png new file mode 100644 index 000000000..f35fc99b3 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/file.png differ diff --git a/sites/dev.scrapy.org/htdocs/folder.png b/sites/dev.scrapy.org/htdocs/folder.png new file mode 100644 index 000000000..d26c06cfc Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/folder.png differ diff --git a/sites/dev.scrapy.org/htdocs/guide/basic-workflow.png b/sites/dev.scrapy.org/htdocs/guide/basic-workflow.png new file mode 100644 index 000000000..0074ef18a Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/guide/basic-workflow.png differ diff --git a/sites/dev.scrapy.org/htdocs/guide/original-workflow.png b/sites/dev.scrapy.org/htdocs/guide/original-workflow.png new file mode 100644 index 000000000..821365226 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/guide/original-workflow.png differ diff --git a/sites/dev.scrapy.org/htdocs/ics.png b/sites/dev.scrapy.org/htdocs/ics.png new file mode 100644 index 000000000..69b9193d0 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/ics.png differ diff --git a/sites/dev.scrapy.org/htdocs/imggrid.png b/sites/dev.scrapy.org/htdocs/imggrid.png new file mode 100644 index 000000000..d1e60d977 Binary files /dev/null and b/sites/dev.scrapy.org/htdocs/imggrid.png differ diff --git a/sites/dev.scrapy.org/htdocs/js/blame.js b/sites/dev.scrapy.org/htdocs/js/blame.js new file mode 100644 index 000000000..187dd67c8 --- /dev/null +++ b/sites/dev.scrapy.org/htdocs/js/blame.js @@ -0,0 +1,102 @@ + +(function($){ + + window.enableBlame = function(url, original_path) { + var message = null; + var message_rev = null; + + /* for each blame cell containing a changeset link... */ + var rev_paths = {}; + $("table.code th.blame a").each(function() { + href = $(this).attr("href"); + $(this).removeAttr("href"); + rev_href = href.substr(href.indexOf("changeset/") + 10); + elts = rev_href.split("/"); + var path = elts.slice(1).join("/"); + if (path != original_path) + rev_paths["r"+elts[0]] = path; + }); + + /* for each blame cell... */ + $("table.code th.blame").each(function() { + var rev = $(this).attr("class").split(" ")[1]; // "blame r123" + var path = rev_paths[rev] || original_path; // only found if != orig + + if (!rev) + return; + + $(this).css("cursor", "pointer").click(function() { + var row = this.parentNode; + var message_is_visible = message && message.css("display") == "block"; + var highlight_rev = null; + + function show() { + /* Display commit message for the selected revision */ + + var message_w = message.get(0).offsetWidth; + + // limit message panel width to 3/5 of the row width + var row_w = row.offsetWidth; + var max_w = (3.0 * row_w / 5.0); + if (!message_w || message_w > max_w) { + message_w = max_w; + var borderw = (3+8)*2; // borderwidth + padding on both sides + message.css({width: message_w - borderw + "px"}); + } + + var row_offset = $(row).offset(); + var left = row_offset.left + row.offsetWidth - message_w; + message.css({display: "block", top: row_offset.top+"px", left: left-2+"px"}); + } + + function hide() { + /* Hide commit message */ + message.css({display: "none"}); + + /* Remove highlighting for lines of the current revision */ + $("table.code th."+message_rev).each(function() { + $(this.parentNode).removeClass("hilite") + }); + } + + if (message_rev != rev) { // fetch a new revision + if (message_is_visible) { + hide(); + } + message_rev = rev; + highlight_rev = message_rev; + + $.get(url + rev.substr(1), {annotate: path}, function(data) { + // remove former message panel if any + if (message) + message.remove(); + // create new message panel + message = $('