diff --git a/backend/static/css/legends.css b/backend/static/css/legends.css index 2290bd3..f46f33f 100644 --- a/backend/static/css/legends.css +++ b/backend/static/css/legends.css @@ -8,9 +8,24 @@ a { outline: 0; } +.page-header { + display: flex; + width: 100%; +} + +.page-tabs { + flex: 100%; + margin-right: 16px; +} + +.page-map { + flex: 300px; +} + .object-map { float: right !important; - margin-top: -7px; + margin-left: 16px; + margin-bottom: 16px; } .popover { diff --git a/backend/templates/entity.html b/backend/templates/entity.html index 3eb90ed..f05799d 100644 --- a/backend/templates/entity.html +++ b/backend/templates/entity.html @@ -3,162 +3,170 @@ {{define "title"}}{{ title .Name }}{{end}} {{define "content"}} -
- {{ .Race }}{{ if .Necromancer}} necromancer{{end}} {{ .Type }} - {{- if .Profession }} - of {{ .Profession }}s - {{- end }} - {{- if ne .Parent -1 }} - of {{ entity .Parent }} - {{- end }} - {{- if and (eq .Type "religion") (gt (len .WorshipId) 0) }} - centered around the worship of {{ hfList .WorshipId }} - {{- end }} - {{- if eq .Type "militaryunit" }} - {{- if gt (len .WorshipId) 0 }} - devoted to the worship of {{ hfList .WorshipId }} - {{- end }} - {{- if gt (len .WorshipId) 0 }} - , dedicated to the mastery of {{ andList .Weapons }} - {{- end }} - {{- end }} -
++ {{ .Race }}{{ if .Necromancer}} necromancer{{end}} {{ .Type }} + {{- if .Profession }} + of {{ .Profession }}s + {{- end }} + {{- if ne .Parent -1 }} + of {{ entity .Parent }} + {{- end }} + {{- if and (eq .Type "religion") (gt (len .WorshipId) 0) }} + centered around the worship of {{ hfList .WorshipId }} + {{- end }} + {{- if eq .Type "militaryunit" }} + {{- if gt (len .WorshipId) 0 }} + devoted to the worship of {{ hfList .WorshipId }} + {{- end }} + {{- if gt (len .WorshipId) 0 }} + , dedicated to the mastery of {{ andList .Weapons }} + {{- end }} + {{- end }} +
- -landmass
-landmass
+{{ json . }}
{{- end }} \ No newline at end of file diff --git a/backend/templates/mountain.html b/backend/templates/mountain.html index add165d..cf66119 100644 --- a/backend/templates/mountain.html +++ b/backend/templates/mountain.html @@ -3,15 +3,15 @@ {{define "title"}}{{ title .Name }}{{end}} {{define "content"}} -{{ if .IsVolcano }}volcano{{else}}mountain{{end}}
-{{ if .IsVolcano }}volcano{{else}}mountain{{end}}
+{{ .Type_ }}
+{{ .Type_ }}
-