History for dmpopidor / app / controllers / templates_controller.rb
2017-04-25
@Brian Riley
moved most of the save logic from the template controller to the model. Updated the phases/section/question models to use the after_save callback to handle updating the template.dirty flag
Brian Riley committed on 25 Apr 2017
2017-04-24
@Brian Riley
fixed pages so that they work with new controller logic DMPRoadmap/roadmap#251
Brian Riley committed on 24 Apr 2017
@Brian Riley
updated tests to work with new template logic DMPRoadmap/roadmap#251
Brian Riley committed on 24 Apr 2017
2017-04-21
@Brian Riley
Updated tests to work with updated controller
Brian Riley committed on 21 Apr 2017
@Brian Riley
Updated template controller to use new model helper methods. updates phase/section/question controllers to update template dirty flag. added new routes for customize, publish, unpublish
Brian Riley committed on 21 Apr 2017
2017-04-19
@briley
updated logic to unpublish older versions when a version is published
briley committed on 19 Apr 2017
2017-04-11
@briley
Updated test so that it does not provide a version or org so that we match what the form is doing DMPRoadmap/roadmap#191
briley committed on 11 Apr 2017
2017-04-07
@Brian Riley
broken generic error message handler apart into separate create/update/destroy versions. updated calls within the controllers and fixed tests DMPRoadmap/roadmap#227
Brian Riley committed on 7 Apr 2017
@Brian Riley
Added obj_name param to the generic error message handler on application_controller. Updated all save error handling to render the page rather than redirect DMPRoadmap/roadmap#227
Brian Riley committed on 7 Apr 2017
2017-03-29
@briley
updated phases and templates controllers to use new error message helper on application_controller
briley committed on 29 Mar 2017
2017-03-28
@briley
added generic 'Unable to save your changes' message for template create/update failures
briley committed on 28 Mar 2017
@briley
fixed broken route to undefined edit path and replaced with redirect to correct route
briley committed on 28 Mar 2017
@briley
removed exclamation from .save. This prevents the routine from ever returning false
briley committed on 28 Mar 2017
@briley
updated seeds to use managing institution abbreviation instead of hard-coded 'CC'. Added basic functional tests for templates controller with small adjustments to check for nils in view and controller
briley committed on 28 Mar 2017
2017-03-22
@Brian Riley
updated templates controller so that editing details does not send user to 'view all templates' page DMPRoadmap/roadmap#192
Brian Riley committed on 22 Mar 2017
@Brian Riley
removed auto-creation of phase from templates controller. Updated template view to allow the 'Add Phase' tab to appear if the template.org == current_user.org DMPRoadmap/roadmap#191
Brian Riley committed on 22 Mar 2017
2017-03-21
@briley
addresses further issue on DMPRoadmap/roadmap#191 by setting the phase to modifiable
briley committed on 21 Mar 2017
@briley
fixes DMPRoadmap/roadmap#191 by creating a default phase
briley committed on 21 Mar 2017
2017-03-03
@xsrust
Merge branch 'development' of https://github.com/DigitalCurationCentre/roadmap into development
xsrust committed on 3 Mar 2017
@xsrust
switched to using the hash for data access for admin_template view and associated partials
xsrust committed on 3 Mar 2017
2017-03-02
@Jose Lloret
Replaced I18n.t(...) from controllers. DMPRoadmap/roadmap#98
Jose Lloret committed on 2 Mar 2017
2017-02-24
@xsrust
Moved Actions, views, and partials for sections/phases/questions/suggested_answers out of templates, and wrote up associated authorization
xsrust committed on 24 Feb 2017
2017-02-14
@xsrust
bugfixing update customized template
xsrust committed on 14 Feb 2017
@xsrust
added versioning/updating for customizations, and updated display logic for customizations on admin_index page
xsrust committed on 14 Feb 2017
2017-02-08
@xsrust
customizations generate new templates or template versions
xsrust committed on 8 Feb 2017
2017-02-07
@xsrust
initial customization functionality
xsrust committed on 7 Feb 2017
@xsrust
fixed bug where sections not editable, questions not saveable
xsrust committed on 7 Feb 2017
2017-02-03
@xsrust
init commit of deep_copy for templates [untested]
xsrust committed on 3 Feb 2017
@xsrust
fixed bugs introduced into templates by merge
xsrust committed on 3 Feb 2017
2017-02-02
@briley
added theme unit tests and started cleanup of remaining existing tests
briley committed on 2 Feb 2017