diff --git a/app/views/layouts/_topbar.slim b/app/views/layouts/_topbar.slim index c9b0e24..2c992d5 100644 --- a/app/views/layouts/_topbar.slim +++ b/app/views/layouts/_topbar.slim @@ -19,6 +19,9 @@ nav.top-bar a href="/" Home li.menu-text class=('active' if controller_name=='packages') a href="/packages" Browse + / TODO: highlights the "Browse" tab (even) when you click on Contribute + li.menu-text + =link_to 'Contribute', :packages_without //li.has-dropdown //a href="#" Distributions //ul.dropdown @@ -28,7 +31,7 @@ nav.top-bar //li //a href="#" Ubuntu li.menu-text class=('active' if controller_name=='welcome' and action_name=='about') - a href="/about" About + a href="/about" About/Privacy // Add link if user has uploaded screenshots - if @current_users_screenshots and @current_users_screenshots.any? li.menu-text class=('active' if controller_name=='my' and action_name=='uploads') diff --git a/config/routes.rb b/config/routes.rb index 6f05df9..6cd3bd8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,6 +14,7 @@ Rails.application.routes.draw do get 'packages' => 'packages#grid', as: :packages_grid get 'packages/list' => 'packages#list', as: :packages_list + get 'packages?show=without' => 'packages#grid?show=without', as: :packages_without get 'moderate' => 'moderate#index' get 'logs' => 'logs#index' get 'my/profile'