Getting the project working again
Replace Twitter Bootstrap by Zurb Foundation Used @import in SCSS instad of require_tree for proper order and use of variables like $debian_color Moved old files out of the way (renamed them to xx*) Welcome controller (/) works Moved templates from ERB to SLIM format Fixed database settings Reduced routes to working ones Tidied up Gemfile Checked in experimental lab files Tried to find a good description for this massive commit :)
This commit is contained in:
parent
a7e05b2b78
commit
87f545414f
38 changed files with 3341 additions and 156 deletions
40
app/views/layouts/_topbar.slim
Normal file
40
app/views/layouts/_topbar.slim
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
header
|
||||
div.contain-to-grid
|
||||
nav.top-bar data-topbar=true role="navigation"
|
||||
ul.title-area
|
||||
// TODO: Make the logo depend on the virtual host
|
||||
li.name
|
||||
img src="/images/logos/debian.svg" width="35" alt="Debian logo"
|
||||
// TODO: Use proper distribution name
|
||||
'Debian Screenshots >
|
||||
// Not enough space for the search… where do we put it?
|
||||
//li.item
|
||||
// = form_tag( url(:package, :index), :method=>'get')
|
||||
// = search_field_tag :search, :placeholder=>'Search…', :autofocus=>true
|
||||
li.toggle-topbar.menu-icon
|
||||
a href="#"
|
||||
span Menu
|
||||
|
||||
section.top-bar-section
|
||||
ul.right
|
||||
li class=('active' if controller_name=='welcome')
|
||||
a href="/" Home
|
||||
li class=('active' if controller_name=='package')
|
||||
a href="/packages" Explore
|
||||
li class=('active' if controller_name=='upload')
|
||||
a href="/upload" Contribute
|
||||
li.has-dropdown
|
||||
a href="#" Distributions
|
||||
ul.dropdown
|
||||
// TODO: Use proper distribution list
|
||||
li
|
||||
a href="#" Debian
|
||||
li
|
||||
a href="#" Ubuntu
|
||||
li class=('active' if controller_name=='about')
|
||||
a href="/about" About
|
||||
li.divider
|
||||
// TODO: Show link for admin/moderation view if admin is logged in
|
||||
li.has-form
|
||||
// TODO: Show "My" when the user is logged in
|
||||
a.button href="/profile" Login
|
||||
Loading…
Add table
Add a link
Reference in a new issue