diff options
| author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-07-27 21:59:53 +0000 |
|---|---|---|
| committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-07-27 21:59:53 +0000 |
| commit | 15023de93ebb347cbcb2d2ec8c6666502f5bd335 (patch) | |
| tree | ece23ddab0995c5a865a31b33c90b6659c8fcc96 | |
| parent | f1e7565c7a93b213f09216aaa2c50e10df44d187 (diff) | |
| download | luarocks-15023de93ebb347cbcb2d2ec8c6666502f5bd335.tar.gz luarocks-15023de93ebb347cbcb2d2ec8c6666502f5bd335.tar.bz2 luarocks-15023de93ebb347cbcb2d2ec8c6666502f5bd335.zip | |
don't display project homepage link when rockspec doesn't have one.
git-svn-id: http://luarocks.org/svn/luarocks/trunk@42 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
| -rw-r--r-- | src/luarocks/manif.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/manif.lua b/src/luarocks/manif.lua index 5f4e60a9..818f4c57 100644 --- a/src/luarocks/manif.lua +++ b/src/luarocks/manif.lua | |||
| @@ -370,7 +370,7 @@ local index_package_start = [[ | |||
| 370 | <td class="package"> | 370 | <td class="package"> |
| 371 | <p><a name="$anchor"></a><b>$package</b> - $summary<br/> | 371 | <p><a name="$anchor"></a><b>$package</b> - $summary<br/> |
| 372 | </p><blockquote><p>$detailed<br/> | 372 | </p><blockquote><p>$detailed<br/> |
| 373 | <font size="-1"><a href="$original">latest sources</a> | <a href="$homepage">project homepage</a> | License: $license</font></p> | 373 | <font size="-1"><a href="$original">latest sources</a> $homepage | License: $license</font></p> |
| 374 | </blockquote></a></td> | 374 | </blockquote></a></td> |
| 375 | <td class="version"> | 375 | <td class="version"> |
| 376 | ]] | 376 | ]] |
| @@ -428,7 +428,7 @@ function make_index(repo) | |||
| 428 | summary = rockspec.description.summary or "", | 428 | summary = rockspec.description.summary or "", |
| 429 | detailed = rockspec.description.detailed or "", | 429 | detailed = rockspec.description.detailed or "", |
| 430 | license = rockspec.description.license or "N/A", | 430 | license = rockspec.description.license or "N/A", |
| 431 | homepage = rockspec.description.homepage or "" | 431 | homepage = rockspec.description.homepage and ("| <a href="..rockspec.description.homepage..">project homepage</a>") or "" |
| 432 | } | 432 | } |
| 433 | vars.detailed = vars.detailed:gsub("\n\n", "</p><p>"):gsub("%s+", " ") | 433 | vars.detailed = vars.detailed:gsub("\n\n", "</p><p>"):gsub("%s+", " ") |
| 434 | output = output:gsub("$(%w+)", vars) | 434 | output = output:gsub("$(%w+)", vars) |
