Friday July 29, 2005
Fixing your java.net project's homepage
If you're hosting your open source project at java.net, you might be annoyed by the fact that you can't disable the forums or issue tracker. The forums pretty much suck, mainly because there's no "remember me" on the site and it's a pain to click 3 times just to answer someone's question. They also don't have the ability to quote a previous message. In addition to the less-than-adequate forums, the issue tracker doesn't hold a candle to JIRA.
For the longest time, I've been wanting to remove both the "Discussion forums" and "Project issues" links from the AppFuse homepage. I asked the java.net folks, and they didn't have a solution. Finally, I thought of one on my own.
In case you didn't know - you can create a project_tools.html file in your project's www directory - which allows you to append items to the menu on the left site. Add a little JavaScript action and you can manipulate or remove items as well. Here's what I'm using to remove the link for the Discussion forums, as well as change the Project issues to point to JIRA. If you find any issues with this script, please let me know.
<script type="text/javascript">
function replaceLinks() {
try {
var tools = document.getElementById("projecttools");
var links = tools.getElementsByTagName("a");
for (i=0; i < links.length; i++) {
if (links[i].getAttribute("href").indexOf("ProjectIssues") > -1) {
links[i].setAttribute("href", "http://issues.appfuse.org/browse/APF");
links[i].innerHTML="JIRA Issue Tracker";
}
if (links[i].getAttribute("href").indexOf("ProjectForumView") > -1) {
links[i].parentNode.style.display = "none";
}
}
} catch (e) {}
}
window.onload=replaceLinks;
</script>
Related: AppFuse and Equinox get some FishEye lovin'. Posted in Java at Jul 29 2005, 02:39:36 PM MDT Add a Comment
Search This Site
Recent Entries
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
- Core Animation with Bill Dudney