Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accessible hierarchies #1

Merged
8 commits merged into from
Mar 2, 2011
Merged

accessible hierarchies #1

8 commits merged into from
Mar 2, 2011

Conversation

FND
Copy link
Member

@FND FND commented Mar 2, 2011

improved accessibility by ensuring hierarchies' root level is rendered server-side

a thorough review would be appreciated to ensure I'm not being naive/ignorant or breaking conventions

FND and others added 8 commits March 1, 2011 11:40
burying hierarchical_concepts_path call in an attribute value made it
very hard to read, so caching the value in a variable instead

not entirely sure this is the best solution though
s/furter/further/g
instead of loading and rendering the entire tree via JavaScript, we
render root-level items on the server side - due to related concepts
being linked, this allows user agents to traverse the tree without
client-side processing

code largely adapted from hierarchical index template (minus broader
relations); eventually that template should also use this partial (DRY)

behavior seems the same as before, except that order is not necessarily
the same; unsure why this is the case or whether it is significant

plus minor whitespace fixes
per definition, this view only renders root-level items - so those
should not have any broader relations
passing a list of concepts into the helper should enable us to reuse
this partial for the hierarchical index view
reduced line lengths, fixed whitespace and ERb tags
this eliminates remaining redundancies, taking advantage of previously
improved encapsulation
This pull request was closed.
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.

None yet

2 participants