2012-09-13 15:27:34 +00:00
|
|
|
<%inherit file="base.html"/>
|
|
|
|
<%!
|
|
|
|
from mylar import db
|
|
|
|
import mylar
|
|
|
|
%>
|
|
|
|
|
|
|
|
<%def name="headerIncludes()">
|
|
|
|
<div id="subhead_container">
|
|
|
|
<div id="subhead_menu">
|
|
|
|
<a id="menu_link_refresh" href="manualpull">Refresh Pull-list</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a href="home" class="back">« Back to overview</a>
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="body()">
|
2013-02-17 10:31:18 +00:00
|
|
|
<div class="clearfix">
|
2012-09-13 15:27:34 +00:00
|
|
|
<h1>Weekly Pull list for : ${pulldate}</h1>
|
|
|
|
</div>
|
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
<div class="table_wrapper">
|
|
|
|
|
2012-09-13 15:27:34 +00:00
|
|
|
<table class="display" id="pull_table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="publisher">Publisher</th>
|
2013-02-17 10:31:18 +00:00
|
|
|
<th id="comicname">Comic</th>
|
2012-09-13 15:27:34 +00:00
|
|
|
<th id="comicnumber">Number</th>
|
|
|
|
<th id="status">Status</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
%for weekly in weeklyresults:
|
|
|
|
<%
|
|
|
|
if weekly['STATUS'] == 'Skipped':
|
2013-01-11 21:20:51 +00:00
|
|
|
grade = 'Z'
|
2012-09-13 15:27:34 +00:00
|
|
|
elif weekly['STATUS'] == 'Wanted':
|
2013-01-11 21:20:51 +00:00
|
|
|
grade = 'X'
|
2012-09-13 15:27:34 +00:00
|
|
|
elif weekly['STATUS'] == 'Snatched':
|
|
|
|
grade = 'C'
|
|
|
|
else:
|
2013-01-11 21:20:51 +00:00
|
|
|
grade = 'A'
|
2012-09-13 15:27:34 +00:00
|
|
|
%>
|
|
|
|
<tr class="grade${grade}">
|
|
|
|
%if pullfilter is True:
|
|
|
|
%if str(weekly['ISSUE']).isdigit() > 0:
|
2013-01-28 20:31:43 +00:00
|
|
|
<td class="publisher">${weekly['PUBLISHER']}</td>
|
|
|
|
<td class="comicname">${weekly['COMIC']}</td>
|
|
|
|
<td class="comicnumber">${weekly['ISSUE']}</td>
|
|
|
|
<td class="status">${weekly['STATUS']}
|
2012-09-13 15:27:34 +00:00
|
|
|
%if weekly['STATUS'] == 'Skipped':
|
2013-01-28 20:31:43 +00:00
|
|
|
<a href="searchit?name=${weekly['COMIC'] | u}&issue=${weekly['ISSUE']}&mode=pullseries"><span class="ui-icon ui-icon-plus"></span>add series</a>
|
2012-09-13 15:27:34 +00:00
|
|
|
%endif
|
|
|
|
</td>
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
</tr>
|
|
|
|
%endfor
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-01-28 20:31:43 +00:00
|
|
|
</div>
|
2012-09-13 15:27:34 +00:00
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="headIncludes()">
|
|
|
|
<link rel="stylesheet" href="interfaces/default/css/data_table.css">
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="javascriptIncludes()">
|
|
|
|
<script src="js/libs/jquery.dataTables.min.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
function initThisPage() {
|
2012-09-13 15:27:34 +00:00
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
initActions();
|
|
|
|
$('#pull_table').dataTable (
|
|
|
|
{
|
|
|
|
"bDestroy": true,
|
2013-02-17 10:31:18 +00:00
|
|
|
//"aoColumnDefs": [
|
|
|
|
// { 'bSortable': false, 'aTargets': [ 2,3 ] }
|
|
|
|
//],
|
2013-01-28 20:31:43 +00:00
|
|
|
"oLanguage": {
|
|
|
|
"sLengthMenu":"Show _MENU_ issues per page",
|
|
|
|
"sEmptyTable": "No issue information available",
|
|
|
|
"sInfo":"Showing _TOTAL_ issues",
|
|
|
|
"sInfoEmpty":"Showing 0 to 0 of 0 issues",
|
|
|
|
"sInfoFiltered":"(filtered from _MAX_ total issues)",
|
|
|
|
"sSearch": ""},
|
|
|
|
"iDisplayLength": 25,
|
|
|
|
"sPaginationType": "full_numbers",
|
|
|
|
"aaSorting": [[0, 'desc'],[1, 'asc']]
|
|
|
|
});
|
|
|
|
resetFilters("weekly");
|
|
|
|
setTimeout(function(){
|
|
|
|
initFancybox();
|
|
|
|
},1500)
|
|
|
|
}
|
2012-09-13 15:27:34 +00:00
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
initThisPage();
|
|
|
|
});
|
|
|
|
</script>
|
2012-09-13 15:27:34 +00:00
|
|
|
</%def>
|