Skip to content
Snippets Groups Projects
Commit bced4d05 authored by Mathis Neumann's avatar Mathis Neumann
Browse files

add 404 page and better templates

parent 12b30def
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ Router.map(function() {
this.route('details', {path: '/:entityType/:entityId'}); // use model properties for automatic matching
});
});
this.route('not-found', { path: '*path' });
});
export default Router;
import Ember from 'ember';
export default Ember.Route.extend({
redirect: function () {
var url = this.router.location.formatURL('/not-found');
if (window.location.pathname !== url) {
this.replaceWith('/not-found');
}
}
});
\ No newline at end of file
{{model.length}}
<div class="container">
<h3>Available Deployments</h3>
<ul>
{{#each model as |system| }}
<li>{{#link-to 'deployments.single' system.id}}{{system.name}}{{/link-to}}</li>
{{/each}}
</ul>
</div>
{{outlet}}
\ No newline at end of file
<div class="container">
This app currently only supports {{link-to 'deployments' 'deployments'}}.
</div>
\ No newline at end of file
<div class="container">
<h1>404 Not Found</h1>
<p>
This url does not exist. Maybe a link has changed, try the {{link-to 'home page' 'home'}}
</p>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment