Skip to content

Commit

Permalink
Move src/templates => sidebar/templates
Browse files Browse the repository at this point in the history
All of the templates are part of the sidebar application.
  • Loading branch information
robertknight committed Jan 16, 2017
1 parent 7ec94fa commit 59025f6
Show file tree
Hide file tree
Showing 49 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var SCRIPT_DIR = 'build/scripts';
var STYLE_DIR = 'build/styles';
var FONTS_DIR = 'build/fonts';
var IMAGES_DIR = 'build/images';
var TEMPLATES_DIR = 'src/templates';
var TEMPLATES_DIR = 'src/sidebar/templates';

// LiveReloadServer instance for sending messages to connected
// development clients
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function configureLocation($locationProvider) {
}

// @ngInject
var VIEWER_TEMPLATE = require('../templates/viewer.html');
var VIEWER_TEMPLATE = require('./templates/viewer.html');

function configureRoutes($routeProvider) {
$routeProvider.when('/a/:id',
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/annotation-share-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function () {
bindToController: true,
controllerAs: 'vm',
restrict: 'E',
template: require('../../templates/annotation_share_dialog.html'),
template: require('../templates/annotation_share_dialog.html'),
// @ngInject
controller: function ($scope, $element) {
var shareLinkInput = $element.find('input')[0];
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/annotation-thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ module.exports = function () {
*/
onForceVisible: '&',
},
template: require('../../templates/annotation_thread.html'),
template: require('../templates/annotation_thread.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ function annotation() {
replyCount: '<',
isCollapsed: '<',
},
template: require('../../templates/annotation.html'),
template: require('../templates/annotation.html'),
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = function () {
restrict: 'E',
controller: AppController,
scope: {},
template: require('../../templates/app.html'),
template: require('../templates/app.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/dropdown-menu-btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ module.exports = function () {
onClick: '&',
onToggleDropdown: '&',
},
template: require('../../templates/dropdown_menu_btn.html'),
template: require('../templates/dropdown_menu_btn.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/excerpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function excerpt(ExcerptOverflowMonitor) {
},
restrict: 'E',
transclude: true,
template: require('../../templates/excerpt.html'),
template: require('../templates/excerpt.html'),
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/group-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function groupList($window, groups, serviceUrl) {
scope: {
auth: '<',
},
template: require('../../templates/group_list.html'),
template: require('../templates/group_list.html'),
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/help-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function () {
bindToController: true,
controllerAs: 'vm',
restrict: 'E',
template: require('../../templates/help_link.html'),
template: require('../templates/help_link.html'),
controller: function () {},
scope: {
version: '<',
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/help-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function () {
);
},
restrict: 'E',
template: require('../../templates/help_panel.html'),
template: require('../templates/help_panel.html'),
scope: {
auth: '<',
onClose: '&',
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/loggedout-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ module.exports = function () {
*/
onLogin: '&',
},
template: require('../../templates/loggedout_message.html'),
template: require('../templates/loggedout_message.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/login-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ module.exports = function () {
*/
newStyle: '<',
},
template: require('../../templates/login_control.html'),
template: require('../templates/login_control.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/login-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = {
scope: {
onClose: '&',
},
template: require('../../templates/login_form.html'),
template: require('../templates/login_form.html'),
};
},
Controller: Controller,
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ module.exports = function($sanitize) {
text: '<?',
onEditText: '&',
},
template: require('../../templates/markdown.html'),
template: require('../templates/markdown.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/publish-annotation-btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ module.exports = function () {
onSave: '&',
onSetPrivacy: '&',
},
template: require('../../templates/publish_annotation_btn.html'),
template: require('../templates/publish_annotation_btn.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/search-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ module.exports = function () {
query: '<',
onSearch: '&',
},
template: require('../../templates/search_input.html'),
template: require('../templates/search_input.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/search-status-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ module.exports = function () {
totalAnnotations: '<',
totalNotes: '<',
},
template: require('../../templates/search_status_bar.html'),
template: require('../templates/search_status_bar.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/selection-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ module.exports = function () {
totalNotes: '<',
totalOrphans: '<',
},
template: require('../../templates/selection_tabs.html'),
template: require('../templates/selection_tabs.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/share-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ module.exports = function () {
scope: {
onClose: '&',
},
template: require('../../templates/share_dialog.html'),
template: require('../templates/share_dialog.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/sidebar-tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
controllerAs: 'vm',
restrict: 'E',
scope: {},
template: require('../../templates/sidebar_tutorial.html'),
template: require('../templates/sidebar_tutorial.html'),
};
},
Controller: SidebarTutorialController,
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/directive/sort-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ module.exports = function () {
/** Called when the user changes the sort key. */
onChangeSortKey: '&',
},
template: require('../../templates/sort_dropdown.html'),
template: require('../templates/sort_dropdown.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/tag-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ module.exports = function () {
tags: '<',
onEditTags: '&',
},
template: require('../../templates/tag_editor.html'),
template: require('../templates/tag_editor.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/thread-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ module.exports = function () {
/** Called to clear the current selection. */
onClearSelection: '&',
},
template: require('../../templates/thread_list.html'),
template: require('../templates/thread_list.html'),
};
};
2 changes: 1 addition & 1 deletion src/sidebar/directive/top-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ module.exports = function () {
pendingUpdateCount: '<',
onApplyPendingUpdates: '&',
},
template: require('../../templates/top_bar.html'),
template: require('../templates/top_bar.html'),
};
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 59025f6

Please sign in to comment.