33 lines
898 B
Plaintext
Raw Normal View History

component Characters(characters []*arn.Character, nextIndex int, tag string, user *arn.User)
h1.page-title Characters
CharactersTabs(tag)
.corner-buttons
if user != nil
if user.DraftIndex().CharacterID == ""
button.action(data-action="newObject", data-trigger="click", data-type="character")
Icon("plus")
2018-04-23 09:20:41 +00:00
span Add character
else
a.button(href="/character/" + user.DraftIndex().CharacterID + "/edit")
Icon("pencil")
span Edit draft
2018-04-23 10:18:53 +00:00
#load-more-target.characters-page
2018-04-22 15:43:20 +00:00
CharactersScrollable(characters, user)
2018-04-22 15:43:20 +00:00
if nextIndex != -1
.buttons
LoadMore(nextIndex)
component CharactersScrollable(characters []*arn.Character, user *arn.User)
each character in characters
2018-04-22 16:14:44 +00:00
.mountable
Character(character, user)
component CharactersTabs(tag string)
2018-04-22 15:43:20 +00:00
.tab-groups
.tabs
Tab("Latest", "child", "/characters")
Tab("Best", "heart", "/characters/best")