This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] [issue936] Remove unnecessary div#wannahelp if not needed

Asheesh Laroia bugs at openhatch.org
Sat Feb 8 05:09:56 UTC 2014


New submission from Asheesh Laroia <asheesh at asheesh.org>:

If you visit a project page, such as http://openhatch.org/projects/Debian , you 
will see a big happy "I want to help!" button.

If you log in, and then you click it, you will see that the button goes away, 
and a new button "De-list me" appears underneath.

You may also notice a bright blue outline where the button used to be.

If you right-click it, and inspect with the Chrome/Firebug web inspector, you 
will there is an empty <div> there, whose ID is 'wannahelp'. (Confusingly, this 
is a different div than the one below it, whose ID is 'wanna_help'.)

To fix it, you will have to reproduce the bug locally, which will require 
creating a project (by adding it to your personal profile), then visiting the 
project's page, and then clicking that button. After that, you'll find the 
template logic in:

mysite/project/templates/project/project.html

Look for the <div class='module' id='wannahelp'> section.

You should move the {% if ... %} and {% endif %} so that it covers the entire 
DIV, not just the inner <form>.b

If you use the Chrome/FireBug inspector

----------
messages: 4113
nosy: paulproteus
priority: bug
status: unread
title: Remove unnecessary div#wannahelp if not needed

__________________________________________
Roundup issue tracker <bugs at openhatch.org>
<https://openhatch.org/bugs/issue936>
__________________________________________


More information about the Devel mailing list