diff options
author | anekos | 2009-01-18 09:09:56 +0000 |
---|---|---|
committer | anekos | 2009-01-18 09:09:56 +0000 |
commit | 4cffe0e206019beecc141e230e64dfe3d47bf3bc (patch) | |
tree | f5cb696116945aa4aba39c6480df2e52d06cfb6f /PMWriter.js | |
parent | 426e875cebd97310aad99f675641e6ced797e143 (diff) | |
download | vimperator-plugins-4cffe0e206019beecc141e230e64dfe3d47bf3bc.tar.bz2 |
複数 author
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28597 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'PMWriter.js')
-rw-r--r-- | PMWriter.js | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/PMWriter.js b/PMWriter.js index 89a66d0..311e776 100644 --- a/PMWriter.js +++ b/PMWriter.js @@ -16,19 +16,6 @@ if (!(pluginDirPath && outputDir)) return; - let AUTHORS = { - Trapezoid: 'http://unsigned.g.hatena.ne.jp/Trapezoid/', - anekos: 'http://d.hatena.ne.jp/nokturnalmortum/', - "halt feits": 'http://project-p.jp/halt/', - hogelog: 'http://d.hatena.ne.jp/hogelog/', - janus_wel: 'http://d.hatena.ne.jp/janus_wel/', - mattn: 'http://mattn.kaoriya.net', - pekepeke: 'http://d.hatena.ne.jp/pekepekesamurai/', - pekepekesamurai: 'http://d.hatena.ne.jp/pekepekesamurai/', - suVene: 'http://d.zeromemory.info/', - teramako: 'http://d.hatena.ne.jp/teramako/', - }; - if (!liberator.plugins.pmwriter) liberator.plugins.pmwriter = {}; @@ -136,6 +123,16 @@ // index.html { + let authors; + for each (let a in pluginInfo.author) { + let hp = a.@homepage.toString(); + let xml = hp ? <a href={hp}>{a.toString()}</a> + : <span>{a.toString()}</span> + if (authors) + authors += <span>, </span> + xml; + else + authors = xml; + } indexHtml += <tr class="plugin"> <td class="name"> <a href={CodeRepos + pluginFilename} class="coderepos" target="_blank">{"\u2606"}</a> @@ -145,7 +142,7 @@ {plugin.info.description} </td> <td class="author"> - <a href={AUTHORS[pluginInfo.author]}>{pluginInfo.author.toString()}</a> + {authors} </td> </tr> } @@ -180,7 +177,7 @@ ]]></script> </head> <body> - <h1>{title}</h1> + <h1>{DOCUMENT_TITLE}</h1> <table> <tr class="header"> <th class="name">Name</th> @@ -189,6 +186,7 @@ </tr> {indexHtml} </table> + <div class="last-updated">Last updated {new Date().toLocaleFormat('%Y/%m/%d %H:%M:%S')}</div> </body> </html>; |