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

New Title System #548

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

Conversation

evantravers
Copy link

There's a lot of repetitive code in the views, this is a first stab at starting
to organize it.

I pulled out the .page-header class, moved it to the application layout. I am
using a content_for block to put content in there, though there is more room
for clean up there.

I also am using the en.yml i18n file for the titles, which I also
consistently upcased.

Relates to #547.

I'm headed towards simplifying the layout... and I think that the header
system is the first piece that could be DRY'd up.

To that end, I'm borrowing a great method for cleaning up the page
titles from the blog in references, and implementing it in one place to
show y'all what it could do.

References:
- https://coderwall.com/p/a1pj7w/rails-page-titles-with-the-right-amount-of-magic
Trying to DRY up the views
By moving the titles to a i18n file, we increase the ease of
translatability and renaming later if we really need it.
@rthbound rthbound requested review from TadBirmingham and removed request for TadBirmingham September 6, 2017 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants