Skip to content

Commit

Permalink
New none group.
Browse files Browse the repository at this point in the history
Demozoo BBS links.
  • Loading branch information
bengarrett committed Dec 17, 2024
1 parent 67be1ae commit 54a25a5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions handler/app/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,9 @@ func Releasers(c echo.Context, db *sql.DB, logger *zap.SugaredLogger, uri string
htm += fmt.Sprintf(`<li class="list-group-item">%s<br>%s</li>`, 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 {
Expand All @@ -1291,6 +1294,9 @@ func Releasers(c echo.Context, db *sql.DB, logger *zap.SugaredLogger, uri string
`<br><small class="fw-lighter">In the scene's early years,` +
` releasing documents or software cracks under a personal alias or a` +
` real-name attribution was commonplace.</small>`
case "none":
data["lead"] = "None, are files which were never intended for the scene." +
`<br><small class="fw-lighter">These can include commercial or free software applications or online texts for public forums.</small>`
default:
// placeholder to handle other releaser types
}
Expand Down Expand Up @@ -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"] = ""
Expand Down
1 change: 1 addition & 0 deletions handler/demozoo/demozoo.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,4 +682,5 @@ var groups = Groups{
"visions-of-reality": 86454,
"vortex-software": 146440,
"xerox": 59161,
"chicago-bbs": 12584,
}
7 changes: 5 additions & 2 deletions view/app/artifacts.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""}}
Expand All @@ -29,8 +30,10 @@
{{- end}}
{{- if or $linkZoo $link16C $linkWeb}}
<p class="text-start text-sm-center text-md-end lead">
{{- if $linkZoo}}
<small><small>Production and member lists</small> <a class="link-offset-2 icon-link icon-link-hover" href="https://demozoo.org/groups/{{$zoo}}/"><strong>Demozoo</strong>{{linkSVG}}</a></small><br>
{{- if and (eq $bbs false) (eq $linkZoo true)}}
<small><small>Production and member lists</small> <a class="link-offset-2 icon-link icon-link-hover" href="https://demozoo.org/groups{/{{$zoo}}/"><strong>Demozoo</strong>{{linkSVG}}</a></small><br>
{{- else if and (eq $bbs true) (eq $linkZoo true)}}
<small><small>Staff, numbers, and affiliations</small> <a class="link-offset-2 icon-link icon-link-hover" href="https://demozoo.org/bbs/{{$zoo}}/"><strong>Demozoo</strong>{{linkSVG}}</a></small><br>
{{- end}}
{{- if $link16C}}
<small><small>ANSI and text artworks</small> <a class="link-offset-2 icon-link icon-link-hover" href="https://16colo.rs/{{$sixteen}}"><strong>16colors</strong>{{linkSVG}}</a></small><br>
Expand Down

0 comments on commit 54a25a5

Please sign in to comment.