Added packages_without route

This commit is contained in:
Christoph Haas 2018-08-06 22:56:54 +02:00
parent 25fedb26bb
commit 4060111b7f
2 changed files with 5 additions and 1 deletions

View file

@ -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')

View file

@ -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'