diff --git a/wherehows-web/app/routes/schemahistory.js b/wherehows-web/app/routes/schemahistory.js new file mode 100644 index 0000000000..476095eac6 --- /dev/null +++ b/wherehows-web/app/routes/schemahistory.js @@ -0,0 +1,16 @@ +import Ember from 'ember'; +import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; + +export default Ember.Route.extend(AuthenticatedRouteMixin, { + init() { + this._super(...arguments); + Ember.run.scheduleOnce('afterRender', this, 'bindKeyEvent'); + }, + + bindKeyEvent() { + Ember.$('#name').bind('paste keyup', () => { + this.controller.set('schemaName', Ember.$("#name").val()); + this.controller.updateSchemas(1, 0); + }); + } +}); diff --git a/wherehows-web/app/routes/schemahistory/index.js b/wherehows-web/app/routes/schemahistory/index.js new file mode 100644 index 0000000000..04cf917d09 --- /dev/null +++ b/wherehows-web/app/routes/schemahistory/index.js @@ -0,0 +1,7 @@ +import Ember from 'ember'; + +export default Ember.Route.extend({ + redirect() { + this.transitionTo('schemahistory.page', 1); + } +}); diff --git a/wherehows-web/app/routes/schemahistory/page.js b/wherehows-web/app/routes/schemahistory/page.js new file mode 100644 index 0000000000..ce3e087cf9 --- /dev/null +++ b/wherehows-web/app/routes/schemahistory/page.js @@ -0,0 +1,9 @@ +import Ember from 'ember'; + +export default Ember.Route.extend({ + controllerName: 'schemahistory', + + setupController(controller, model) { + controller.updateSchemas(model.page, 0); + } +}); \ No newline at end of file diff --git a/wherehows-web/app/routes/schemahistory/schema.js b/wherehows-web/app/routes/schemahistory/schema.js new file mode 100644 index 0000000000..abfc5dfc80 --- /dev/null +++ b/wherehows-web/app/routes/schemahistory/schema.js @@ -0,0 +1,7 @@ +import Ember from 'ember'; + +export default Ember.Route.extend({ + setupController(controller, model) { + this.controllerFor('schemahistory').schemahistory.updateSchemas(1, model.id); + } +}); \ No newline at end of file diff --git a/wherehows-web/app/templates/schemahistory.hbs b/wherehows-web/app/templates/schemahistory.hbs new file mode 100644 index 0000000000..8fec63ae31 --- /dev/null +++ b/wherehows-web/app/templates/schemahistory.hbs @@ -0,0 +1,99 @@ +
+
+
+
+ + +
+
+
+
+
+
+
+
    + {{#unless first}} + + {{/unless}} +
  • + {{ model.data.count }} scripts - page {{ model.data.page }} of {{ model.data.totalPages }} +
  • + {{#unless last}} + + {{/unless}} +
+
+ + + + + + + + + + {{#each model.data.datasets as |dataset| }} + + + + + + {{/each}} + +
Dataset NameDataset URNLast Modified Date
+ {{dataset.name}} + {{ dataset.urn }}{{ dataset.lastModified }}
+
+
+ {{outlet}} +
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/wherehows-web/app/templates/schemahistory/index.hbs b/wherehows-web/app/templates/schemahistory/index.hbs new file mode 100644 index 0000000000..c24cd68950 --- /dev/null +++ b/wherehows-web/app/templates/schemahistory/index.hbs @@ -0,0 +1 @@ +{{outlet}} diff --git a/wherehows-web/app/templates/schemahistory/page.hbs b/wherehows-web/app/templates/schemahistory/page.hbs new file mode 100644 index 0000000000..c24cd68950 --- /dev/null +++ b/wherehows-web/app/templates/schemahistory/page.hbs @@ -0,0 +1 @@ +{{outlet}} diff --git a/wherehows-web/app/templates/schemahistory/schema.hbs b/wherehows-web/app/templates/schemahistory/schema.hbs new file mode 100644 index 0000000000..92685f4e5d --- /dev/null +++ b/wherehows-web/app/templates/schemahistory/schema.hbs @@ -0,0 +1,89 @@ +
+
+
+
+
    + {{#unless first}} + + {{/unless}} +
  • + {{ model.data.count }} scripts - page {{ model.data.page }} of {{ model.data.totalPages }} +
  • + {{#unless last}} + + {{/unless}} +
+
+ + + + + + + + + + {{#each model.data.datasets as |dataset| }} + + + + + + {{/each}} + +
Dataset NameDataset URNLast Modified Date
+ {{dataset.name}} + {{ dataset.urn }}{{ dataset.lastModified }}
+
+
+ {{outlet}} +
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
\ No newline at end of file