Commit 3609e5bb0225b86dd232c2d079687a846f1421e4

Authored by Daniela Feitosa
1 parent d7d56db1

Added categories on header

Showing 3 changed files with 13 additions and 0 deletions   Show diff stats
categories.rhtml 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<ul id="cat_menu">
  2 + <% @environment.display_categories.each do |item| %>
  3 + <li id="category<%= item.display_color %>">
  4 + <%= item.name %>
  5 + </li>
  6 + <% end %>
  7 +</ul><!-- fim id="cat_menu" -->
... ...
header.rhtml
... ... @@ -16,4 +16,7 @@
16 16 </div>
17 17 </div>
18 18 <div id="barra-psocial">
  19 + <div id="categories_menu">
  20 + <%= render :file => 'categories.rhtml' %>
  21 + </div>
19 22 </div>
... ...
style.css
... ... @@ -117,6 +117,9 @@ body {
117 117 border-radius: 5px;
118 118 }
119 119  
  120 +#categories_menu {
  121 + display: none;
  122 +}
120 123 /* Search Button */
121 124 #search-button a {
122 125 display: inline-block;
... ...