Adds buymecoffee link and support information (#4)

*  Added logic to check if it's the first run after an upgrade.

* Adds butmecoffee link

* Catch up with master

* Adds add-on support information
This commit is contained in:
Joakim Sørensen 2018-09-05 17:48:14 +02:00 committed by GitHub
parent 34f8dc441c
commit b391dad173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 1 deletions

View file

@ -64,4 +64,4 @@ LABEL \
org.label-schema.usage="https://github.com/hassio-addons/addon-tautulli/tree/master/README.md" \
org.label-schema.vcs-ref=${BUILD_REF} \
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-tautulli" \
org.label-schema.vendor="Community Hass.io Add-ons"
org.label-schema.vendor="Community Hass.io Add-ons"

View file

@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bash
# ==============================================================================
# Community Hass.io Add-ons: Tautulli
# Patches for Tautulli
# ==============================================================================
# Adds buymeacoffe link
patch /opt/data/interfaces/default/base.html /patches/buymeacoffe
# Adds add-on support information in the settings of Tautulli
patch /opt/data/interfaces/default/base.html /patches/support

View file

@ -0,0 +1,11 @@
--- /opt/data/interfaces/default/base.html
+++ /opt/data/interfaces/default/base.html
@@ -137,7 +137,7 @@
<li><a href="${anon_url('https://github.com/%s/%s-Wiki/wiki/Frequently-Asked-Questions' % (plexpy.CONFIG.GIT_USER, plexpy.CONFIG.GIT_REPO))}" target="_blank"><i class="fa fa-fw fa-question-circle"></i> FAQ</a></li>
<li><a href="support"><i class="fa fa-fw fa-comment"></i> Support</a></li>
<li role="separator" class="divider"></li>
- <li><a href="#" data-target="#donate-modal" data-toggle="modal"><i class="fa fa-fw fa-heart"></i> Donate</a></li>
+ <li><a href="https://buymeacoffee.com/ludeeus" target="_blank"><i class="fa fa-coffee"></i> Buy Me A Coffee :)</a></li>
<li role="separator" class="divider"></li>
% if plexpy.CONFIG.CHECK_GITHUB:
<li><a href="#" id="nav-update"><i class="fa fa-fw fa-arrow-circle-up"></i> Check for Updates</a></li>

View file

@ -0,0 +1,38 @@
--- /opt/data/interfaces/default/configuration_table.html
+++ /opt/data/interfaces/default/configuration_table.html
@@ -54,20 +54,6 @@
<td>${plexpy.CONFIG.NEWSLETTER_DIR}</td>
</tr>
<tr>
- <td>GeoLite2 Database:</td>
- % if plexpy.CONFIG.GEOIP_DB:
- <td>${plexpy.CONFIG.GEOIP_DB} | <a class="no-highlight" href="#" id="reinstall_geoip_db">Reinstall / Update</a> | <a class="no-highlight" href="#" id="uninstall_geoip_db">Uninstall</a></td>
- % else:
- <td><a class="no-highlight" href="#" id="install_geoip_db">Click here to install the GeoLite2 database.</a></td>
- % endif
- </tr>
- % if plexpy.ARGS:
- <tr>
- <td>Arguments:</td>
- <td>${plexpy.ARGS}</td>
- </tr>
- % endif
- <tr>
<td>Platform:</td>
<td>${common.PLATFORM} ${common.PLATFORM_RELEASE} (${common.PLATFORM_VERSION + (' - {}'.format(common.PLATFORM_LINUX_DISTRO) if common.PLATFORM_LINUX_DISTRO else '')})</td>
</tr>
@@ -93,6 +79,14 @@
<a class="no-highlight support-modal-link" href="${anon_url('https://forums.plex.tv/t/tautulli-monitor-your-plex-media-server/225242')}" target="_blank">Plex Forums</a>
</td>
</tr>
+ <tr>
+ <td>Add-on Support:</td>
+ <td>
+ <a class="no-highlight" href="https://discord.me/hassioaddons" target="_blank">Community Hass.io Add-ons Discord Server</a> |
+ <a class="no-highlight" href="https://github.com/hassio-addons/addon-tautulli/issues" target="_blank">GitHub issues for this add-on</a> |
+ <a class="no-highlight" href="https://community.home-assistant.io" target="_blank">Home-Assistant forum</a>
+ </td>
+ </tr>
</tbody>
</table>