mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
templates: Rename *.handlebars ↦ *.hbs and - ↦ _.
Tweaked by tabbott to avoid accidentally disabling the linter for handlebars templates. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
107da5402c
commit
3c3471b720
@@ -122,7 +122,7 @@ exports.activate = function (opts) {
|
||||
var task_data = exports.task_data_holder();
|
||||
|
||||
function render() {
|
||||
var html = templates.render('widgets/todo-widget');
|
||||
var html = templates.render('widgets/todo_widget');
|
||||
elem.html(html);
|
||||
|
||||
elem.find("button.add-task").on('click', function (e) {
|
||||
@@ -149,7 +149,7 @@ exports.activate = function (opts) {
|
||||
|
||||
function render_results() {
|
||||
var widget_data = task_data.get_widget_data();
|
||||
var html = templates.render('widgets/todo-widget-tasks', widget_data);
|
||||
var html = templates.render('widgets/todo_widget_tasks', widget_data);
|
||||
elem.find('ul.todo-widget').html(html);
|
||||
elem.find(".widget-error").text('');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user