Skip to content

2991: Added breadcrumb builder#46

Merged
rimi-itk merged 1 commit intodevelopfrom
feature/2991-breadcrumb-trail
Nov 19, 2024
Merged

2991: Added breadcrumb builder#46
rimi-itk merged 1 commit intodevelopfrom
feature/2991-breadcrumb-trail

Conversation

@rimi-itk
Copy link
Copy Markdown
Contributor

@rimi-itk rimi-itk commented Nov 18, 2024

Link to ticket

https://leantime.itkdev.dk/TimeTable/TimeTable?showTicketModal=2991#/tickets/showTicket/2991

Description

  • Adds a breadcrumb builder to build a breadcrumb.
  • Cleans up breadcrumb templates

Screenshot of the result

Project create:
Screen Shot 2024-11-18 at 21 42 22

Project view:
Screen Shot 2024-11-18 at 21 43 23

Project edit:
Screen Shot 2024-11-18 at 21 43 34

Project track view/edit:
Screen Shot 2024-11-18 at 21 43 55

Project track tool view (this needs some additional work):
Screen Shot 2024-11-18 at 14 31 05

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Additional comments or questions

If you have any further comments or questions for the reviewer please add them here.

@rimi-itk rimi-itk force-pushed the feature/2991-breadcrumb-trail branch 3 times, most recently from c252106 to 37fd880 Compare November 18, 2024 20:40
@rimi-itk rimi-itk force-pushed the feature/2991-breadcrumb-trail branch from 37fd880 to 39ff016 Compare November 18, 2024 20:49
@rimi-itk rimi-itk marked this pull request as ready for review November 19, 2024 09:38
<li>
{% if item.url %}
<a class="font-semibold" href="{{ item.url }}">{{ item.text }}</a> <span>/</span>
<a class="{{ loop.last ? 'text-green-700' }} font-semibold" href="{{ item.url }}">{{ item.text }}</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

Copy link
Copy Markdown

@sinejespersen sinejespersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you editing both breadcrumb.html.twig?

@rimi-itk
Copy link
Copy Markdown
Contributor Author

Why are you editing both breadcrumb.html.twig?

Because they both would not render a trail separator in the very rare – probably even never occurring – case when an item has no URL.

@rimi-itk rimi-itk merged commit eafa0ff into develop Nov 19, 2024
@rimi-itk rimi-itk deleted the feature/2991-breadcrumb-trail branch November 19, 2024 11:59
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.

3 participants