Added caching to Sources

Added caching to Sources.
Updated the source browser to mark sources which are still cached
This commit is contained in:
2010-03-21 23:16:56 +00:00
parent b166e125f5
commit 648968bcb7
4 changed files with 44 additions and 8 deletions

View File

@@ -2,11 +2,15 @@
{if $sources}
<p>
The following DVD sources are available to be ripped:
The list below contains all the DVD sources that are available and ready for ripping.
</p>
<p>
Sources that have recently been scanned are marked <em>(cached)</em> and will load fairly quickly.
Sources that have not been cached will be scanned when the link is clicked, and this may take several minutes so please be patient.
</p>
<ul>
{foreach from=$sources item=source}
<li><a href="{$base_uri}browse/source-details/id/{$source|base64_encode|replace:"/":"-"}" title="View source details">{$source|escape:'html'}</a></li>
<li><a href="{$base_uri}browse/source-details/id/{$source|base64_encode|replace:"/":"-"}" title="View source details">{$source|escape:'html'}</a>{if $sources_cached.$source} (cached){/if}</li>
{/foreach}
</ul>
{else}