<aid="menu_link_delete"href="#"onclick="doAjaxCall('removefromreadlist?AllRead=1',$(this),'table')"data-success="All Read Records Removed">Remove Read</a>
<aid="menu_link_delete"href="#">Force New Check</a>
with open(os.path.join(mylar.CACHE_DIR,issue['Location'])) as f:
linky = issue['Location']
except IOError as e:
linky = None
%>
%if linky:
<ahref="cache/${linky}"><imgsrc="interfaces/default/images/download_icon.png"height="25"width="25"title="Download the Issue"/></a>
%endif
%else:
<aonclick="doAjaxCall('downloadLocal?IssueID=${issue['IssueID']}', $(this), 'table')"><imgsrc="interfaces/default/images/copy_icon.png"height="25"width="25"title="Copy issue to local cache (ready for download)"/></a>
%endif
<aonclick="doAjaxCall('removefromreadlist?IssueID=${issue['IssueID']}',$(this),'table')"data-success="Sucessfully removed ${issue['ComicName']} #${issue['Issue_Number']} from Reading List"><imgsrc="interfaces/default/images/skipped_icon.png"height="25"width="25"title="Remove from Reading List"/></a>
<aonclick="doAjaxCall('markasRead?IssueID=${issue['IssueID']}', $(this),'table')"data-success="Marked ${issue['ComicName']} ${issue['Issue_Number']} as Read."><imgsrc="interfaces/default/images/wanted_icon.png"height="25"width="25"title="Mark as Read"/></a>
<inputtype="checkbox"/><label>Arcs in Grabbag Directory?</label><br/>
<inputtype="checkbox"name="storyarcdir"value="1"${readConfig['storyarcdir']}/><label>Arcs in StoryArc Directory (off of ComicLocationRoot)?</label><br/>
<inputtype="checkbox"/><label>Show Downloaded Story Arc Issues on ReadingList tab</label><br/>
<inputtype="checkbox"name="read2filename"value="1"${readConfig['read2filename']}/><label>Append Reading # to filename</label>
</div>
</form>
</tr>
</tr>
</table>
<tableclass="configtable"id="artist_table">
<thead>
<tr>
<thid="storyarc">Story Arc</th>
<thid="issue">Issues</th>
<thid="have">Status</th>
<thid="action">Options</th>
</tr>
</thead>
<tbody>
%for item in readlist:
<%
myDB = db.DBConnection()
totalcnt = myDB.action("SELECT COUNT(*) as count FROM readinglist WHERE StoryArcID=?", [item['StoryArcID']]).fetchall()
totalarc = totalcnt[0][0]
havecnt = myDB.action("SELECT COUNT(*) as count FROM readinglist WHERE StoryArcID=? AND Status='Downloaded' or Status='Archived'", [item['StoryArcID']]).fetchall()
<atitle="Remove from Reading List"onclick="doAjaxCall('removefromreadlist?StoryArcID=${item['StoryArcID']}',$(this),'table')"data-success="Sucessfully removed ${item['StoryArc']} from list."><imgsrc="interfaces/default/images/skipped_icon.png"height="25"width="25"/></a>