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
Add button styles to edit-diary-entry-button #3019
Add button styles to edit-diary-entry-button #3019
Conversation
The tests are failing at
I wasn't able to get the dev env running again, yet, so I cannot look into it ATM. |
|
Yes, if you want HTML options those will need to be in a separate hash. |
Also a bit of spacing. link_to params follow https://github.com/tordans/openstreetmap-website/blob/master/app/views/traces/show.html.erb#L68
a7937b0
to
418eeff
Compare
I am not sure I needed this journey into the history of Rails URL pattern :-D, but I hope the current version will work. |
Ha, I was just taking that same screenshot too! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a straightforward PR, but unfortunately it opens a can of worms.
As @mmd-osm notes, this proposal breaks the diary list pages, which uses the same partial. I'm not sure what the best solution is here, since I'm happy to move from links to buttons to denote 'actions' (and trying to edit a diary entry seems like an 'action' to me). Perhaps one solution is to use two different partials, and make the diary list a "summary" of each entry (e.g. with a max word limit) rather than including the entire entry. Or alternatively, perhaps we keep the partial just for the summaries, and move the "full display" directly into the view.
Beyond that, one more minor point:
- The need for pt-3 and mt-3 is not clear. I think the pt-3 is because the location partial is "bare", i.e. text not wrapped in a paragraph, and so I would look into changing the html first, to avoid needing any explicit padding/margins.
Thanks. Will look into it more once I have a Dev env again (and the time). |
This adds a button style and also a bit of spacing.
Before:
After:
Disclaimer: I did not run the code since my setup is not operational ATM.
The style looks different from the comments-buttons (example https://www.openstreetmap.org/user/tordans/diary/395215) but it uses the default bootstrap style so I guess we are moving everything to this style step by step, right?