This commit is contained in:
Adrien Bouvais 2024-06-01 15:52:25 +02:00
parent e6899832f7
commit 05f302465e
5 changed files with 5 additions and 3 deletions

View File

@ -812,7 +812,8 @@ func LoadSettingsHandler(c *fiber.Ctx) error {
"GooseaiExists": gooseaiExists,
"GoogleExists": googleExists,
"AnyExists": openaiExists || anthropicExists || mistralExists || groqExists || gooseaiExists || googleExists,
"IsSub": isPremium || isBasic,
"isPremium": isPremium,
"isBasic": isBasic,
"StripeSubLink": stripeSubLink,
})
if err != nil {

View File

@ -93,9 +93,10 @@
</form>
<p id="api-keys-status"></p>
</div>
{% if IsSub %}
{% if IsSub or isPremium %}
<a class="button is-small mt-1" href="{{ StripeSubLink }}" target="_blank">
<span class="icon is-small" style="color: #b00202">
<span class="icon is-small" {% if isPremium %}style="color: #b00202" {%else%}style="color: #126d0f"
{% endif %}>
<i class="fa-solid fa-heart"></i>
</span>
<span>Manage subscription</span>