Commit 2d5cea1f authored by Robert Knight's avatar Robert Knight

Use hyphens instead of underscores in template filenames

The use of underscores dates back to when the templates were part of the
service code and used the same naming conventions as the service's
Jinja2 templates.

Using hyphens makes the template filenames match the other files
which make up a component (JS & SCSS files). This makes it easier to
switch between the different parts when using a fuzzy file finder.
parent 3e808409
......@@ -6,7 +6,7 @@ var scopeTimeout = require('../util/scope-timeout');
module.exports = {
controllerAs: 'vm',
template: require('../templates/annotation_share_dialog.html'),
template: require('../templates/annotation-share-dialog.html'),
// @ngInject
controller: function ($scope, $element, analytics) {
var shareLinkInput = $element.find('input')[0];
......
......@@ -116,5 +116,5 @@ module.exports = {
*/
onForceVisible: '&',
},
template: require('../templates/annotation_thread.html'),
template: require('../templates/annotation-thread.html'),
};
......@@ -79,5 +79,5 @@ module.exports = {
bindings: {
search: '<',
},
template: require('../templates/annotation_viewer_content.html'),
template: require('../templates/annotation-viewer-content.html'),
};
......@@ -21,5 +21,5 @@ module.exports = {
onClick: '&',
onToggleDropdown: '&',
},
template: require('../templates/dropdown_menu_btn.html'),
template: require('../templates/dropdown-menu-btn.html'),
};
......@@ -40,5 +40,5 @@ module.exports = {
bindings: {
auth: '<',
},
template: require('../templates/group_list.html'),
template: require('../templates/group-list.html'),
};
......@@ -2,7 +2,7 @@
module.exports = {
controllerAs: 'vm',
template: require('../templates/help_link.html'),
template: require('../templates/help-link.html'),
controller: function () {},
scope: {
version: '<',
......
......@@ -28,7 +28,7 @@ module.exports = {
}.bind(this)
);
},
template: require('../templates/help_panel.html'),
template: require('../templates/help-panel.html'),
bindings: {
auth: '<',
onClose: '&',
......
......@@ -154,5 +154,5 @@ function HypothesisAppController(
module.exports = {
controller: HypothesisAppController,
controllerAs: 'vm',
template: require('../templates/hypothesis_app.html'),
template: require('../templates/hypothesis-app.html'),
};
......@@ -12,5 +12,5 @@ module.exports = {
*/
onLogin: '&',
},
template: require('../templates/loggedout_message.html'),
template: require('../templates/loggedout-message.html'),
};
......@@ -39,5 +39,5 @@ module.exports = {
*/
newStyle: '<',
},
template: require('../templates/login_control.html'),
template: require('../templates/login-control.html'),
};
......@@ -102,5 +102,5 @@ module.exports = {
bindings: {
onClose: '&',
},
template: require('../templates/login_form.html'),
template: require('../templates/login-form.html'),
};
......@@ -52,5 +52,5 @@ module.exports = {
bindings: {
annotation: '<',
},
template: require('../templates/moderation_banner.html'),
template: require('../templates/moderation-banner.html'),
};
......@@ -31,5 +31,5 @@ module.exports = {
onSave: '&',
onSetPrivacy: '&',
},
template: require('../templates/publish_annotation_btn.html'),
template: require('../templates/publish-annotation-btn.html'),
};
......@@ -44,5 +44,5 @@ module.exports = {
query: '<',
onSearch: '&',
},
template: require('../templates/search_input.html'),
template: require('../templates/search-input.html'),
};
......@@ -19,5 +19,5 @@ module.exports = {
totalAnnotations: '<',
totalNotes: '<',
},
template: require('../templates/search_status_bar.html'),
template: require('../templates/search-status-bar.html'),
};
......@@ -38,5 +38,5 @@ module.exports = {
totalNotes: '<',
totalOrphans: '<',
},
template: require('../templates/selection_tabs.html'),
template: require('../templates/selection-tabs.html'),
};
......@@ -40,5 +40,5 @@ module.exports = {
bindings: {
onClose: '&',
},
template: require('../templates/share_dialog.html'),
template: require('../templates/share-dialog.html'),
};
......@@ -344,5 +344,5 @@ module.exports = {
auth: '<',
search: '<',
},
template: require('../templates/sidebar_content.html'),
template: require('../templates/sidebar-content.html'),
};
......@@ -25,5 +25,5 @@ module.exports = {
controller: SidebarTutorialController,
controllerAs: 'vm',
bindings: {},
template: require('../templates/sidebar_tutorial.html'),
template: require('../templates/sidebar-tutorial.html'),
};
......@@ -11,5 +11,5 @@ module.exports = {
/** Called when the user changes the sort key. */
onChangeSortKey: '&',
},
template: require('../templates/sort_dropdown.html'),
template: require('../templates/sort-dropdown.html'),
};
......@@ -87,5 +87,5 @@ module.exports = {
bindings: {
search: '<',
},
template: require('../templates/stream_content.html'),
template: require('../templates/stream-content.html'),
};
......@@ -29,5 +29,5 @@ module.exports = {
tags: '<',
onEditTags: '&',
},
template: require('../templates/tag_editor.html'),
template: require('../templates/tag-editor.html'),
};
......@@ -164,5 +164,5 @@ module.exports = {
/** Called to clear the current selection. */
onClearSelection: '&',
},
template: require('../templates/thread_list.html'),
template: require('../templates/thread-list.html'),
};
......@@ -17,5 +17,5 @@ module.exports = {
pendingUpdateCount: '<',
onApplyPendingUpdates: '&',
},
template: require('../templates/top_bar.html'),
template: require('../templates/top-bar.html'),
};
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