From 54a25a5200ad3098ac779843d1f8cec19bd515b7 Mon Sep 17 00:00:00 2001 From: Code by Ben Date: Tue, 17 Dec 2024 18:23:05 +1100 Subject: [PATCH] New none group. Demozoo BBS links. --- handler/app/context.go | 7 +++++++ handler/demozoo/demozoo.go | 1 + view/app/artifacts.tmpl | 7 +++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/handler/app/context.go b/handler/app/context.go index 097de429..1d6d7acf 100644 --- a/handler/app/context.go +++ b/handler/app/context.go @@ -1282,6 +1282,9 @@ func Releasers(c echo.Context, db *sql.DB, logger *zap.SugaredLogger, uri string htm += fmt.Sprintf(`
  • %s
    %s
  • `, v.String(), v.URL(uri)) } data["tidbits"] = template.HTML(htm) + if strings.HasSuffix(uri, "-bbs") { + data["bbs"] = true + } data["uploader-releaser-index"] = releaser.Index(uri) data[records] = fs switch uri { @@ -1291,6 +1294,9 @@ func Releasers(c echo.Context, db *sql.DB, logger *zap.SugaredLogger, uri string `
    In the scene's early years,` + ` releasing documents or software cracks under a personal alias or a` + ` real-name attribution was commonplace.` + case "none": + data["lead"] = "None, are files which were never intended for the scene." + + `
    These can include commercial or free software applications or online texts for public forums.` default: // placeholder to handle other releaser types } @@ -1784,6 +1790,7 @@ func steps(lastPage float64) int { // emptyFiles is a map of default values specific to the files templates. func emptyFiles(c echo.Context) map[string]interface{} { data := empty(c) + data["bbs"] = false data["demozoo"] = "0" data["sixteen"] = "" data["scener"] = "" diff --git a/handler/demozoo/demozoo.go b/handler/demozoo/demozoo.go index 1dda69d9..989902fb 100644 --- a/handler/demozoo/demozoo.go +++ b/handler/demozoo/demozoo.go @@ -682,4 +682,5 @@ var groups = Groups{ "visions-of-reality": 86454, "vortex-software": 146440, "xerox": 59161, + "chicago-bbs": 12584, } diff --git a/view/app/artifacts.tmpl b/view/app/artifacts.tmpl index a7d91210..f72b501c 100644 --- a/view/app/artifacts.tmpl +++ b/view/app/artifacts.tmpl @@ -10,6 +10,7 @@ {{- $web := index .website }} {{- $linkWeb := gt (len $web) 0}} {{- $zoo := index .demozoo }} +{{- $bbs := index .bbs }} {{- $linkZoo := ne $zoo "0"}} {{- $sixteen := index .sixteen }} {{- $link16C := ne $sixteen ""}} @@ -29,8 +30,10 @@ {{- end}} {{- if or $linkZoo $link16C $linkWeb}}

    - {{- if $linkZoo}} - Production and member lists Demozoo{{linkSVG}}
    + {{- if and (eq $bbs false) (eq $linkZoo true)}} + Production and member lists Demozoo{{linkSVG}}
    + {{- else if and (eq $bbs true) (eq $linkZoo true)}} + Staff, numbers, and affiliations Demozoo{{linkSVG}}
    {{- end}} {{- if $link16C}} ANSI and text artworks 16colors{{linkSVG}}