Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/d7c70a9c917397fb5fda3efb5e8461148db3874a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
48 additions and
6 deletions
@ -0,0 +1,7 @@
< li >
< div class = "notification-item add-card x-add-card" >
< span class = "center well" >
< i class = "icon-plus" title = "Add Notification" / >
< / span >
< / div >
< / li >
@ -1,9 +1,4 @@
< div class = "row" >
< div class = "span12" >
< button class = "btn btn-success x-add" > Add Notification< / button >
< / div >
< / div >
< div class = "row" >
< div class = "span12" >
< ul class = "notifications" > < / ul >
< / div >
@ -10,12 +10,34 @@ define([
itemViewContainer : '.notifications' ,
template : 'Settings/Notifications/CollectionTemplate' ,
ui : {
'addCard' : '.x-add-card'
} ,
events : {
'click .x-add' : '_openSchemaModal'
'click .x-add' : '_openSchemaModal' ,
'click .x-add-card' : '_openSchemaModal'
} ,
onBeforeItemAdded : function ( ) {
this . ui . addCard . remove ( ) ;
} ,
onAfterItemAdded : function ( ) {
this . _appendAddCard ( ) ;
} ,
_openSchemaModal : function ( ) {
SchemaModal . open ( this . collection ) ;
} ,
_appendAddCard : function ( ) {
this . $itemViewContainer . find ( '.x-add-card' ) . remove ( ) ;
this . templateFunction = Marionette . TemplateCache . get ( 'Settings/Notifications/AddCardTemplate' ) ;
var html = this . templateFunction ( ) ;
this . $itemViewContainer . append ( html ) ;
}
} ) ;
} ) ;
@ -56,4 +56,22 @@
.settings {
margin-top: 5px;
}
}
.add-card {
.clickable;
color: #adadad;
font-size: 50px;
text-align: center;
.center {
display: inline-block;
padding: 0px 20px;
padding-top: 5px;
margin-top: 15px;
}
i {
.clickable;
}
}