Skip to content

Commit

Permalink
add link to server home
Browse files Browse the repository at this point in the history
  • Loading branch information
roboticsound committed Jun 22, 2017
1 parent 9859423 commit a28354b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ <h2 id="serverName"></h2>
<h2 style="text-align: bottom" id="serverName"></h2>
</div>
<div class="col-xs-2">
<img id="logo" class="img-responsive">
<a id="serverHome" target="_blank">
<img id="logo" style="border: 0;" class="img-responsive">
</a>
</div>

</div>
Expand Down
4 changes: 4 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Pulsarr {
case "movie":
$('#serverName').text("Add to Radarr");
$('#logo').attr("src", "/img/icons/radarr/32.png");
$('#logo').attr("title", "Open Radarr");
$('#serverHome').attr("href", radarr.constructBaseUrl());
$("#optSmConfig").removeClass("hidden");
$("#optMonitored").removeClass("hidden");
$("#optMinAvail").removeClass("hidden");
Expand Down Expand Up @@ -84,6 +86,8 @@ class Pulsarr {
case "series":
$('#serverName').text("Add to Sonarr");
$('#logo').attr("src", "/img/icons/sonarr/32.png");
$('#logo').attr("title", "Open Sonarr");
$('#serverHome').attr("href", sonarr.constructBaseUrl());
$("#optSmConfig").removeClass("hidden");
$("#optMonitored").removeClass("hidden");
$("#optProfile").removeClass("hidden");
Expand Down

0 comments on commit a28354b

Please sign in to comment.