Skip to content

Add visible anchor links to project list page#508

Open
tapaswenipathak wants to merge 3 commits intooutreachy:masterfrom
tapaswenipathak:issue-504
Open

Add visible anchor links to project list page#508
tapaswenipathak wants to merge 3 commits intooutreachy:masterfrom
tapaswenipathak:issue-504

Conversation

@tapaswenipathak
Copy link

@tapaswenipathak tapaswenipathak commented Nov 8, 2021

Fixes #504.

Screenshot 2021-11-08 at 9 06 33 PM

{% for participation, projects in ontime_projects %}
{% with community=participation.community funded_interns=participation.interns_funded %}
<h4 id='{{ community.slug }}'>{{ community.name }} - {{ funded_interns }} intern{{ funded_interns|pluralize }}</h4>
<h4 id='{{ community.slug }}'><a href="#{{ community.name|lower }}">{{ community.name }}</a> - {{ funded_interns }} intern{{ funded_interns|pluralize }}</h4>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tapaswenipathak! Good idea using a template filter here, but the name field may not work if the community name has more than one word. I think using the slug as in the id should work perfectly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @krysal! added. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add visible anchor links to project list page

2 participants