Add/fix CouchPotato icons to themes.

This commit is contained in:
DariusIII
2016-05-12 15:19:18 +02:00
parent cfbf5fcc26
commit 8d7a806e8d
7 changed files with 26 additions and 6 deletions
+1
View File
@@ -1,4 +1,5 @@
2016-05-12 DariusIII
* Fix: Add/fix CouchPotato icons to themes.
* Fix: Remove derefferer links from CouchPotato url in Gamma theme.
* Fix: Fix nntmux_schema_fi for misc cats
* Fix: Wrong path to postprocess.php when using sequential in tmux
+4 -4
View File
@@ -320,14 +320,14 @@
{/if}
{if $cpurl != '' && $cpapi != ''}
<a
class="sendtocouch"
class="sendtocouch fa fa-bed"
target="blackhole"
href="javascript:"
rel="{$cpurl}/api/{$cpapi}/movie.add/?identifier=tt{$result.imdbid}&title={$result.title}"
name="CP{$result.imdbid}"
title="Add to CouchPotato"
><img
src="{$smarty.const.WWW_THEMES}/shared/images/icons/couch.png"></a>
title="Add to CouchPotato">
</a>
{/if}
{if isset($isadmin)}
<input type="button"
@@ -240,6 +240,9 @@
id="guid{$release.guid}"></i> Send to
Queue
</button>{/if}
{if !empty($cpurl) && !empty($cpapi)}
<a class="sendtocouch fa fa-bed" target="blackhole" href="javascript:;" rel="{$cpurl}/api/{$cpapi}/movie.add/?identifier=tt{$release.imdbid}&title={$movie.title}" name="CP{$release.imdbid}" title="Add to CouchPotato"></a>
{/if}
{if $weHasVortex}
<button type="button"
class="btn btn-primary btn-sm btn-transparent vortexsend">
+1 -1
View File
@@ -177,7 +177,7 @@
rel="{$cpurl}/api/{$cpapi}/movie.add/?identifier=tt{$result.imdbid}&title={$result.title}"
name="CP{$result.imdbid}"
title="Add to CouchPotato"
><i class="fa fa-share"></i></span>
><i class="fa fa-bed"></i></span>
{/if}
{if !empty($mfailed[$m@index])}
<span class="btn btn-default btn-xs"
+3
View File
@@ -245,6 +245,9 @@
id="guid{$release.guid}"></i> Send to
Queue
</button>{/if}
{if !empty($cpurl) && !empty($cpapi)}
<a class="sendtocouch fa fa-bed" target="blackhole" href="javascript:;" rel="{$cpurl}/api/{$cpapi}/movie.add/?identifier=tt{$release.imdbid}&title={$movie.title}" name="CP{$release.imdbid}" title="Add to CouchPotato"></a>
{/if}
{if $weHasVortex}
<button type="button"
class="btn btn-primary btn-sm btn-transparent vortexsend">
+1 -1
View File
@@ -161,7 +161,7 @@
rel="{$cpurl}/api/{$cpapi}/movie.add/?identifier=tt{$result.imdbid}&title={$result.title}"
name="CP{$result.imdbid}"
title="Add to CouchPotato"
><i class="fa fa-share"></i></span>
><i class="fa fa-bed"></i></span>
{/if}
{if !empty($mfailed[$m@index])}
<span class="btn btn-default btn-xs" title="This release has failed to download for some users">
+13
View File
@@ -97,6 +97,19 @@ jQuery(function($){
return false;
});
$('.sendtocouch').click(function (e) {
e.preventDefault();
$.get($(this).attr('rel'));
$.pnotify({
title: 'ADDED TO COUCHPOTATO!',
text: 'Its now on your wanted list! ^_^',
type: 'info',
animate_speed: 'fast',
icon: 'fa fa-info-sign'
});
});
$('.vortexsend').click(function(event)
{