From c17cd63a3c82d754f04313a3f4803a7790aa922b Mon Sep 17 00:00:00 2001
From: aldrichvalentino <aldrich.vh97@gmail.com>
Date: Fri, 6 Oct 2017 11:28:14 +0700
Subject: [PATCH] added star image for rating

---
 css/dashboard.css | 4 +++-
 js/profile.js     | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/css/dashboard.css b/css/dashboard.css
index f3c1d856..77c198d2 100644
--- a/css/dashboard.css
+++ b/css/dashboard.css
@@ -119,7 +119,9 @@
     font-size: 1.3rem;
     margin-bottom: 5px;
 }
-
+#driver img {
+    width: 20px;
+}
 #email, #phone {
     display: inline-block;
 }
diff --git a/js/profile.js b/js/profile.js
index d676fbd6..bfbd93c7 100644
--- a/js/profile.js
+++ b/js/profile.js
@@ -17,7 +17,7 @@ function getUserProfile(){
             if(isDriver == 1){
                 rating = result.getElementsByTagName('rating')[0].childNodes[0].nodeValue;
                 votes = result.getElementsByTagName('votes')[0].childNodes[0].nodeValue;
-                document.getElementById('driver').innerHTML = 'Driver | ' + Math.round(rating) + ' ('+ votes +' votes)';
+                document.getElementById('driver').innerHTML = 'Driver |<img src="../img/rating.png" />' + Math.round(rating) + ' ('+ votes +' votes)';
             } else {
                 document.getElementById('driver').innerHTML = 'Non-driver';
             }
-- 
GitLab