Commit eb2c597d7853292a311ceee0a519d822991f6ef4
1 parent
a3b6c952
Exists in
master
and in
3 other branches
added profile link to navigation menu
Showing
4 changed files
with
21 additions
and
1 deletions
Show diff stats
cabecalho.css
... | ... | @@ -580,6 +580,23 @@ a.btn_control_panel:hover ul li{display: block;} |
580 | 580 | padding-left: 10px; |
581 | 581 | } |
582 | 582 | |
583 | +#navigation ul li#btn_profile { | |
584 | + border-left: 0; | |
585 | + padding: 0; | |
586 | + margin: 5px 10px; | |
587 | +} | |
588 | +#navigation ul li#btn_profile a { | |
589 | + border-left: 0; | |
590 | + padding: 0 10px; | |
591 | +} | |
592 | +#navigation ul li#btn_profile a img { | |
593 | + vertical-align: middle; | |
594 | +} | |
595 | +#navigation ul li#btn_profile span { | |
596 | + background: none; | |
597 | + padding: 0 0 0 5px; | |
598 | +} | |
599 | + | |
583 | 600 | .icon-menu-tasks { |
584 | 601 | background-image: url(images/barra-menu-task.png); |
585 | 602 | } | ... | ... |
navigation.html.erb
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | <li id="btn_aparence">Aparência</li> |
5 | 5 | <li id="btn_content">Conteúdo</li> |
6 | 6 | <li id="btn_icon"><span> </span></li> |
7 | + <li id="btn_profile"><%= link_to(profile_image(profile, :icon) + content_tag(:span, profile.name), profile.public_profile_url) %></li> | |
7 | 8 | |
8 | 9 | <%= theme_include 'content_menu' %> |
9 | 10 | <%= theme_include 'appearance_menu' %> | ... | ... |
style.css