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

Diary refactoring #2238

Merged
merged 4 commits into from May 29, 2019
Merged

Conversation

gravitystorm
Copy link
Collaborator

This PR contains some refactoring of diary entries, to use :create and :update methods separate from the :new and :edit methods. The routes are also partially refactored to use resources, and various path names are therefore adjusted.

@Nikerabbit this PR contains some i18n key renames:

  • diary_entries.new.publish_button -> helpers.submit.diary_entry.create
  • diary_entries.edit.subject -> diary_entries.form.subject
  • diary_entries.edit.body -> diary_entries.form.body
  • diary_entries.edit.language -> diary_entries.form.language
  • diary_entries.edit.location -> diary_entries.form.location
  • diary_entries.edit.latitude -> diary_entries.form.latitude
  • diary_entries.edit.longitude -> diary_entries.form.longitude
  • diary_entries.edit.use_map_link -> diary_entries.form.use_map_link

This brings it slightly more into line with resourceful routing.
This uses the built-in helpers for naming form elements, rather than
having to override with specific i18n labels. It also changes the label
to 'Update', and capitalizes the title on the edit page.
@tomhughes tomhughes merged commit 9431b47 into openstreetmap:master May 29, 2019
@tomhughes
Copy link
Member

@Nikerabbit note that this moves most of diary_entries.edit to diary_entries.form.

@gravitystorm gravitystorm deleted the diary_refactor branch June 13, 2019 07:43
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.

None yet

2 participants