Skip to content

Mutlipage PDF viewer for expenses review (65323) - #357

Open
linusfromscratch wants to merge 2 commits into
masterfrom
feature/65323-expenses-pdf-viewer
Open

Mutlipage PDF viewer for expenses review (65323)#357
linusfromscratch wants to merge 2 commits into
masterfrom
feature/65323-expenses-pdf-viewer

Conversation

@linusfromscratch

Copy link
Copy Markdown
Collaborator

No description provided.

- Rename attachment_image_tag/attachment_pdf_tag to attachment_display_tag/
  pdf_iframe_tag, since the image/pdf/link dispatch happens in the public
  method, not the "pdf" one
- Stop hardcoding a fixed CSS class onto the caller-supplied one; image and
  iframe now each apply their own semantic class (img-responsive /
  attachment-frame) via Rails' class_names helper
- Fix show_link leaking into the rendered HTML as an invalid attribute and
  duplicating the class onto both the <a> and the <img>
- Remove the duplicate "Anzeigen" link on expenses#show that was rendered
  twice (once via the attrs partial, once via a redundant call in
  show.html.haml)
- Extract shared _attachment_links and _attachment_display partials, used
  by both expenses and expenses_reviews views, removing the duplicated
  blocks
- Delete app/views/expense_reviews/, an orphaned directory left over from
  a 2019 controller rename that was never actually rendered
@linusfromscratch
linusfromscratch marked this pull request as ready for review August 28, 2026 13:55
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