-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
changed date published to time ago in words, with full date as mouseover (#145) #164
changed date published to time ago in words, with full date as mouseover (#145) #164
Conversation
One extra requirement - could you put the original date text into a mouseover? Just the generic HTML one will be fine. Oh, ignore this, I just realised you did already. Thanks! |
<span class='name' title='#{published_date}'>Date published:</span> | ||
<span class='value' title='#{published_date}'> | ||
#{PactBroker::DateHelper.distance_of_time_in_words(@pact.created_at.to_time, DateTime.now)} ago | ||
</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you refactor PactBroker::DateHelper.distance_of_time_in_words(@pact.created_at.to_time, DateTime.now)
into its own method like the other lines please.
Thanks @alexs333! |
* feat: adding support for share success and failure actions * Merging latest 'main' changes in to Action Object Extensions branch (pact-foundation#170) * chore: suggest multilevel parameters (pact-foundation#155) * chore: suggest multilevel parameters * Update versions/1.0.0.md Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Update examples/1.0.0/ExtendedParametersExample.workflow.yaml Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Update versions/1.0.0.md Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> --------- Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Remove references to WHATWG to avoid confusion (pact-foundation#145) * Remove references to WHATWG to avoid confusion * Correct relative reference wording * Section 4.2 not 4.1! * Simplify URI wording * Adjust Step Parameters desc to cater for Workflow parameters addition (pact-foundation#169) * feat: add `dependsOn` capability for workflow level (pact-foundation#164) * feat: add `dependsOn` capability for workflow level * chore: typo fix * chore: grammer fix * feat: Add Request Body Object (pact-foundation#162) * feat: Add Request Body Object * chore: fix typos in examples * Clarity on referencing Components Parameters (pact-foundation#149) * Clarity on referencing Components Parameters * Remove Reference Object to avoid clash with JSON Schema keyword. Replace with expression based referencing * chore: keep fixed field link names consistent * chore: Name component parameters as type Reusable Parameter Object * chore: adjust Workflow level parameters to use Reusable Parameter Objects --------- Co-authored-by: Dmytro Anansky <dmytro@redocly.com> Co-authored-by: Nick Denny <nick@apimetrics.com> * Add Reusable Object and referencing ability * chore: fix yaml example indentation * chore: fix JSON examples * chore: fix typo in `workflowStepActions` --------- Co-authored-by: Dmytro Anansky <dmytro@redocly.com> Co-authored-by: Nick Denny <nick@apimetrics.com>
No description provided.