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
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward