Commit eacf7ab2 authored by Chris Lamb's avatar Chris Lamb

Add support for collapsing package headers.

parent 3e9dae81
......@@ -70,6 +70,22 @@ function DebbugsEnhancementSuite(options) {
append($('body > p:contains("Reply or subscribe to this bug.")'));
});
$.option('collapse_package_headers', function () {
$('body > p:contains("You might like to refer to the")').remove();
$('body > p:contains("If you find a bug not listed here, please")').remove();
var links = $('body > p:contains("You may want to refer to the")')
.remove()
links[0].firstChild.nodeValue = "Binary packages: ";
var wrapper = $('body > p:contains("Maintainers for ")')
.css('margin-top', '8px')
.append(' ')
.prepend(links.html())
;
});
$.option('unnecessary_headers', function () {
$('.headers .header').each(function() {
var elem = $(this);
......
......@@ -55,4 +55,11 @@ var DebbugsEnhancementSuiteOptions = [
, "image": false
, "default": true
}
, {
"name": "collapse_package_headers"
, "title": "Collapse package headers"
, "description": "Coalesce and concatenate a number of elements on package summary pages to save vertical space."
, "image": false
, "default": true
}
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment