Commit b66db0d07ff691e3c58401d5965b10f5b055f2b6

Authored by Melissa Wen
1 parent 02d6694f

Add label you-are-here based on secom breadcrumbs pattern

Should not display you-are-here on pages without breadcrumbs path
src/noosfero-spb/noosfero-spb-theme/css/software-pages.css
... ... @@ -19,6 +19,11 @@
19 19 display: none;
20 20 }
21 21  
  22 +#wrap-2 .block.breadcrumbs-plugin_content-breadcrumbs-block #breadcrumbs-you-are-here{
  23 + color: #000;
  24 + margin-right: 0.5em;
  25 +}
  26 +
22 27 /*** Software Header ***/
23 28 /*block title software button control painel*/
24 29 .action-content_viewer-view_page #content .software-information-block .admin-link a{
... ...
src/noosfero-spb/noosfero-spb-theme/theme.js
... ... @@ -272,6 +272,7 @@ $('#link-buscar').click(function(e) {
272 272  
273 273 function move_breadcrumbs() {
274 274 $('.breadcrumbs-plugin_content-breadcrumbs-block').prependTo('#wrap-2');
  275 + $('<span id="breadcrumbs-you-are-here">Você está aqui:</span>').insertBefore($('.breadcrumbs-plugin_content-breadcrumbs-block .block-inner-2').children().first());
275 276 }
276 277  
277 278 $(document).ready(function(){
... ...