mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
using pre-compiled handlebar templates
re-did static content from nancy
This commit is contained in:
parent
3720afd30d
commit
375f887539
21 changed files with 367 additions and 124 deletions
|
@ -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'
|
||||
});
|
||||
});
|
||||
|
||||
|
|
10
UI/Shared/NotificationTemplate.html
Normal file
10
UI/Shared/NotificationTemplate.html
Normal 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>
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue