From ef256c70f40d030cf67f153a4b6f9cf5f6dbd430 Mon Sep 17 00:00:00 2001
From: Calum Mackervoy <c.mackervoy@gmail.com>
Date: Wed, 4 Dec 2019 16:11:05 +0100
Subject: [PATCH] external context instead of _ in name

---
 src/context.jsonld          | 4 +++-
 src/header.pug              | 2 +-
 src/styles/base/header.scss | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/context.jsonld b/src/context.jsonld
index 6ffc8809..46a6a866 100644
--- a/src/context.jsonld
+++ b/src/context.jsonld
@@ -4,5 +4,7 @@
         "object": "http://happy-dev.fr/owl/#object",
         "author": "http://happy-dev.fr/owl/#author",
         "account": "http://happy-dev.fr/owl/#account",
-        "jabberID": "foaf:jabberID"
+        "jabberID": "foaf:jabberID",
+        "firstName": "http://happy-dev.fr/owl/#first_name",
+        "lastName": "http://happy-dev.fr/owl/#last_name"
     }
diff --git a/src/header.pug b/src/header.pug
index 93477509..9edcdb0e 100644
--- a/src/header.pug
+++ b/src/header.pug
@@ -17,7 +17,7 @@ include templates/hd-user-avatar.pug
 details#user-controls
   summary(tabindex='0' role='button')
     sib-display#user-controls__profile(
-      fields='first_name, account.picture'
+      fields='firstName, account.picture'
       widget-account.picture='hd-user-avatar'
       bind-user
     )
diff --git a/src/styles/base/header.scss b/src/styles/base/header.scss
index 894ae901..51cc2afd 100644
--- a/src/styles/base/header.scss
+++ b/src/styles/base/header.scss
@@ -157,7 +157,7 @@
           width: 45%;
         }
   
-        sib-display-value[name='first_name'] {
+        sib-display-value[name='firstName'] {
           @include icon('arrow-down');
           align-items: center;
           display: flex;
-- 
GitLab