mirror of
https://github.com/evilhero/mylar
synced 2025-03-12 15:02:55 +00:00
- Added filter before displaying the download link
This commit is contained in:
parent
c8a9d7133f
commit
77b9153d71
1 changed files with 13 additions and 0 deletions
|
@ -164,7 +164,20 @@
|
||||||
<td id="options">
|
<td id="options">
|
||||||
<a onclick="doAjaxCall('removefromreadlist?IssueID=${issue['IssueID']}',$(this),'table')" data-success="Sucessfully removed ${issue['ComicName']} #${issue['Issue_Number']} from Reading List"><img src="interfaces/default/images/skipped_icon.png" height="25" width="25" title="Remove from Reading List" /></a>
|
<a onclick="doAjaxCall('removefromreadlist?IssueID=${issue['IssueID']}',$(this),'table')" data-success="Sucessfully removed ${issue['ComicName']} #${issue['Issue_Number']} from Reading List"><img src="interfaces/default/images/skipped_icon.png" height="25" width="25" title="Remove from Reading List" /></a>
|
||||||
<a onclick="doAjaxCall('markasRead?IssueID=${issue['IssueID']}', $(this),'table')" data-success="Marked ${issue['ComicName']} ${issue['Issue_Number']} as Read."><img src="interfaces/default/images/wanted_icon.png" height="25" width="25" title="Mark as Read" /></a>
|
<a onclick="doAjaxCall('markasRead?IssueID=${issue['IssueID']}', $(this),'table')" data-success="Marked ${issue['ComicName']} ${issue['Issue_Number']} as Read."><img src="interfaces/default/images/wanted_icon.png" height="25" width="25" title="Mark as Read" /></a>
|
||||||
|
<%
|
||||||
|
if issue['Location'] is not None:
|
||||||
|
linky = issue['Location']
|
||||||
|
if not os.path.isfile(linky):
|
||||||
|
if mylar.MULTIPLE_DEST_DIRS is not None and mylar.MULTIPLE_DEST_DIRS != 'None':
|
||||||
|
linky = os.path.join(mylar.MULTIPLE_DEST_DIRS,issue['Location'])
|
||||||
|
else:
|
||||||
|
linky = None
|
||||||
|
else:
|
||||||
|
linky = None
|
||||||
|
%>
|
||||||
|
%if linky:
|
||||||
<a href="downloadthis?pathfile=${issue['Location'] |u}"><img src="interfaces/default/images/download_icon.png" height="25" width="25" title="Download the Issue" class="highqual" /></a>
|
<a href="downloadthis?pathfile=${issue['Location'] |u}"><img src="interfaces/default/images/download_icon.png" height="25" width="25" title="Download the Issue" class="highqual" /></a>
|
||||||
|
%endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
%endfor
|
%endfor
|
||||||
|
|
Loading…
Add table
Reference in a new issue