summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authortarungarg546 <tarungarg546@gmail.com>2016-06-29 23:48:33 +0530
committertarungarg546 <tarungarg546@gmail.com>2016-06-29 23:48:33 +0530
commit3e5db1a1be476c0e987b608e4f0d3240774df2fc (patch)
tree792b7f87505f9471933a35e11a5864b8667f5693 /assets
parentMerge pull request #3 from umanghome/patch-1 (diff)
downloadgithunt-3e5db1a1be476c0e987b608e4f0d3240774df2fc.tar.gz
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
Diffstat (limited to 'assets')
-rw-r--r--assets/css/main.css1
-rw-r--r--assets/js/main.js4
2 files changed, 4 insertions, 1 deletions
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 = $('<div>').text(repository.full_name).html();
var repFullDesc = $('<div>').text(repository.description).html();
+ if(repFullDesc === '') {
+ repFullDesc = '<i>No description or website provided</i>';
+ }
+
html += '<div class="content-item">' +
'<div class="header"><a href="' + repository.html_url + '">' + repFullName + '</a></div>' +
'<p class="tagline">' + repFullDesc + '</p>' +