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
56
app/views/layouts/application.html.slim
Normal file
56
app/views/layouts/application.html.slim
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
doctype html
|
||||
html
|
||||
head
|
||||
title screenshots.debian.net
|
||||
/ TODO: make title reflect the virtual host (e.g. Debian)
|
||||
meta charset="utf-8"
|
||||
meta name="keywords" content="debian screenshots packages applications linux"
|
||||
meta name="viewport" content="width=device-width, initial-scale=1.0"
|
||||
/ TODO: make the keywords reflect the virtual host (e.g. Debian)
|
||||
= stylesheet_link_tag "application", media: "all"
|
||||
= javascript_include_tag "vendor/modernizr"
|
||||
= stylesheet_link_tag "jquery-fancybox/jquery.fancybox", media: "all"
|
||||
= stylesheet_link_tag "jquery.raty", media: "all"
|
||||
= javascript_include_tag 'jquery'
|
||||
/ = javascript_include_tag 'jquery.raty'
|
||||
|
||||
= csrf_meta_tags
|
||||
|
||||
|
||||
body
|
||||
// TODO: move topbar somewhere else than packages
|
||||
#wholepage
|
||||
= render 'layouts/topbar'
|
||||
#content
|
||||
= yield
|
||||
= render 'layouts/footer'
|
||||
= javascript_include_tag "application"
|
||||
|
||||
// Load Javascript libraries
|
||||
// Initialize Zurb Foundation
|
||||
javascript:
|
||||
//$(document).foundation();
|
||||
$('.fancybox').fancybox({nextEffect: "none", prevEffect: "none"});
|
||||
|
||||
// See http://wbotelhos.com/raty
|
||||
//$('.star-rating').raty({
|
||||
// score: 3,
|
||||
// cancelOff: '/images/raty/cancel-off.png',
|
||||
// cancelOn: '/images/raty/cancel-on.png',
|
||||
// starHalf: '/images/raty/star-half.png',
|
||||
// starOff: '/images/raty/star-off.png',
|
||||
// starOn: '/images/raty/star-on.png',
|
||||
// half: true
|
||||
//});
|
||||
//
|
||||
//$('.star-rating-readonly').raty({
|
||||
// score: 3,
|
||||
// cancelOff: '/images/raty/cancel-off.png',
|
||||
// cancelOn: '/images/raty/cancel-on.png',
|
||||
// starHalf: '/images/raty/star-half.png',
|
||||
// starOff: '/images/raty/star-off.png',
|
||||
// starOn: '/images/raty/star-on.png',
|
||||
// readOnly: true,
|
||||
// halfShow: true,
|
||||
// score: function() { return $(this).attr('data-score'); }
|
||||
//});
|
||||
Loading…
Add table
Add a link
Reference in a new issue