From c91c8cb09821e4891b0aac535dc705fe348b016b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABlle=20Morin?= <morin.gaelle@gmail.com>
Date: Fri, 17 May 2019 18:12:57 +0200
Subject: [PATCH] feature(job-offers): the link to contact the author is now
 functional

Closes #79
---
 src/page-job-offers.pug                      | 11 +++++++----
 src/styles/layout/job-offers/job-offers.scss |  2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/page-job-offers.pug b/src/page-job-offers.pug
index 51ad5267..4e32f447 100644
--- a/src/page-job-offers.pug
+++ b/src/page-job-offers.pug
@@ -4,13 +4,17 @@ div.job-offers__main
   include templates/template-groups.pug
   include templates/template-skills.pug
   include templates/template-joboffers-filter.pug
-
+  
+  sib-widget(name='hd-contact-author')
+    template
+      sib-link(next='member-chat', data-src="${value['@id']}") Send a message
+      
   div.job-offers__content
     h1 New offers
       span Here you can find and post offers
     sib-display#offers-list(
       data-src=`${sdn}/job-offers/`,
-      data-fields='user-thumb, creationDate, title, description, skills, send',
+      data-fields='user-thumb, creationDate, title, description, skills, author',
       
       set-user-thumb='author.account.picture, author.first_name, author.groups',
       widget-author.account.picture='hd-user-avatar',
@@ -20,8 +24,7 @@ div.job-offers__main
       widget-skills='skills-name',
       multiple-skills,
       
-      action-send='member-chat',
-      label-send='Send a private message',
+      widget-author='hd-contact-author',
       
       search-range-skills=`${sdn}/skills/`,
       search-fields='content, open, skills',
diff --git a/src/styles/layout/job-offers/job-offers.scss b/src/styles/layout/job-offers/job-offers.scss
index 066372ce..d061294e 100644
--- a/src/styles/layout/job-offers/job-offers.scss
+++ b/src/styles/layout/job-offers/job-offers.scss
@@ -131,7 +131,7 @@
           }
         }
 
-        [name='send'] {
+        hd-contact-author {
           color: $color-244-73-62;
           font-size: 1.3rem;
           float: right;
-- 
GitLab