Empty list styling
This commit is contained in:
@@ -536,3 +536,17 @@
|
|||||||
.movies .alph_nav .more_menu > a {
|
.movies .alph_nav .more_menu > a {
|
||||||
background-position: center -158px;
|
background-position: center -158px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.movies .empty_wanted {
|
||||||
|
background-image: url('../images/emptylist.png');
|
||||||
|
height: 750px;
|
||||||
|
width: 800px;
|
||||||
|
padding-top: 260px;
|
||||||
|
margin-top: -50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movies .empty_manage {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 25px;
|
||||||
|
line-height: 150%;
|
||||||
|
}
|
||||||
|
|||||||
@@ -29,7 +29,20 @@ Page.Manage = new Class({
|
|||||||
'identifier': 'manage',
|
'identifier': 'manage',
|
||||||
'status': 'done',
|
'status': 'done',
|
||||||
'actions': MovieActions,
|
'actions': MovieActions,
|
||||||
'menu': [self.refresh_button, self.refresh_quick]
|
'menu': [self.refresh_button, self.refresh_quick],
|
||||||
|
'on_empty_element': new Element('div.empty_manage').adopt(
|
||||||
|
new Element('div', {
|
||||||
|
'text': 'Seems like you don\'t have anything in your library yet.'
|
||||||
|
}),
|
||||||
|
new Element('div', {
|
||||||
|
'text': 'Add your existing movie folders in '
|
||||||
|
}).adopt(
|
||||||
|
new Element('a', {
|
||||||
|
'text': 'Settings > Manage',
|
||||||
|
'href': App.createUrl('settings/manage')
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
});
|
});
|
||||||
$(self.list).inject(self.el);
|
$(self.list).inject(self.el);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ Page.Wanted = new Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// See if userscript can be installed
|
|
||||||
|
|
||||||
|
|
||||||
// Wanted movies
|
// Wanted movies
|
||||||
self.wanted = new MovieList({
|
self.wanted = new MovieList({
|
||||||
'identifier': 'wanted',
|
'identifier': 'wanted',
|
||||||
@@ -28,13 +25,7 @@ Page.Wanted = new Class({
|
|||||||
'actions': MovieActions,
|
'actions': MovieActions,
|
||||||
'add_new': true,
|
'add_new': true,
|
||||||
'menu': [self.manual_search],
|
'menu': [self.manual_search],
|
||||||
'on_empty_element': App.createUserscriptButtons().setStyles({
|
'on_empty_element': App.createUserscriptButtons().addClass('empty_wanted')
|
||||||
'background-image': "url('"+Api.createUrl('static/images/emptylist.png')+"')",
|
|
||||||
'height': 750,
|
|
||||||
'width': 800,
|
|
||||||
'padding-top': 260,
|
|
||||||
'margin-top': -50
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
$(self.wanted).inject(self.el);
|
$(self.wanted).inject(self.el);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/uniform.css') }}" type="text/css">
|
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/uniform.css') }}" type="text/css">
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/page/settings.css') }}" type="text/css">
|
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/page/settings.css') }}" type="text/css">
|
||||||
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/page/wanted.css') }}" type="text/css">
|
|
||||||
|
|
||||||
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools.js') }}"></script>
|
||||||
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools_more.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools_more.js') }}"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user