Fixed tests
This commit is contained in:
parent
cff76bc696
commit
8eb6eb2bea
@ -191,22 +191,27 @@ component AnimeInformation(anime *arn.Anime)
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.anime-info-key Status:
|
||||
td.anime-info-value= anime.StatusHumanReadable()
|
||||
|
||||
if anime.Season() != ""
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.anime-info-key Season:
|
||||
td.anime-info-value= arn.Capitalize(anime.Season()) + " " + anime.StartDate[:4]
|
||||
|
||||
if anime.StartDate == anime.EndDate && anime.StartDate != "" && anime.EndDate != ""
|
||||
if anime.StartDate != ""
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.anime-info-key Airing date:
|
||||
td.anime-info-value= anime.StartDate
|
||||
td.anime-info-value= anime.StartDateTime().Format("Jan _2, 2006")
|
||||
else
|
||||
if anime.StartDate != ""
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.anime-info-key Start date:
|
||||
td.anime-info-value= anime.StartDate
|
||||
td.anime-info-key Start:
|
||||
td.anime-info-value= anime.StartDateTime().Format("Jan _2, 2006")
|
||||
|
||||
if anime.EndDate != ""
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.anime-info-key End date:
|
||||
td.anime-info-value= anime.EndDate
|
||||
td.anime-info-key End:
|
||||
td.anime-info-value= anime.EndDateTime().Format("Jan _2, 2006")
|
||||
|
||||
if anime.Source != "" && arn.AnimeSourceHumanReadable[anime.Source] != ""
|
||||
tr.mountable(data-mountable-type="info")
|
||||
|
@ -203,8 +203,8 @@ var routeTests = map[string][]string{
|
||||
"/compare/animelist/Akyoto/Scott",
|
||||
},
|
||||
|
||||
"/explore/anime/:year/:status/:type": []string{
|
||||
"/explore/anime/2011/finished/tv",
|
||||
"/explore/anime/:year/:season/:status/:type": []string{
|
||||
"/explore/anime/2011/any/finished/tv",
|
||||
},
|
||||
|
||||
// Redirects
|
||||
@ -374,6 +374,10 @@ var routeTests = map[string][]string{
|
||||
"/user/:nick/edit": nil,
|
||||
"/user/:nick/log": nil,
|
||||
"/user/:nick/log/from/:index": nil,
|
||||
"/editor/soundtracks/file": nil,
|
||||
"/editor/soundtracks/links": nil,
|
||||
"/editor/soundtracks/lyrics": nil,
|
||||
"/editor/soundtracks/tags": nil,
|
||||
"/api/test/notification": nil,
|
||||
"/api/paypal/payment/create": nil,
|
||||
"/api/emailtouser/:id": nil,
|
||||
|
Loading…
Reference in New Issue
Block a user