mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-21 21:45:16 -05:00
Add functionality to contact inst maintainer link
This commit is contained in:
parent
5979e8f114
commit
5c0eef56c5
@ -68,11 +68,12 @@ end
|
|||||||
class Config
|
class Config
|
||||||
include YAML::Serializable
|
include YAML::Serializable
|
||||||
|
|
||||||
property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)
|
property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)
|
||||||
property feed_threads : Int32 = 1 # Number of threads to use for updating feeds
|
property feed_threads : Int32 = 1 # Number of threads to use for updating feeds
|
||||||
property output : String = "STDOUT" # Log file path or STDOUT
|
property output : String = "STDOUT" # Log file path or STDOUT
|
||||||
property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr
|
property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr
|
||||||
property db : DBConfig? = nil # Database configuration with separate parameters (username, hostname, etc)
|
property db : DBConfig? = nil # Database configuration with separate parameters (username, hostname, etc)
|
||||||
|
property instance_maintainer_email : String? = nil # Email to contact the instance maintainer. This is used within the footer as an mailto link.
|
||||||
|
|
||||||
@[YAML::Field(converter: Preferences::URIConverter)]
|
@[YAML::Field(converter: Preferences::URIConverter)]
|
||||||
property database_url : URI = URI.parse("") # Database configuration using 12-Factor "Database URL" syntax
|
property database_url : URI = URI.parse("") # Database configuration using 12-Factor "Database URL" syntax
|
||||||
|
@ -232,8 +232,8 @@
|
|||||||
<b class="footer-section-header"><%= translate(locale, "Support")%></b>
|
<b class="footer-section-header"><%= translate(locale, "Support")%></b>
|
||||||
<ul class="pure-menu-list footer-section-list">
|
<ul class="pure-menu-list footer-section-list">
|
||||||
<li class="pure-menu-item footer-section-item">
|
<li class="pure-menu-item footer-section-item">
|
||||||
<!-- TODO -->
|
<% link = CONFIG.instance_maintainer_email ? "mailto:#{CONFIG.instance_maintainer_email}" : "#"%>
|
||||||
<a href="#" title="<%= translate(locale, "Contact instance maintainer")%>">
|
<a href=<%=link%> title="<%= translate(locale, "Contact instance maintainer")%>">
|
||||||
<%= translate(locale, "Contact instance maintainer") %>
|
<%= translate(locale, "Contact instance maintainer") %>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user