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

Reformatted investigator headers and graph pages #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

adorack
Copy link

@adorack adorack commented Jun 20, 2012

Hello,

These commits:

  • Change the investigator header navigation to the way we showed you. I put the style code in "publications.css"
  • Display a message if a graph is empty (which we've found useful for certain MeSH similarities graphs especially).
  • Change some of the link and header text on the graph pages to match up better.
  • Moves one sparkline chart and deletes a different one, since they didn't seem to fit with the new headers.

Let me know if there are any issues.

Rocky Fischer added 4 commits June 18, 2012 13:20
…tial.

- Made minor terminology changes to better match the headers and the links.
- Added a header where necessary.
- Moved the code for the graphs navigation bar to a partial.
- Collapsed the `investigator_bio_heading` functions into a partial.
- Made extensive use of `current_page?` to determine how to show the current page's link.

`current_page?` should be helpful later on.  Considerations:

Cons: It's vaguely magical and possibly a bit slower.  I don't like the magic.
Pros: Its output is cached anyway, according to profiling it contributes less than 4% of the template rendering time, and it lets you generate URLs however you like.
- Took out the bar chart for Org Collaboration Network.  It didn't really seem consistent with any of the other ones...
- A somewhat questionable change to move the sparklines.  I personally think it looks more consistent next to the publications.
Added code to publications.css -- it should be available site-wide.
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.

1 participant