Commit 571fbdb1358f04176605ad4a77846199e2ba6bb7

Authored by Rodrigo Souto
1 parent ced9acfd

Adding enterprise homepage link to catalog categories

app/views/catalog/index.rhtml
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 7
8 <div class='l-sidebar-left-bar'> 8 <div class='l-sidebar-left-bar'>
9 <ul> 9 <ul>
  10 + <%= content_tag('li', link_to(_('Enterprise homepage'), profile.public_profile_url), :id => 'catalog-categories-homepage-link') %>
10 <% if @categories.present? %> 11 <% if @categories.present? %>
11 <% @categories.each do |category| %> 12 <% @categories.each do |category| %>
12 <%= category_link(category) %> 13 <%= category_link(category) %>
public/stylesheets/application.css
@@ -2720,6 +2720,29 @@ div#activation_enterprise label, div#activation_enterprise input, div#activation @@ -2720,6 +2720,29 @@ div#activation_enterprise label, div#activation_enterprise input, div#activation
2720 padding-bottom: 0.5em; 2720 padding-bottom: 0.5em;
2721 } 2721 }
2722 2722
  2723 +#catalog-categories-homepage-link {
  2724 + background-color: #d3d7cf;
  2725 + font-weight: bold;
  2726 + height: 28px;
  2727 + text-align: center;
  2728 + border-radius: 5px;
  2729 + margin-bottom: 10px;
  2730 +}
  2731 +
  2732 +
  2733 +#catalog-categories-homepage-link:hover {
  2734 + background-color: #babdb6;
  2735 +}
  2736 +
  2737 +
  2738 +#catalog-categories-homepage-link a{
  2739 + display: inline-block;
  2740 + height: 100%;
  2741 + width: 100%;
  2742 + line-height: 28px;
  2743 + text-decoration: none;
  2744 + color: #2e3436;
  2745 +}
2723 /* * * Show Product * * * * * * * * * * * * */ 2746 /* * * Show Product * * * * * * * * * * * * */
2724 2747
2725 .controller-catalog #show_product .product-pic { 2748 .controller-catalog #show_product .product-pic {