adjust enterprise link

This commit is contained in:
chrislu
2025-07-04 14:44:38 -07:00
parent fc55d2d8e0
commit df30737505
2 changed files with 31 additions and 17 deletions

View File

@@ -2,6 +2,7 @@ package layout
import (
"fmt"
"strings"
"time"
"github.com/gin-gonic/gin"
"github.com/seaweedfs/seaweedfs/weed/util/version"
@@ -186,10 +187,12 @@ templ Layout(c *gin.Context, content templ.Component) {
<div class="container-fluid text-center">
<small class="text-muted">
&copy; {fmt.Sprintf("%d", time.Now().Year())} SeaweedFS Admin v{version.VERSION_NUMBER}
<span class="mx-2">•</span>
<a href="https://seaweedfs.com" target="_blank" class="text-decoration-none">
<i class="fas fa-star me-1"></i>Enterprise Version Available
</a>
if !strings.Contains(version.VERSION, "enterprise") {
<span class="mx-2">•</span>
<a href="https://seaweedfs.com" target="_blank" class="text-decoration-none">
<i class="fas fa-star me-1"></i>Enterprise Version Available
</a>
}
</small>
</div>
</footer>