[manual] Fetch Handlebars templates using Ajax

...rather than embedding them into index.html.

This is only acceptable for dev, but the next commit adds an alternative
mechanism for prod.

There isn't actually a manual deployment step here.  However, this commit won't
work on staging / prod without the next one (since we don't serve
zephyr/static/templates in prod).

(imported from commit dce7ddfe89e07afc3a96699bb972fd124335aa05)
This commit is contained in:
Keegan McAllister
2013-02-16 04:45:32 -05:00
parent 37c5e1acd5
commit 17d5406b55
15 changed files with 42 additions and 42 deletions

View File

@@ -427,8 +427,8 @@ function show_actions_popover(element, id) {
var ypos = elt.offset().top - viewport.scrollTop();
elt.popover({
placement: (ypos > (viewport.height() - 300)) ? 'top' : 'bottom',
title: templates.actions_popover_title(args),
content: templates.actions_popover_content(args),
title: templates.render('actions_popover_title', args),
content: templates.render('actions_popover_content', args),
trigger: "manual"
});
elt.popover("show");