From caf03b52c0554b403138537cdfda5e5e3fad27c6 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 13 Nov 2016 20:09:59 +0100 Subject: 10/10 anilist button diff --git a/Makefile b/Makefile index 754b1e4..873886a 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ IMPORTER_FILES = $(shell find tools/importer/ -type f -name '*.go') CSS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/css/ -type f -name '*.css')) LESS_FILES = $(patsubst assets_src/%.less, assets/%.css, $(shell find assets_src/css/ -type f -name '*.less')) JS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/js/ -maxdepth 1 -type f -name '*.js')) +IMG_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/img/ -maxdepth 1 -type f)) DEPFILES = $(patsubst assets/%, assets_src/%, $(JS_FILES:.js=.d)) BROWSERIFY := ./node_modules/browserify/bin/cmd.js @@ -36,7 +37,11 @@ package.json: package.json.tpl config.mk export VERSION=$(VERSION) &&\ $(BINARY_PATH)/template.awk < $< | sh > $@ -assets: $(CSS_FILES) $(LESS_FILES) $(JS_FILES) +assets: $(CSS_FILES) $(LESS_FILES) $(JS_FILES) $(IMG_FILES) + +assets/img/%: assets_src/img/% + @mkdir -p $(@D) + cp $< $@ assets/css/%.css: assets_src/css/%.css @mkdir -p $(@D) diff --git a/assets_src/img/Anilist.png b/assets_src/img/Anilist.png new file mode 100644 index 0000000..6529ad6 Binary files /dev/null and b/assets_src/img/Anilist.png differ diff --git a/views/pages/user.html b/views/pages/user.html index 5048502..c81b295 100644 --- a/views/pages/user.html +++ b/views/pages/user.html @@ -5,6 +5,7 @@ {{ template "materialize" }} {{ .DisplayUser.Name }} - grilist + {{ template "navbar" . }} @@ -19,19 +20,17 @@ {{ if (and (or $isCurrentUser .DisplayUser.HasExternalServices) .DisplayUser.ExternalServices) }}

Externe Dienste

-
+
{{ $model := . }} {{ range .DisplayUser.ExternalServices }} {{ if (or .IsEnabled $isCurrentUser) }} - - - {{ if not .IsEnabled }} - Hinzufügen! - {{ else }} - {{ .UserName }} - {{ end }} - - {{ .Name }} + + + {{ if not .IsEnabled }} + Hinzufügen! + {{ else }} + {{ .UserName }} + {{ end }} {{ end }} {{ end }} -- cgit v0.10.1