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

Make TranslationController slim #363

Merged
merged 2 commits into from
Aug 3, 2017
Merged

Make TranslationController slim #363

merged 2 commits into from
Aug 3, 2017

Conversation

MehediDracula
Copy link
Contributor

@MehediDracula MehediDracula commented Aug 3, 2017

TranslationController is mixture of HTML code.

The controller is doing too much work for revisions and also heredoc inside the controller is messy as hell.

All revision formatting stuff is now abstracted into another class and revision template is moved into a blade partial.

Exporting data into CSV file is pretty common. so maybe it will be a good idea to make a macro for that. so that user can export CSV file in a fluent interface.

@nWidart
Copy link
Member

nWidart commented Aug 3, 2017

Thank you!

I'm getting the following error when opening the modal:

Call to a member function present() on boolean (View: /Users/nicolaswidart/Sites/Asguard/Platform/Modules/Translation/Resources/views/admin/translations/partials/revision.blade.php)

@nWidart nWidart merged commit c7b91b5 into AsgardCms:2.0 Aug 3, 2017
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.

2 participants