Skip to content

Commit

Permalink
Remove OBS label from breadcrumbs
Browse files Browse the repository at this point in the history
On each page the breadcrumb starts with 'openSUSE Build Service'.
This text is taking away quite some space from the breadcrumbs and it
is not adding much value. Users already know that they are looking at
the OBS when they reached this page.
In case they don't we still have the OBS logo in the navbar.

The link to the main page is now part of the 'home' icon that is
part of each breadcrumb.
  • Loading branch information
bgeuken committed Dec 14, 2018
1 parent a96529e commit c5ed1b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ ol.breadcrumb {
color: $gray-600;
}
}

& li.breadcrumb-anchor {
font-size: 0.9rem;
& a {
color: $gray-600;
}
}
}
12 changes: 4 additions & 8 deletions src/api/app/views/webui2/webui/main/_breadcrumb_items.html.haml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
- home_title = @configuration ? @configuration['title'] : 'Open Build Service'
- if current_page?(root_path)
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
%i.fas.fa-home.mr-1
= home_title
- else
%li.breadcrumb-item
%i.fas.fa-home.mr-1
= link_to home_title, root_path
- unless current_page?(root_path)
%li.breadcrumb-anchor
= link_to(root_path, title: home_title) do
%i.fas.fa-home.mr-2

0 comments on commit c5ed1b1

Please sign in to comment.