From b1d9d41ab12d664d6fb97d86963a94dbda63e60a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 19 Nov 2015 19:38:34 +0100 Subject: [PATCH] Hide the viewing resolution choice. --- perl/Sesse/pr0n/Index.pm | 13 ------------- templates/bilder.knatten.com/viewres | 1 - templates/bilder.knatten.com/viewres-original | 1 - templates/bilder.knatten.com/viewres-unlimited | 1 - templates/default/viewres | 1 - templates/default/viewres-original | 1 - templates/default/viewres-unlimited | 1 - templates/images.tg05.gathering.org/viewres | 1 - .../images.tg05.gathering.org/viewres-original | 1 - .../images.tg05.gathering.org/viewres-unlimited | 1 - templates/itk-bilder.samfundet.no/viewres | 1 - templates/itk-bilder.samfundet.no/viewres-original | 1 - templates/itk-bilder.samfundet.no/viewres-unlimited | 1 - templates/skoyen.bilder.knatten.com/viewres | 1 - .../skoyen.bilder.knatten.com/viewres-original | 1 - .../skoyen.bilder.knatten.com/viewres-unlimited | 1 - templates/skoyen.bildereks.knatten.com/viewres | 1 - .../skoyen.bildereks.knatten.com/viewres-original | 1 - .../skoyen.bildereks.knatten.com/viewres-unlimited | 1 - 19 files changed, 31 deletions(-) delete mode 100644 templates/bilder.knatten.com/viewres delete mode 100644 templates/bilder.knatten.com/viewres-original delete mode 100644 templates/bilder.knatten.com/viewres-unlimited delete mode 100644 templates/default/viewres delete mode 100644 templates/default/viewres-original delete mode 100644 templates/default/viewres-unlimited delete mode 100644 templates/images.tg05.gathering.org/viewres delete mode 100644 templates/images.tg05.gathering.org/viewres-original delete mode 100644 templates/images.tg05.gathering.org/viewres-unlimited delete mode 100644 templates/itk-bilder.samfundet.no/viewres delete mode 100644 templates/itk-bilder.samfundet.no/viewres-original delete mode 100644 templates/itk-bilder.samfundet.no/viewres-unlimited delete mode 100644 templates/skoyen.bilder.knatten.com/viewres delete mode 100644 templates/skoyen.bilder.knatten.com/viewres-original delete mode 100644 templates/skoyen.bilder.knatten.com/viewres-unlimited delete mode 100644 templates/skoyen.bildereks.knatten.com/viewres delete mode 100644 templates/skoyen.bildereks.knatten.com/viewres-original delete mode 100644 templates/skoyen.bildereks.knatten.com/viewres-unlimited diff --git a/perl/Sesse/pr0n/Index.pm b/perl/Sesse/pr0n/Index.pm index fc8be72..329aaed 100644 --- a/perl/Sesse/pr0n/Index.pm +++ b/perl/Sesse/pr0n/Index.pm @@ -212,7 +212,6 @@ sub handler { Sesse::pr0n::Templates::print_template($r, $io, "overloadmode"); } - print_viewres($r, $io, $event, \%settings, \%defsettings); print_selected($r, $io, $event, \%settings, \%defsettings) if ($num_selected > 0); print_fullscreen($r, $io, $event, \%settings, \%defsettings); print_nextprev($r, $io, $event, $where, \%settings, \%defsettings); @@ -440,18 +439,6 @@ sub print_changes { $io->print("

\n"); } -sub print_viewres { - my ($r, $io, $event, $settings, $defsettings) = @_; - my @alternatives = qw(320x256 512x384 640x480 800x600 1024x768 1152x864 1280x960 1400x1050 1600x1200 1920x1440 2048x1536 2304x1728); - chomp (my $unlimited = Sesse::pr0n::Templates::fetch_template($r, 'viewres-unlimited')); - chomp (my $original = Sesse::pr0n::Templates::fetch_template($r, 'viewres-original')); - push @alternatives, [ $unlimited, -2, -2 ]; - push @alternatives, [ $original, -1, -1 ]; - - print_changes($r, $io, $event, 'viewres', $settings, $defsettings, - 'xres', 'yres', \@alternatives); -} - sub print_nextprev { my ($r, $io, $event, $where, $settings, $defsettings) = @_; my $start = $settings->{'start'}; diff --git a/templates/bilder.knatten.com/viewres b/templates/bilder.knatten.com/viewres deleted file mode 100644 index 9259f61..0000000 --- a/templates/bilder.knatten.com/viewres +++ /dev/null @@ -1 +0,0 @@ -Skalér ned alle bilder (når man klikker på dem) til diff --git a/templates/bilder.knatten.com/viewres-original b/templates/bilder.knatten.com/viewres-original deleted file mode 100644 index d7d77af..0000000 --- a/templates/bilder.knatten.com/viewres-original +++ /dev/null @@ -1 +0,0 @@ -Alltid originalfil diff --git a/templates/bilder.knatten.com/viewres-unlimited b/templates/bilder.knatten.com/viewres-unlimited deleted file mode 100644 index 0999f6a..0000000 --- a/templates/bilder.knatten.com/viewres-unlimited +++ /dev/null @@ -1 +0,0 @@ -Ingen skalering diff --git a/templates/default/viewres b/templates/default/viewres deleted file mode 100644 index 8f183bd..0000000 --- a/templates/default/viewres +++ /dev/null @@ -1 +0,0 @@ -Maximum viewing resolution diff --git a/templates/default/viewres-original b/templates/default/viewres-original deleted file mode 100644 index 2db1c40..0000000 --- a/templates/default/viewres-original +++ /dev/null @@ -1 +0,0 @@ -Always original file diff --git a/templates/default/viewres-unlimited b/templates/default/viewres-unlimited deleted file mode 100644 index fd50299..0000000 --- a/templates/default/viewres-unlimited +++ /dev/null @@ -1 +0,0 @@ -Unlimited diff --git a/templates/images.tg05.gathering.org/viewres b/templates/images.tg05.gathering.org/viewres deleted file mode 100644 index 8f183bd..0000000 --- a/templates/images.tg05.gathering.org/viewres +++ /dev/null @@ -1 +0,0 @@ -Maximum viewing resolution diff --git a/templates/images.tg05.gathering.org/viewres-original b/templates/images.tg05.gathering.org/viewres-original deleted file mode 100644 index 2db1c40..0000000 --- a/templates/images.tg05.gathering.org/viewres-original +++ /dev/null @@ -1 +0,0 @@ -Always original file diff --git a/templates/images.tg05.gathering.org/viewres-unlimited b/templates/images.tg05.gathering.org/viewres-unlimited deleted file mode 100644 index fd50299..0000000 --- a/templates/images.tg05.gathering.org/viewres-unlimited +++ /dev/null @@ -1 +0,0 @@ -Unlimited diff --git a/templates/itk-bilder.samfundet.no/viewres b/templates/itk-bilder.samfundet.no/viewres deleted file mode 100644 index 9259f61..0000000 --- a/templates/itk-bilder.samfundet.no/viewres +++ /dev/null @@ -1 +0,0 @@ -Skalér ned alle bilder (når man klikker på dem) til diff --git a/templates/itk-bilder.samfundet.no/viewres-original b/templates/itk-bilder.samfundet.no/viewres-original deleted file mode 100644 index d7d77af..0000000 --- a/templates/itk-bilder.samfundet.no/viewres-original +++ /dev/null @@ -1 +0,0 @@ -Alltid originalfil diff --git a/templates/itk-bilder.samfundet.no/viewres-unlimited b/templates/itk-bilder.samfundet.no/viewres-unlimited deleted file mode 100644 index 0999f6a..0000000 --- a/templates/itk-bilder.samfundet.no/viewres-unlimited +++ /dev/null @@ -1 +0,0 @@ -Ingen skalering diff --git a/templates/skoyen.bilder.knatten.com/viewres b/templates/skoyen.bilder.knatten.com/viewres deleted file mode 100644 index 9259f61..0000000 --- a/templates/skoyen.bilder.knatten.com/viewres +++ /dev/null @@ -1 +0,0 @@ -Skalér ned alle bilder (når man klikker på dem) til diff --git a/templates/skoyen.bilder.knatten.com/viewres-original b/templates/skoyen.bilder.knatten.com/viewres-original deleted file mode 100644 index d7d77af..0000000 --- a/templates/skoyen.bilder.knatten.com/viewres-original +++ /dev/null @@ -1 +0,0 @@ -Alltid originalfil diff --git a/templates/skoyen.bilder.knatten.com/viewres-unlimited b/templates/skoyen.bilder.knatten.com/viewres-unlimited deleted file mode 100644 index 0999f6a..0000000 --- a/templates/skoyen.bilder.knatten.com/viewres-unlimited +++ /dev/null @@ -1 +0,0 @@ -Ingen skalering diff --git a/templates/skoyen.bildereks.knatten.com/viewres b/templates/skoyen.bildereks.knatten.com/viewres deleted file mode 100644 index 9259f61..0000000 --- a/templates/skoyen.bildereks.knatten.com/viewres +++ /dev/null @@ -1 +0,0 @@ -Skalér ned alle bilder (når man klikker på dem) til diff --git a/templates/skoyen.bildereks.knatten.com/viewres-original b/templates/skoyen.bildereks.knatten.com/viewres-original deleted file mode 100644 index d7d77af..0000000 --- a/templates/skoyen.bildereks.knatten.com/viewres-original +++ /dev/null @@ -1 +0,0 @@ -Alltid originalfil diff --git a/templates/skoyen.bildereks.knatten.com/viewres-unlimited b/templates/skoyen.bildereks.knatten.com/viewres-unlimited deleted file mode 100644 index 0999f6a..0000000 --- a/templates/skoyen.bildereks.knatten.com/viewres-unlimited +++ /dev/null @@ -1 +0,0 @@ -Ingen skalering -- 2.39.5