k shack/ympd: add next and prev buttons at top
This commit is contained in:
parent
dbf0926f8b
commit
0ead7ae0a7
@ -1,5 +1,8 @@
|
|||||||
{lib,pkgs, ... }:
|
{lib,pkgs, ... }:
|
||||||
let
|
let
|
||||||
|
pkg = lib.overrideDerivation pkgs.ympd (old: {
|
||||||
|
patches = [ ./ympd-top-next.patch ];
|
||||||
|
});
|
||||||
mpdHost = "mpd.shack";
|
mpdHost = "mpd.shack";
|
||||||
ympd = name: port: let
|
ympd = name: port: let
|
||||||
webPort = 10000 + port;
|
webPort = 10000 + port;
|
||||||
@ -7,7 +10,7 @@ let
|
|||||||
systemd.services."ympd-${name}" = {
|
systemd.services."ympd-${name}" = {
|
||||||
description = "mpd for ${name}";
|
description = "mpd for ${name}";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig.ExecStart = "${pkgs.ympd}/bin/ympd --host ${mpdHost} --port ${toString port} --webport ${toString webPort} --user nobody";
|
serviceConfig.ExecStart = "${pkg}/bin/ympd --host ${mpdHost} --port ${toString port} --webport ${toString webPort} --user nobody";
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."mobile.${name}.mpd.shack" = {
|
services.nginx.virtualHosts."mobile.${name}.mpd.shack" = {
|
||||||
serverAliases = [
|
serverAliases = [
|
||||||
|
16
krebs/2configs/shack/ympd-top-next.patch
Normal file
16
krebs/2configs/shack/ympd-top-next.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff --git a/htdocs/index.html b/htdocs/index.html
|
||||||
|
index ed77279..eaf92b6 100644
|
||||||
|
--- a/htdocs/index.html
|
||||||
|
+++ b/htdocs/index.html
|
||||||
|
@@ -76,6 +76,11 @@
|
||||||
|
|
||||||
|
<div class="col-md-10 col-xs-12">
|
||||||
|
<div class="notifications top-right"></div>
|
||||||
|
+
|
||||||
|
+ <ul class="pager">
|
||||||
|
+ <li id="prev" class="page-btn hide"><a href="">Previous</a></li>
|
||||||
|
+ <li id="next" class="page-btn"><a href="">Next</a></li>
|
||||||
|
+ </ul>
|
||||||
|
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<!-- Default panel contents -->
|
Loading…
Reference in New Issue
Block a user