diff --git a/.idea/runConfigurations/go_build_InfantrySkillCalculator.xml b/.idea/runConfigurations/go_build_InfantrySkillCalculator.xml index e6e046b..87e4f97 100644 --- a/.idea/runConfigurations/go_build_InfantrySkillCalculator.xml +++ b/.idea/runConfigurations/go_build_InfantrySkillCalculator.xml @@ -5,7 +5,7 @@ - + diff --git a/.idea/webResources.xml b/.idea/webResources.xml new file mode 100644 index 0000000..9835b78 --- /dev/null +++ b/.idea/webResources.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/cmd/auth.go b/auth.go similarity index 100% rename from cmd/auth.go rename to auth.go diff --git a/cmd/main.go b/main.go similarity index 100% rename from cmd/main.go rename to main.go diff --git a/cmd/pages.go b/pages.go similarity index 100% rename from cmd/pages.go rename to pages.go diff --git a/templates/index.html b/templates/index.html index c1f6edb..3b74a15 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,21 +31,16 @@ {{ template "bottom_controls" . }} - -{{ template "delete_clan" . }} - -{{ template "add_clan" . }} - -{{ template "edit_clan" . }} +{{ if not (eq .UserRole "READER")}} + {{ template "delete_clan" . }} + {{ template "add_clan" . }} + {{ template "edit_clan" . }} - -{{ template "add_player" . }} - -{{ template "delete_player" . }} - -{{ template "edit_player" . }} + {{ template "add_player" . }} + {{ template "delete_player" . }} + {{ template "edit_player" . }} +{{ end}} - {{ template "settings" . }}