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"}} -

{{ title .Name }}

-

- {{ .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 }} -

+ +
Events
{{ template "events.html" events . }} diff --git a/backend/templates/landmass.html b/backend/templates/landmass.html index 907c58c..2606e8c 100644 --- a/backend/templates/landmass.html +++ b/backend/templates/landmass.html @@ -3,9 +3,6 @@ {{define "title"}}{{ title .Name }}{{end}} {{define "content"}} -

{{ title .Name }}

-

landmass

-
@@ -13,5 +10,8 @@ {{ addLandmass .Id }} +

{{ title .Name }}

+

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"}} -

{{ title .Name }}

-

{{ if .IsVolcano }}volcano{{else}}mountain{{end}}

-
{{initMap}} {{ addMountain .Id false }} +

{{ title .Name }}

+

{{ if .IsVolcano }}volcano{{else}}mountain{{end}}

+
Height
{{ .Height }}
diff --git a/backend/templates/site.html b/backend/templates/site.html index c93357a..e3e74c1 100644 --- a/backend/templates/site.html +++ b/backend/templates/site.html @@ -3,64 +3,72 @@ {{define "title"}}{{ title .Name }}{{end}} {{define "content"}} -

{{ title .Name }}

-

{{ .Type_ }}

+