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

DF-2204 - Creates time macro, breaks apart format macros #871

Merged
merged 1 commit into from
Aug 11, 2015

Conversation

anselmbradford
Copy link
Member

Creates time macro and converts datetime instances to use time macro. Also, breaks apart format macro into topical macros.

Additions

  • Adds time macro.

Changes

  • Converted time elements to use time template.
  • Broke apart format macros into topical macros.

Testing

  • /activity-log/, /events/, /events/summer-consumer-advisory-board-meeting-in-omaha-ne/, /blog/, /blog/forum-on-know-before-you-owe-eclosing-pilot/, /the-bureau/leadership-calendar/, /offices/payments-to-harmed-consumers/, /careers/, /careers/current-openings/, /careers/current-openings/1873/

Review

Screenshots

On beta:
screen shot 2015-08-11 at 10 37 40 am

This PR:
screen shot 2015-08-11 at 10 37 25 am


On beta:
screen shot 2015-08-11 at 10 39 53 am

This PR:
screen shot 2015-08-11 at 10 39 28 am


On beta:
screen shot 2015-08-11 at 10 40 59 am

This PR:
screen shot 2015-08-11 at 10 40 37 am


On beta:
screen shot 2015-08-11 at 10 41 59 am

This PR:
screen shot 2015-08-11 at 10 41 52 am


On beta:
screen shot 2015-08-11 at 10 42 43 am

This PR:
screen shot 2015-08-11 at 10 42 32 am


On beta:
screen shot 2015-08-11 at 10 43 35 am

This PR:
screen shot 2015-08-11 at 10 43 29 am


On beta:
screen shot 2015-08-11 at 10 44 50 am

This PR:
screen shot 2015-08-11 at 10 44 42 am


On beta:
screen shot 2015-08-11 at 10 45 34 am

This PR:
screen shot 2015-08-11 at 10 45 27 am


On beta:
screen shot 2015-08-11 at 10 46 19 am

This PR:
screen shot 2015-08-11 at 10 46 14 am


On beta:
screen shot 2015-08-11 at 10 47 04 am

This PR:
screen shot 2015-08-11 at 10 46 59 am


On beta:
[JOB POSTING NOT AVAILABLE ON BETA]

This PR:
screen shot 2015-08-11 at 10 47 39 am

Todos

  • The dates on /the-bureau/history/ are not fed into the macro. Should they be?
    screen shot 2015-08-11 at 10 44 19 am
  • Should the dates all be uppercase? @duelj

{% if show_only.timezone == true %}
{{ format_time(datetime, timezone) }}</span>
{% else %}
{{ format_time(datetime) }}</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't closing tag be outside of if statement?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in b10968c Also, the divider shouldn't have been enclosed in the time element.

@KimberlyMunoz
Copy link
Contributor

I'm going through to check how they render on all these and the attention to detail on all these <time>s is fantastic.

@duelj
Copy link

duelj commented Aug 11, 2015

The example shown look great. I would wait on the history example since we have a revised design for that page.

@KimberlyMunoz
Copy link
Contributor

👍

anselmbradford added a commit that referenced this pull request Aug 11, 2015
DF-2204 - Creates time macro, breaks apart format macros
@anselmbradford anselmbradford merged commit f8710f9 into flapjack Aug 11, 2015
@anselmbradford anselmbradford deleted the time-template branch August 11, 2015 19:34
@schaferjh
Copy link
Member

looks good!

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

5 participants