firefox: support showing bookmarks on toolbar
This commit is contained in:
parent
218cb3aee2
commit
d86c189158
3 changed files with 23 additions and 1 deletions
|
|
@ -71,7 +71,12 @@ let
|
|||
}>${escapeXML bookmark.name}</A>'';
|
||||
|
||||
directoryToHTML = indentLevel: directory: ''
|
||||
${indent indentLevel}<DT><H3>${escapeXML directory.name}</H3>
|
||||
${indent indentLevel}<DT>${
|
||||
if directory.toolbar then
|
||||
''<H3 PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar''
|
||||
else
|
||||
"<H3>${escapeXML directory.name}"
|
||||
}</H3>
|
||||
${indent indentLevel}<DL><p>
|
||||
${allItemsToHTML (indentLevel + 1) directory.bookmarks}
|
||||
${indent indentLevel}</p></DL>'';
|
||||
|
|
@ -287,6 +292,12 @@ in {
|
|||
default = [ ];
|
||||
description = "Bookmarks within directory.";
|
||||
};
|
||||
|
||||
toolbar = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "If directory should be shown in toolbar.";
|
||||
};
|
||||
};
|
||||
}) // {
|
||||
description = "directory submodule";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue