Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Feature/updating filings panel #794

Merged
merged 6 commits into from
Oct 8, 2015
Merged

Conversation

noahmanger
Copy link
Contributor

Adds missing info to filings panels:

  • Filer name
  • Receipt date
  • Amendment indicator

Also adds a more readable datetime helper. @emileighoutlaw what do you think about this format for dates in this situation: Jan 1, 2015? I think it makes sense to stick with 01-01-2015 format in the columns and in the filters, but if we're just displaying a date in a regular text area, I find the prettier version helpful.

Last, makes the pdf link a target="_blank" to make it consistent with the main url column in the table.

Resolves #789 and #778

screen shot 2015-10-01 at 2 27 11 pm

Noah Manger added 2 commits October 1, 2015 14:21
- Adds filer name and link to panel
- Adds amendment indicator to panel
- Adds pretty datetime handlebars helper
@noahmanger
Copy link
Contributor Author

This should be good to merge if anyone can review it.

@@ -24,8 +25,22 @@ function datetime(value) {
var parsed = moment(value, 'YYYY-MM-DDTHH:mm:ss');
return parsed.isValid() ? parsed.format('MM-DD-YYYY') : null;
}

function prettyDatetime(value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a copy and paste of the datetime helper, aside from the format string. How about modifying the existing function to take a format or pretty option:

{{{datetime this.date pretty=true}}}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@noahmanger
Copy link
Contributor Author

@jmcarp made those changes. Thanks for the suggestions.

@LindsayYoung
Copy link
Contributor

@noahmanger -- Do we want the button on the top to say "View original report"? I feel like we talked about that previously.

@jmcarp jmcarp merged commit 71760d7 into develop Oct 8, 2015
@jmcarp jmcarp removed the plz-review label Oct 8, 2015
@jmcarp jmcarp deleted the feature/updating-filings-panel branch October 15, 2015 00:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants