Is it possible to remove or hide the Claim request link from a node once it has been successfully claimed?

I've been able to generate an attached View where I can print the claim status on nodes that have been claim approved, but can't seem to figure out how to hide the claim link itself.

Any advice is much appreciated!

Comments

vinay15’s picture

Hi michaelaj,

Can you explain your issue in detail?
As per my understanding the functionality is when a user claims an already claim approved node, the user is notified with a message saying "Someone else has claimed this node. "

michaelaj’s picture

Sure, here's my scenario:

When a node is available for ownership claim, all users (anonymous and authenticated roles) will see the "Claim this node" link. Once a node has been claimed, the link is still visible, and I would like to hide it from view. It is true that a user submitting a claim to an already-claimed node will receive the "Someone else has claimed this node" message, but I'd like to remove the opportunity altogether if a node has already been assigned ownership.

One case where I see this sort of working is when a user has claimed a node The link is hidden from the node's owner, but visible to all other visitors.

Could this be accomplished via CSS? Perhaps claimed nodes could write a "claimed" class to the tag, which could then be used as a styling hook to hide the link at the theme layer. Unfortunately, I'm not sure how to override the module to print the class to the HTML layer.

I hope that explains my question better. Does that help?

Thank you!

vinay15’s picture

Hi michaelaj,

Try applying this patch.
Hope, this might help you.

Thanks!

vinay15’s picture

Status: Active » Needs review

  • swarad07 committed 33e527c on 7.x-1.x
    Issue #2530322 by Vinay15: Hide Claim Link Once Claim Status of Node is...
swarad07’s picture

Thanks for patch. The issue is fixed in latest dev, soon will be pushed to the next stable release.

swarad07’s picture

Status: Needs review » Closed (fixed)
pyxio’s picture

hello, i tried both versions and i still see the claim link on already claimed nodes.