Bug 25941

Summary: Reindent Upload local cover image page
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: enhancement    
Priority: P5 - low CC: lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.11.00
Circulation function:
Bug Depends on:    
Bug Blocks: 25025    
Attachments: Bug 25941: Reindent Upload local cover image page
Bug 25941: (follow-up) Add markup comments
Bug 25941: Reindent Upload local cover image page
Bug 25941: (follow-up) Add markup comments
Bug 25941: (follow-up) Add markup comments
Bug 25941: Reindent Upload local cover image page
Bug 25941: (follow-up) Add markup comments
Bug 25941: Reindent Upload local cover image page
Bug 25941: (follow-up) Add markup comments
Bug 25941: Reindent Upload local cover image page
Bug 25941: (follow-up) Add markup comments

Description Owen Leonard 2020-07-06 20:29:23 UTC
I propose to reformat the "Upload local cover image" template (tools/upload-images.tt) so that it has consistent spacing and indentation.
Comment 1 Owen Leonard 2020-07-06 20:43:25 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2020-07-06 20:43:28 UTC Comment hidden (obsolete)
Comment 3 David Nind 2020-09-18 03:06:52 UTC Comment hidden (obsolete)
Comment 4 David Nind 2020-09-18 03:06:56 UTC Comment hidden (obsolete)
Comment 5 Katrin Fischer 2020-09-20 17:27:04 UTC
Hi Owen, I am bit confused by the conflict - could you please take care of it and rebase?
Comment 6 Owen Leonard 2020-09-21 10:35:48 UTC Comment hidden (obsolete)
Comment 7 Katrin Fischer 2020-09-21 19:46:19 UTC
Hi Owen, missing the first patch - git bz attach fail?
Comment 8 Owen Leonard 2020-10-19 18:25:32 UTC Comment hidden (obsolete)
Comment 9 Owen Leonard 2020-10-19 18:25:37 UTC Comment hidden (obsolete)
Comment 10 David Nind 2020-10-24 04:08:43 UTC Comment hidden (obsolete)
Comment 11 David Nind 2020-10-24 04:08:48 UTC Comment hidden (obsolete)
Comment 12 Katrin Fischer 2020-10-25 00:07:08 UTC
Created attachment 112429 [details] [review]
Bug 25941: Reindent Upload local cover image page

This patch reindents the "Upload local cover image" template to make
indentation consistent. Some lines have been split up. Some markup
inconsistencies have been corrected.

To test, apply the patch and enable the LocalCoverImages system
preference.

- Go to Tools -> Upload local cover image.
- Test uploading single images or ZIP files of images.
- Confirm that everything works as expected.

Use your preferred method for checking the differences between files
while ignoring whitespace. I use diff with the  "-w" flag, but I'm not
some kind of diff deity. The only changes you see should be split lines.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 13 Katrin Fischer 2020-10-25 00:07:13 UTC
Created attachment 112430 [details] [review]
Bug 25941: (follow-up) Add markup comments

This patch adds comments to the template to highlight the markup
structure.

This patch should have no effect on the page's appearance or
functionality.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 14 Jonathan Druart 2020-11-04 12:03:28 UTC
Pushed to master for 20.11, thanks to everybody involved!
Comment 15 Lucas Gass (lukeg) 2020-11-16 21:13:44 UTC
enhancement will not be backported to 20.05.x