add artists/tracks pages; more components; css cleanup
This commit is contained in:
parent
065a34a744
commit
b0dd87cad3
37 changed files with 498 additions and 354 deletions
|
|
@ -39,7 +39,7 @@ const (
|
|||
// GETTERS
|
||||
|
||||
func (release Release) GetDescriptionHTML() template.HTML {
|
||||
return template.HTML(strings.Replace(release.Description, "\n", "<br>", -1))
|
||||
return template.HTML(strings.ReplaceAll(release.Description, "\n", "<br>"))
|
||||
}
|
||||
|
||||
func (release Release) TextReleaseDate() string {
|
||||
|
|
|
|||
|
|
@ -13,16 +13,16 @@ type (
|
|||
Lyrics string `json:"lyrics" db:"lyrics"`
|
||||
PreviewURL string `json:"previewURL" db:"preview_url"`
|
||||
|
||||
Number int
|
||||
Number int `json:"-"`
|
||||
}
|
||||
)
|
||||
|
||||
func (track Track) GetDescriptionHTML() template.HTML {
|
||||
return template.HTML(strings.Replace(track.Description, "\n", "<br>", -1))
|
||||
return template.HTML(strings.ReplaceAll(track.Description, "\n", "<br>"))
|
||||
}
|
||||
|
||||
func (track Track) GetLyricsHTML() template.HTML {
|
||||
return template.HTML(strings.Replace(track.Lyrics, "\n", "<br>", -1))
|
||||
return template.HTML(strings.ReplaceAll(track.Lyrics, "\n", "<br>"))
|
||||
}
|
||||
|
||||
// this function is stupid and i hate that i need it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue