using pre-compiled handlebar templates

re-did static content from nancy
This commit is contained in:
kay.one 2013-03-29 16:00:38 -07:00
commit 375f887539
21 changed files with 367 additions and 124 deletions

View file

@ -1,6 +1,7 @@
define(['app'],function () {
"use strict";
define(['app'],function () {
NzbDrone.Shared.NotFoundView = Backbone.Marionette.ItemView.extend({
template: 'Shared/notfoundtemplate',
template: 'Shared/notfoundtemplate'
});
});

View file

@ -0,0 +1,10 @@
<div class="alert alert-{{level}}">
<button type="button" class="close x-close icon-remove-sign"></button>
<i class="{{iconClass}}" /><strong>{{title}}</strong>
{{#if isPreFormatted}}
<pre>{{{preFormattedMessage}}}</pre>
{{else}}
{{message}}
{{/if}}
</div>

View file

@ -1,7 +1,9 @@
define(['app', 'Shared/NotificationCollection'], function (app, notificationCollection) {
"use strict";
define(['app', 'Shared/NotificationCollection'], function (app, notificationCollection) {
var notificationItemView = Backbone.Marionette.ItemView.extend({
template: '#notification-template',
template: 'Shared/NotificationTemplate',
events: {
'click .x-close': 'kill'