Support for templates

This commit is contained in:
benweet 2013-04-14 17:58:35 +01:00
parent 0420be3a7d
commit 8bcf5142f0
2 changed files with 7 additions and 1 deletions

View File

@ -401,7 +401,7 @@
</div>
<div class="control-group">
<label class="control-label"
for="textarea-settings-publish-template">Template</label>
for="textarea-settings-publish-template">Template (<a href="#" class="tooltip-template">?</a>)</label>
<div class="controls">
<textarea id="textarea-settings-publish-template"></textarea>
</div>

View File

@ -182,6 +182,12 @@ define(["jquery", "github-provider", "underscore"], function($) {
publisher.publish();
}
});
$(".tooltip-template").tooltip({
title: ['Variables:\n',
'documentTitle: the document title'
].join("")
});
};
return publisher;