assets pipeline

master
Alinson S. Xavier 12 years ago
parent 0991d7af8e
commit e75d1f23ea

@ -0,0 +1,6 @@
//= require lib/prototype
//= require lib/effects
//= require lib/controls
//= require lib/dragdrop
//= require lib/event-selectors
//= require application

@ -39,7 +39,7 @@ ol, dl, ul {
}
.content ul li {
background-image: url(/images/bullet.gif);
background-image: url(<%= App.base_path %>/assets/images/bullet.gif);
background-position: 0px 7px;
background-repeat: no-repeat;
padding-left: 15px;
@ -107,7 +107,7 @@ body {
}
#header {
background-image: url(/images/header_bg.png);
background-image: url(<%= App.base_path %>/assets/images/header_bg.png);
background-position: top;
background-repeat: repeat-x;
background-color: #069;
@ -178,7 +178,7 @@ body {
#footer {
display: none;
background-image: url(/images/footer_bg.png);
background-image: url(<%= App.base_path %>/assets/images/footer_bg.png);
background-position: top;
background-repeat: repeat-x;
background-color: #000;
@ -360,14 +360,14 @@ h4.title {
}
.repositorio .mime_plain_text {
background-image: url(/images/tango/text-x-generic.png);
background-image: url(<%= App.base_path %>/assets/images/tango/text-x-generic.png);
}
.repositorio .mime_presentation {
background-image: url(/images/tango/x-office-presentation.png);
background-image: url(<%= App.base_path %>/assets/images/tango/x-office-presentation.png);
}
body {
ackground-image: url(/prototype/line.png);
ackground-image: url(<%= App.base_path %>/prototype/line.png);
}

@ -38,7 +38,7 @@ ul ul, ol ol {
}
.box ul li {
background-image: url(<%= App.base_path %>/images/bullet.gif);
background-image: url(<%= App.base_path %>/assets/bullet.gif);
background-position: 0px 7px;
background-repeat: no-repeat;
padding-left: 15px;
@ -126,13 +126,13 @@ body {
#wrapper {
margin: 0em -9px;
padding: 0px 9px;
background-image: url(<%= App.base_path %>/images/bg_body.png);
background-image: url(<%= App.base_path %>/assets/bg_body.png);
background-repeat: repeat-x;
background-color: #f4f4f4;
}
#header {
background-image: url(<%= App.base_path %>/images/header_bg.png);
background-image: url(<%= App.base_path %>/assets/header_bg.png);
background-position: top;
background-repeat: repeat-x;
color: #eee;
@ -287,7 +287,7 @@ body {
}
.specialDay {
background-image: url(<%= App.base_path %>/images/bg_day.gif);
background-image: url(<%= App.base_path %>/assets/bg_day.gif);
cursor: pointer;
}
@ -449,12 +449,12 @@ h4.title, h1.title {
line-height: 18px;
}
.repositorio .mime_plain_text { background-image: url(<%= App.base_path %>/images/tango/text-x-generic.png); }
.repositorio .mime_presentation { background-image: url(<%= App.base_path %>/images/tango/x-office-presentation.png); }
.repositorio .mime_document { background-image: url(<%= App.base_path %>/images/tango/x-office-document.png); }
.repositorio .mime_binary { background-image: url(<%= App.base_path %>/images/tango/application-x-executable.png); }
.repositorio .mime_zip { background-image: url(<%= App.base_path %>/images/tango/package-x-generic.png); }
.repositorio .mime_folder { background-image: url(<%= App.base_path %>/images/tango/folder.png); }
.repositorio .mime_plain_text { background-image: url(<%= App.base_path %>/assets/tango/text-x-generic.png); }
.repositorio .mime_presentation { background-image: url(<%= App.base_path %>/assets/tango/x-office-presentation.png); }
.repositorio .mime_document { background-image: url(<%= App.base_path %>/assets/tango/x-office-document.png); }
.repositorio .mime_binary { background-image: url(<%= App.base_path %>/assets/tango/application-x-executable.png); }
.repositorio .mime_zip { background-image: url(<%= App.base_path %>/assets/tango/package-x-generic.png); }
.repositorio .mime_folder { background-image: url(<%= App.base_path %>/assets/tango/folder.png); }
.spinner {
float: right;
@ -573,7 +573,7 @@ textarea {
#wiki_preview {
background-image: url(<%= App.base_path %>/images/rascunho.png);
background-image: url(<%= App.base_path %>/assets/rascunho.png);
border: 2px solid #e4e4e4;
padding: 10px;
overflow: auto;

@ -7,7 +7,7 @@
%meta{'name' => 'robots', :content => 'noindex,nofollow'}
%meta{'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8'}
%link{'href' => "#{App.base_path}/stylesheets/cache/wiki.css", 'rel' => 'Stylesheet', 'type' => 'text/css'}
= stylesheet_link_tag :wiki
%link{'href' => "#{App.base_path}/favicon.ico", 'rel' => 'icon', 'type' => 'image/vnd.microsoft.icon'}
%link#css_color{'href' => "#{App.base_path}/stylesheets/cache/color.#{@color}.css", 'rel' => 'Stylesheet', 'type' => %'text/css'}
@ -19,7 +19,7 @@
%script{:type => 'text/javascript'}
== BASE_PATH = "#{App.base_path}";
/= javascript_include_merged :base
= javascript_include_tag :base
%body{'onload' => 'javascript: startup()'}
#wrapper

@ -1,5 +1,4 @@
<% color = App.color_schemes[@color] || App.color_schemes[App.default_color] %>
a {
color: <%= color[1] %>;
}

@ -86,8 +86,7 @@ WikiUFC::Application.routes.draw do
match '/dashboard' => 'users#dashboard', :as => :dashboard
match '/dashboard/:secret.:format' => 'users#dashboard', :as => :formatted_dashboard
# Stylesheets
match 'stylesheets/cache/:action.:format' => 'stylesheets#index'
## Stylesheets
match 'stylesheets/cache/:action.:color.:format' => 'stylesheets#index'
# Mudancas recentes global