Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Bug/38282 #51

Closed
wants to merge 2 commits into from
Closed

Conversation

awjrichards-zz
Copy link
Contributor

Adds templated photo description info to photo page on photo upload.

* Modifies python script to capture full campaign data rather than limited subset
* Python script now stores campaign data in a dict before dumping to json
* Updates campaigns-data.js to latest full campaign data
* Campaign data structure now made up of keyed objects, campaign name is key
* Campaign sorting by alpha now happens in the template
* upload.js now required in app.js
* updated formatUploadDescription() to specs in bug 38283
@@ -16,7 +16,7 @@
</head>
<body class='hidden'>
<script type="text/html" id="country-list-template">
<% _.each(countries, function( country ) { %>
<% _.each( _.sortBy( countries, function(country) { return country.desc }), function( country ) { %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we sort this in python? One-time effort

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope because I switched to using dictionaries so we could have keyed campaign objects. You can't sort dictionaries in python.

@yuvipanda yuvipanda mentioned this pull request Jul 12, 2012
@awjrichards-zz
Copy link
Contributor Author

Abandoning this due to some git fu failure on my part; recommitting changes and will re-issue pull request.

@awjrichards-zz
Copy link
Contributor Author

I've replaced this with #53

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants