Add issue link to dropdown

This commit is contained in:
Kevin Sawicki
2013-05-21 09:06:56 -07:00
parent 009b50557c
commit 2308533235

View File

@@ -50,11 +50,16 @@ class PackageConfigView extends View
unless homepage
repoUrl = (@pack.repository?.url ? '').replace(/.git$/, '')
homepage = repoUrl if require('url').parse(repoUrl).host is 'github.com'
if homepage
@dropdown.append $$ ->
@li =>
@a "Visit Homepage", href: homepage
@a "Visit homepage", href: homepage
if issues = @pack.bugs?.url
@dropdown.append $$ ->
@li =>
@a "Report issue", href: issues
@dropdown.on 'click', => @dropdown.hide()
@updateInstallState()