Commit 88a84ce4 authored by Robert Knight's avatar Robert Knight

Move h/templates/client => src/templates

The previous location was a vestigate of when the client was part of the
Hypothesis web service.
parent 6b214942
...@@ -27,7 +27,7 @@ var SCRIPT_DIR = 'build/scripts'; ...@@ -27,7 +27,7 @@ var SCRIPT_DIR = 'build/scripts';
var STYLE_DIR = 'build/styles'; var STYLE_DIR = 'build/styles';
var FONTS_DIR = 'build/fonts'; var FONTS_DIR = 'build/fonts';
var IMAGES_DIR = 'build/images'; var IMAGES_DIR = 'build/images';
var TEMPLATES_DIR = 'h/templates/client'; var TEMPLATES_DIR = 'src/templates';
// LiveReloadServer instance for sending messages to connected // LiveReloadServer instance for sending messages to connected
// development clients // development clients
......
...@@ -53,7 +53,7 @@ function configureLocation($locationProvider) { ...@@ -53,7 +53,7 @@ function configureLocation($locationProvider) {
} }
// @ngInject // @ngInject
var VIEWER_TEMPLATE = require('../../templates/client/viewer.html'); var VIEWER_TEMPLATE = require('../templates/viewer.html');
function configureRoutes($routeProvider) { function configureRoutes($routeProvider) {
$routeProvider.when('/a/:id', $routeProvider.when('/a/:id',
......
...@@ -9,7 +9,7 @@ module.exports = function () { ...@@ -9,7 +9,7 @@ module.exports = function () {
bindToController: true, bindToController: true,
controllerAs: 'vm', controllerAs: 'vm',
restrict: 'E', restrict: 'E',
template: require('../../../templates/client/annotation_share_dialog.html'), template: require('../../templates/annotation_share_dialog.html'),
// @ngInject // @ngInject
controller: function ($scope, $element) { controller: function ($scope, $element) {
var shareLinkInput = $element.find('input')[0]; var shareLinkInput = $element.find('input')[0];
......
...@@ -119,6 +119,6 @@ module.exports = function () { ...@@ -119,6 +119,6 @@ module.exports = function () {
*/ */
onForceVisible: '&', onForceVisible: '&',
}, },
template: require('../../../templates/client/annotation_thread.html'), template: require('../../templates/annotation_thread.html'),
}; };
}; };
...@@ -532,7 +532,7 @@ function annotation() { ...@@ -532,7 +532,7 @@ function annotation() {
replyCount: '<', replyCount: '<',
isCollapsed: '<', isCollapsed: '<',
}, },
template: require('../../../templates/client/annotation.html'), template: require('../../templates/annotation.html'),
}; };
} }
......
...@@ -7,6 +7,6 @@ module.exports = function () { ...@@ -7,6 +7,6 @@ module.exports = function () {
restrict: 'E', restrict: 'E',
controller: AppController, controller: AppController,
scope: {}, scope: {},
template: require('../../../templates/client/app.html'), template: require('../../templates/app.html'),
}; };
}; };
...@@ -26,6 +26,6 @@ module.exports = function () { ...@@ -26,6 +26,6 @@ module.exports = function () {
onClick: '&', onClick: '&',
onToggleDropdown: '&', onToggleDropdown: '&',
}, },
template: require('../../../templates/client/dropdown_menu_btn.html'), template: require('../../templates/dropdown_menu_btn.html'),
}; };
}; };
...@@ -180,7 +180,7 @@ function excerpt(ExcerptOverflowMonitor) { ...@@ -180,7 +180,7 @@ function excerpt(ExcerptOverflowMonitor) {
}, },
restrict: 'E', restrict: 'E',
transclude: true, transclude: true,
template: require('../../../templates/client/excerpt.html'), template: require('../../templates/excerpt.html'),
}; };
} }
......
...@@ -37,7 +37,7 @@ function groupList($window, groups, serviceUrl) { ...@@ -37,7 +37,7 @@ function groupList($window, groups, serviceUrl) {
scope: { scope: {
auth: '<', auth: '<',
}, },
template: require('../../../templates/client/group_list.html'), template: require('../../templates/group_list.html'),
}; };
} }
......
...@@ -5,7 +5,7 @@ module.exports = function () { ...@@ -5,7 +5,7 @@ module.exports = function () {
bindToController: true, bindToController: true,
controllerAs: 'vm', controllerAs: 'vm',
restrict: 'E', restrict: 'E',
template: require('../../../templates/client/help_link.html'), template: require('../../templates/help_link.html'),
controller: function () {}, controller: function () {},
scope: { scope: {
version: '<', version: '<',
......
...@@ -31,7 +31,7 @@ module.exports = function () { ...@@ -31,7 +31,7 @@ module.exports = function () {
); );
}, },
restrict: 'E', restrict: 'E',
template: require('../../../templates/client/help_panel.html'), template: require('../../templates/help_panel.html'),
scope: { scope: {
auth: '<', auth: '<',
onClose: '&', onClose: '&',
......
...@@ -15,6 +15,6 @@ module.exports = function () { ...@@ -15,6 +15,6 @@ module.exports = function () {
*/ */
onLogin: '&', onLogin: '&',
}, },
template: require('../../../templates/client/loggedout_message.html'), template: require('../../templates/loggedout_message.html'),
}; };
}; };
...@@ -33,6 +33,6 @@ module.exports = function () { ...@@ -33,6 +33,6 @@ module.exports = function () {
*/ */
newStyle: '<', newStyle: '<',
}, },
template: require('../../../templates/client/login_control.html'), template: require('../../templates/login_control.html'),
}; };
}; };
...@@ -103,7 +103,7 @@ module.exports = { ...@@ -103,7 +103,7 @@ module.exports = {
scope: { scope: {
onClose: '&', onClose: '&',
}, },
template: require('../../../templates/client/login_form.html'), template: require('../../templates/login_form.html'),
}; };
}, },
Controller: Controller, Controller: Controller,
......
...@@ -169,6 +169,6 @@ module.exports = function($sanitize) { ...@@ -169,6 +169,6 @@ module.exports = function($sanitize) {
text: '<?', text: '<?',
onEditText: '&', onEditText: '&',
}, },
template: require('../../../templates/client/markdown.html'), template: require('../../templates/markdown.html'),
}; };
}; };
...@@ -36,6 +36,6 @@ module.exports = function () { ...@@ -36,6 +36,6 @@ module.exports = function () {
onSave: '&', onSave: '&',
onSetPrivacy: '&', onSetPrivacy: '&',
}, },
template: require('../../../templates/client/publish_annotation_btn.html'), template: require('../../templates/publish_annotation_btn.html'),
}; };
}; };
...@@ -48,6 +48,6 @@ module.exports = function () { ...@@ -48,6 +48,6 @@ module.exports = function () {
query: '<', query: '<',
onSearch: '&', onSearch: '&',
}, },
template: require('../../../templates/client/search_input.html'), template: require('../../templates/search_input.html'),
}; };
}; };
...@@ -23,6 +23,6 @@ module.exports = function () { ...@@ -23,6 +23,6 @@ module.exports = function () {
totalAnnotations: '<', totalAnnotations: '<',
totalNotes: '<', totalNotes: '<',
}, },
template: require('../../../templates/client/search_status_bar.html'), template: require('../../templates/search_status_bar.html'),
}; };
}; };
...@@ -41,6 +41,6 @@ module.exports = function () { ...@@ -41,6 +41,6 @@ module.exports = function () {
totalNotes: '<', totalNotes: '<',
totalOrphans: '<', totalOrphans: '<',
}, },
template: require('../../../templates/client/selection_tabs.html'), template: require('../../templates/selection_tabs.html'),
}; };
}; };
...@@ -37,6 +37,6 @@ module.exports = function () { ...@@ -37,6 +37,6 @@ module.exports = function () {
scope: { scope: {
onClose: '&', onClose: '&',
}, },
template: require('../../../templates/client/share_dialog.html'), template: require('../../templates/share_dialog.html'),
}; };
}; };
...@@ -30,7 +30,7 @@ module.exports = { ...@@ -30,7 +30,7 @@ module.exports = {
controllerAs: 'vm', controllerAs: 'vm',
restrict: 'E', restrict: 'E',
scope: {}, scope: {},
template: require('../../../templates/client/sidebar_tutorial.html'), template: require('../../templates/sidebar_tutorial.html'),
}; };
}, },
Controller: SidebarTutorialController, Controller: SidebarTutorialController,
......
...@@ -12,6 +12,6 @@ module.exports = function () { ...@@ -12,6 +12,6 @@ module.exports = function () {
/** Called when the user changes the sort key. */ /** Called when the user changes the sort key. */
onChangeSortKey: '&', onChangeSortKey: '&',
}, },
template: require('../../../templates/client/sort_dropdown.html'), template: require('../../templates/sort_dropdown.html'),
}; };
}; };
...@@ -32,6 +32,6 @@ module.exports = function () { ...@@ -32,6 +32,6 @@ module.exports = function () {
tags: '<', tags: '<',
onEditTags: '&', onEditTags: '&',
}, },
template: require('../../../templates/client/tag_editor.html'), template: require('../../templates/tag_editor.html'),
}; };
}; };
...@@ -140,6 +140,6 @@ module.exports = function () { ...@@ -140,6 +140,6 @@ module.exports = function () {
/** Called to clear the current selection. */ /** Called to clear the current selection. */
onClearSelection: '&', onClearSelection: '&',
}, },
template: require('../../../templates/client/thread_list.html'), template: require('../../templates/thread_list.html'),
}; };
}; };
...@@ -20,6 +20,6 @@ module.exports = function () { ...@@ -20,6 +20,6 @@ module.exports = function () {
pendingUpdateCount: '<', pendingUpdateCount: '<',
onApplyPendingUpdates: '&', onApplyPendingUpdates: '&',
}, },
template: require('../../../templates/client/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