Skip to content

Commit

Permalink
Add "Tokens" link in breadcrumbs in "Trigger Token"
Browse files Browse the repository at this point in the history
Also remove unnecessary `'aria-current' => 'page'` modifiers in links which
don't point to the current page.
  • Loading branch information
eduardoj committed Sep 13, 2021
1 parent 528a66a commit ea26adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
= link_to('Your Profile', user_path(User.session!))

- if action_name == 'show'
%li.breadcrumb-item
= link_to 'Tokens', tokens_path
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Trigger Token
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Tokens
- when 'new'
%li.breadcrumb-item{ 'aria-current' => 'page' }
%li.breadcrumb-item
= link_to 'Tokens', tokens_path
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Create Token
- when 'edit'
%li.breadcrumb-item{ 'aria-current' => 'page' }
%li.breadcrumb-item
= link_to 'Tokens', tokens_path
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Edit Token

0 comments on commit ea26adf

Please sign in to comment.