From 3e5db1a1be476c0e987b608e4f0d3240774df2fc Mon Sep 17 00:00:00 2001 From: tarungarg546 Date: Wed, 29 Jun 2016 23:48:33 +0530 Subject: github style description if no description provided With this commit We will enable github style description if user has not provided any description for his repo Previously null value was showing in plugin no `No description or website provided` will be shown --- assets/css/main.css | 1 - assets/js/main.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/css/main.css b/assets/css/main.css index a726375..77fa37d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -141,7 +141,6 @@ div.container { font-weight: bold; font-size: 17px; margin-bottom: 10px; - height: 70%; overflow: hidden; } diff --git a/assets/js/main.js b/assets/js/main.js index f84b64e..0d1019f 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -44,6 +44,10 @@ function HubTab() { var repFullName = $('
').text(repository.full_name).html(); var repFullDesc = $('
').text(repository.description).html(); + if(repFullDesc === '') { + repFullDesc = 'No description or website provided'; + } + html += '
' + '' + '

' + repFullDesc + '

' + -- cgit v1.3