From 04fea52956d19af993209869efbe88602268652d Mon Sep 17 00:00:00 2001 From: flightlevel Date: Fri, 29 Jan 2016 23:28:14 +1100 Subject: [PATCH] Allow instructions on the basic indexer Allow instructions on the basic indexer --- src/Jackett/Content/custom.css | 4 ++++ .../Models/IndexerConfig/ConfigurationDataBasicLogin.cs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Content/custom.css b/src/Jackett/Content/custom.css index 20c3ed100..15be6631f 100644 --- a/src/Jackett/Content/custom.css +++ b/src/Jackett/Content/custom.css @@ -293,3 +293,7 @@ pre { width: 80px; } +.setup-item-displayinfo:empty { + display: none; +} + diff --git a/src/Jackett/Models/IndexerConfig/ConfigurationDataBasicLogin.cs b/src/Jackett/Models/IndexerConfig/ConfigurationDataBasicLogin.cs index b3023f9f0..3f28b09a6 100644 --- a/src/Jackett/Models/IndexerConfig/ConfigurationDataBasicLogin.cs +++ b/src/Jackett/Models/IndexerConfig/ConfigurationDataBasicLogin.cs @@ -11,11 +11,13 @@ namespace Jackett.Models.IndexerConfig { public StringItem Username { get; private set; } public StringItem Password { get; private set; } + public DisplayItem Instructions { get; private set; } - public ConfigurationDataBasicLogin() + public ConfigurationDataBasicLogin(string instructionMessageOptional = null) { Username = new StringItem { Name = "Username" }; Password = new StringItem { Name = "Password" }; + Instructions = new DisplayItem(instructionMessageOptional) { Name = "" }; }