Modify assets

Each layout has a manifest for css and js
This commit is contained in:
chris2tof 2011-12-05 09:54:41 +08:00
parent a0ec38ca99
commit 75a3c4d5b1
42 changed files with 571 additions and 1488 deletions

View File

@ -0,0 +1,8 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs

View File

@ -7,33 +7,3 @@
//= require jquery
//= require jquery_ujs
//= require_tree .
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
$(function () {
$('#panel_sidebar a, #panel_main a.nav').live('click',
function () {
$.getScript(this.href);
history.pushState(null, document.title, this.href);
return false;
}
);
$('#panel_main a.reload').live('click',
function () {
$.getScript(this.href);
history.replaceState(null, document.title, this.href);
return false;
}
);
$('.form').live('submit', function () {
$.post(this.action, $(this).serialize(), null, 'script');
return false;
});
$(window).bind("popstate", function () {
$.getScript(location.href);
});
});

View File

@ -1,2 +1,71 @@
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
function r_editor(tgetUrl,tpostUrl,tfilename,toption){
if(!toption){ toption =new Array();}
if(!toption['width']){toption['width']=400;}
if(!toption['height']){toption['height']=300;}
var editor = this;
editor.filename = tfilename;
editor.getUrl = tgetUrl;
editor.postUrl = tpostUrl;
editor.nodeToBeChanged=""
editor.width = toption['width'];
editor.height = toption['height'];
var html='';
editor.init = function(){
code = "<span id='file_editor' style='border:solid; width:"+editor.width+"px;height:"+editor.height+"px; float:right;' ><textarea style='height:87%;width:97%;resize:none;border:none;' ></textarea><input type='button' class='send' value='Send' ><input type='button' class='discard' value='Discard' ></span>";
html = $(code);
html.children("textarea").load(editor.getUrl);
html.children("input.discard").click(function(){
editor.destroy();
});
html.children("input.send").click(function(){
editor.send();
});
return html;
};
editor.reload = function(){
$.get(editor.getUrl,function(data){
html.children("textarea").text(data);
});
};
editor.send = function(){
$.post(editor.postUrl,{filename:editor.filename,context:html.children("textarea").val(),authenticity_token:$('meta[name=csrf-token]').attr('content')},null,"script");
};
editor.destroy = function(){
html.remove();
};
}
$(".r_edit").live("click",function(){
new_editor = new r_editor($(this).attr("path"),"edit_file",$(this).attr("filename"));
$(this).after(new_editor.init());
});
$(".r_snapshot").live({
mouseenter:
function(){
$(this).append($("<span></span>").html('<p class="z-preview"><img src="'+$(this).attr("path")+'"width="220" height="19" /></p>'));
},
mouseleave:
function(){
$(this).find("span:last").remove();
}
}
);
$('input.multi_files').live("change", function(){
$(this).parent().prev("ul").append("<li>" + $(this).val() + "</li>");
new_node = $(this).parent().clone();
$(this).parent().css("display","none");
new_node.children('input.multi_files').val("");
$(this).parent().before(new_node);
});
$('a.remove_mark').live("click",function(){
$(this).prev("input").val("true");
$(this).parent().css("text-decoration","line-through")
$(this).parent().removeClass("r_snapshot");
$(this).next().remove();
$(this).remove();
return false;
});

View File

@ -1,71 +0,0 @@
function r_editor(tgetUrl,tpostUrl,tfilename,toption){
if(!toption){ toption =new Array();}
if(!toption['width']){toption['width']=400;}
if(!toption['height']){toption['height']=300;}
var editor = this;
editor.filename = tfilename;
editor.getUrl = tgetUrl;
editor.postUrl = tpostUrl;
editor.nodeToBeChanged=""
editor.width = toption['width'];
editor.height = toption['height'];
var html='';
editor.init = function(){
code = "<span id='file_editor' style='border:solid; width:"+editor.width+"px;height:"+editor.height+"px; float:right;' ><textarea style='height:87%;width:97%;resize:none;border:none;' ></textarea><input type='button' class='send' value='Send' ><input type='button' class='discard' value='Discard' ></span>";
html = $(code);
html.children("textarea").load(editor.getUrl);
html.children("input.discard").click(function(){
editor.destroy();
});
html.children("input.send").click(function(){
editor.send();
});
return html;
};
editor.reload = function(){
$.get(editor.getUrl,function(data){
html.children("textarea").text(data);
});
};
editor.send = function(){
$.post(editor.postUrl,{filename:editor.filename,context:html.children("textarea").val(),authenticity_token:$('meta[name=csrf-token]').attr('content')},null,"script");
};
editor.destroy = function(){
html.remove();
};
}
$(".r_edit").live("click",function(){
new_editor = new r_editor($(this).attr("path"),"edit_file",$(this).attr("filename"));
$(this).after(new_editor.init());
});
$(".r_snapshot").live({
mouseenter:
function(){
$(this).append($("<span></span>").html('<p class="z-preview"><img src="'+$(this).attr("path")+'"width="220" height="19" /></p>'));
},
mouseleave:
function(){
$(this).find("span:last").remove();
}
}
);
$('input.multi_files').live("change", function(){
$(this).parent().prev("ul").append("<li>" + $(this).val() + "</li>");
new_node = $(this).parent().clone();
$(this).parent().css("display","none");
new_node.children('input.multi_files').val("");
$(this).parent().before(new_node);
});
$('a.remove_mark').live("click",function(){
$(this).prev("input").val("true");
$(this).parent().css("text-decoration","line-through")
$(this).parent().removeClass("r_snapshot");
$(this).next().remove();
$(this).remove();
return false;
});

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
$("#page_design_id").live('change', function() {
$.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_themes');
});

View File

@ -0,0 +1,26 @@
$(function () {
$('#panel_sidebar a, #panel_main a.nav').live('click',
function () {
$.getScript(this.href);
history.pushState(null, document.title, this.href);
return false;
}
);
$('#panel_main a.reload').live('click',
function () {
$.getScript(this.href);
history.replaceState(null, document.title, this.href);
return false;
}
);
$('.form').live('submit', function () {
$.post(this.action, $(this).serialize(), null, 'script');
return false;
});
$(window).bind("popstate", function () {
$.getScript(location.href);
});
});

View File

@ -0,0 +1,9 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require side_bar_history

View File

@ -1,354 +1,8 @@
html, body{
height: 100%;
margin: 0;
padding: 0;
}
html{
background: url(<%= asset_path "body.jpg" %>) no-repeat scroll 0 0 transparent;
background-size: cover;
}
body{
color: #000000;
font-family: helvetica,arial,sans-serif;
margin: 0;
padding: 0;
}
#panel_banner_link{
background: url(<%= asset_path "orbitbar1.png" %>) repeat-x scroll 0 0;
height: 52px;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.hmenu{
height: 40px;
position: absolute;
right: 0;
top: 1px;
width: 250px;
}
#orbit{
background: url(<%= asset_path "bar_orbit.png" %>) no-repeat scroll 0 0 transparent;
cursor:pointer;
height: 43px;
left: 10px;
position: relative;
width: 41px;
}
#orbit:hover{
background-position:0 -43px;
box-shadow: 0 3px 3px #000000;
}
#orbit:hover #orblist{
display:block;
}
#orblist{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 0 3px 3px 3px;
box-shadow: 0 3px 3px #000000;
display: none;
margin: 0;
padding: 10px;
position: absolute;
top: 43px;
width: 130px;
}
#orblist li{
border-bottom:1px solid #aaa;
list-style:none;
}
.orblink{
color: #333333;
display: block;
font: 12px/100% arial,sans-serif;
padding: 5px;
text-decoration: none;
}
.orblink:hover{
background:#eee;
color:#333;
}
#log_out a{
background: url(<%= asset_path "service_btn.png" %>) no-repeat scroll right 0 transparent;
border: medium none !important;
display: block !important;
height: 40px !important;
line-height: normal !important;
padding: 0 !important;
position: absolute;
right: 0px;
text-indent: -10000px;
top: 0px;
width: 43px !important;
}
#log_out a:hover{
background: url(<%= asset_path "service_btn.png" %>) no-repeat scroll right bottom transparent !important;
}
.lang{
color: #FFFFFF;
font-size: 15px;
line-height: 40px;
position: absolute;
right: 55px;
top: 0;
}
.lang a{
color:#fff;
text-decoration:none;
}
.lang a:hover{
text-decoration:underline;
}
#panel_container{
height: 100%;
}
#panel_container h1{
color: #FFFFFF;
font: 32px/100% helvetica,arial,sans-serif;
margin: 0 0 20px;
padding: 0;
text-shadow: 0 0 5px #000000;
}
#panel_header{
background: none repeat scroll 0 0 #F1F1F1;
border-bottom: 1px solid #818181;
padding: 10px;
}
#panel_header :after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#panel_header #nav{
margin:0;
padding:0;
width:100%;
}
#panel_header #nav li{
float: left;
list-style: none outside none;
}
#panel_header #nav li a{
background: none repeat scroll 0 0 #fff;
border-radius: 13px 13px 13px 13px;
border: 1px solid #D6D6D6;
color: #000000;
float: left;
font-size:15px;
margin: 0 20px 0 0;
padding: 5px 10px;
text-decoration: none;
}
#panel_header #nav li a:hover{
background: none repeat scroll 0 0 #818181;
border-radius: 13px 13px 13px 13px;
color: #fff;
}
#panel_content{
height: 100%;
}
.main{
float: left;
height: 100%;
padding: 0 1%;
width: 81%;
}
.main2{
padding: 62px 0 0;
}
.main table{
border-collapse: collapse;
width:100%;
}
.main table th{
border-bottom: 1px solid #222222;
color: #FFFFFF;
font: 20px/100% helvetica,arial,sans-serif;
letter-spacing: 0.05em;
padding: 10px;
text-shadow: 0 0 3px #000000;
}
.main table td{
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
border-bottom: 1px solid #222222;
color: #FFFFFF;
padding: 10px;
text-align: center;
}
.main table td a{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 5px 5px 5px 5px;
color: #000000;
padding: 5px;
text-decoration: none;
}
.main table td a:hover{
background: none repeat scroll 0 0 #eee;
border-radius: 5px 5px 5px 5px;
color: #333;
}
.secondary{
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.75);
box-shadow: 3px 0 3px #000000;
float: left;
height: 100%;
padding: 0 1%;
width: 14%;
}
.secondary2{
padding: 62px 0 0;
}
.secondary ul{
margin: 0;
padding: 0;
}
.secondary ul li{
list-style:none;
}
.secondary ul li a{
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0;
text-align: left;
text-decoration: none;
}
.seclink1{
background: url(<%= asset_path "icon1.png" %>) no-repeat scroll 20px 8px transparent;
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0 14px 60px !important;
text-align: left;
text-decoration: none;
}
.seclink2{
background: url(<%= asset_path "icon2.png" %>) no-repeat scroll 20px 14px transparent;
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0 14px 60px !important;
text-align: left;
text-decoration: none;
}
.secondary ul li a:hover{
color: #fff;
}
#panel_footer{
background: none repeat scroll 0 0 #FFFFFF;
display:none;
clear: both;
padding: 10px;
}
#panel_footer p{
margin:0;
}
label{
color: #FFFFFF;
display: block;
text-shadow: 0 0 5px #000000;
width: 130px;
}
p{
margin:0 0 10px;
}
#panel_main p label{
float: left;
padding: 3px;
width: 100px;
}
#panel_main .translation_missing{
float: left;
padding: 3px;
width: 100px;
}
.text{
border: 1px solid #818181;
border-radius: 3px 3px 3px 3px;
font: 12px/100% helvetica,arial,sans-serif;
padding: 3px;
width: 205px;
}
#site_info{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 5px #000000;
/* height: 289px;*/
margin: 0 0 20px;
overflow: hidden;
width: 600px;
}
#siteinfo_title{
background: none repeat scroll 0 0 #333333;
color: #FFFFFF;
font: 24px/50px arial,sans-serif;
height: 50px;
margin: 0;
padding: 0 0 0 20px;
text-shadow: 0 1px 0 #000000;
}
#siteinfo_tb{
background: none repeat scroll 0 0 #FFFFFF;
}
#siteinfo_tb td{
background: none repeat scroll 0 0 transparent;
border-bottom: 1px solid #333333;
color: #333333;
}
.buy_btn{
float:left;
margin: 0 10px 0 0;
}
.main table td .buy_btn a{
background: url("/assets/buy_btn.png") no-repeat scroll 0 0 transparent;
color: #000000;
display: block;
font-size: 22px;
height: 37px;
line-height: 37px;
text-align: center;
text-decoration: none;
text-shadow: 0 1px 0 #FFFFFF;
width: 170px;
padding: 0px;
}
.buy_btn a:hover{
background-position:0 bottom;
}
.bought_btn{
background: url("/assets/bought_btn.png") no-repeat scroll 0 0 transparent;
color: #FFFFFF;
float:left;
font-size: 22px;
height: 37px;
line-height: 37px;
margin: 0 10px 0 0;
text-align: center;
text-shadow: 0 1px 0 #C06408;
width: 170px;
}
/*
*This is a manifest file that'll automatically include all the stylesheets available in this directory
*and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
*the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require message
*= require admin_back_end
*/

View File

@ -0,0 +1,354 @@
html, body{
height: 100%;
margin: 0;
padding: 0;
}
html{
background: url(<%= asset_path "body.jpg" %>) no-repeat scroll 0 0 transparent;
background-size: cover;
}
body{
color: #000000;
font-family: helvetica,arial,sans-serif;
margin: 0;
padding: 0;
}
#panel_banner_link{
background: url(<%= asset_path "orbitbar1.png" %>) repeat-x scroll 0 0;
height: 52px;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.hmenu{
height: 40px;
position: absolute;
right: 0;
top: 1px;
width: 250px;
}
#orbit{
background: url(<%= asset_path "bar_orbit.png" %>) no-repeat scroll 0 0 transparent;
cursor:pointer;
height: 43px;
left: 10px;
position: relative;
width: 41px;
}
#orbit:hover{
background-position:0 -43px;
box-shadow: 0 3px 3px #000000;
}
#orbit:hover #orblist{
display:block;
}
#orblist{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 0 3px 3px 3px;
box-shadow: 0 3px 3px #000000;
display: none;
margin: 0;
padding: 10px;
position: absolute;
top: 43px;
width: 130px;
}
#orblist li{
border-bottom:1px solid #aaa;
list-style:none;
}
.orblink{
color: #333333;
display: block;
font: 12px/100% arial,sans-serif;
padding: 5px;
text-decoration: none;
}
.orblink:hover{
background:#eee;
color:#333;
}
#log_out a{
background: url(<%= asset_path "service_btn.png" %>) no-repeat scroll right 0 transparent;
border: medium none !important;
display: block !important;
height: 40px !important;
line-height: normal !important;
padding: 0 !important;
position: absolute;
right: 0px;
text-indent: -10000px;
top: 0px;
width: 43px !important;
}
#log_out a:hover{
background: url(<%= asset_path "service_btn.png" %>) no-repeat scroll right bottom transparent !important;
}
.lang{
color: #FFFFFF;
font-size: 15px;
line-height: 40px;
position: absolute;
right: 55px;
top: 0;
}
.lang a{
color:#fff;
text-decoration:none;
}
.lang a:hover{
text-decoration:underline;
}
#panel_container{
height: 100%;
}
#panel_container h1{
color: #FFFFFF;
font: 32px/100% helvetica,arial,sans-serif;
margin: 0 0 20px;
padding: 0;
text-shadow: 0 0 5px #000000;
}
#panel_header{
background: none repeat scroll 0 0 #F1F1F1;
border-bottom: 1px solid #818181;
padding: 10px;
}
#panel_header :after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#panel_header #nav{
margin:0;
padding:0;
width:100%;
}
#panel_header #nav li{
float: left;
list-style: none outside none;
}
#panel_header #nav li a{
background: none repeat scroll 0 0 #fff;
border-radius: 13px 13px 13px 13px;
border: 1px solid #D6D6D6;
color: #000000;
float: left;
font-size:15px;
margin: 0 20px 0 0;
padding: 5px 10px;
text-decoration: none;
}
#panel_header #nav li a:hover{
background: none repeat scroll 0 0 #818181;
border-radius: 13px 13px 13px 13px;
color: #fff;
}
#panel_content{
height: 100%;
}
.main{
float: left;
height: 100%;
padding: 0 1%;
width: 81%;
}
.main2{
padding: 62px 0 0;
}
.main table{
border-collapse: collapse;
width:100%;
}
.main table th{
border-bottom: 1px solid #222222;
color: #FFFFFF;
font: 20px/100% helvetica,arial,sans-serif;
letter-spacing: 0.05em;
padding: 10px;
text-shadow: 0 0 3px #000000;
}
.main table td{
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
border-bottom: 1px solid #222222;
color: #FFFFFF;
padding: 10px;
text-align: center;
}
.main table td a{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 5px 5px 5px 5px;
color: #000000;
padding: 5px;
text-decoration: none;
}
.main table td a:hover{
background: none repeat scroll 0 0 #eee;
border-radius: 5px 5px 5px 5px;
color: #333;
}
.secondary{
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.75);
box-shadow: 3px 0 3px #000000;
float: left;
height: 100%;
padding: 0 1%;
width: 14%;
}
.secondary2{
padding: 62px 0 0;
}
.secondary ul{
margin: 0;
padding: 0;
}
.secondary ul li{
list-style:none;
}
.secondary ul li a{
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0;
text-align: left;
text-decoration: none;
}
.seclink1{
background: url(<%= asset_path "icon1.png" %>) no-repeat scroll 20px 8px transparent;
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0 14px 60px !important;
text-align: left;
text-decoration: none;
}
.seclink2{
background: url(<%= asset_path "icon2.png" %>) no-repeat scroll 20px 14px transparent;
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0 14px 60px !important;
text-align: left;
text-decoration: none;
}
.secondary ul li a:hover{
color: #fff;
}
#panel_footer{
background: none repeat scroll 0 0 #FFFFFF;
display:none;
clear: both;
padding: 10px;
}
#panel_footer p{
margin:0;
}
label{
color: #FFFFFF;
display: block;
text-shadow: 0 0 5px #000000;
width: 130px;
}
p{
margin:0 0 10px;
}
#panel_main p label{
float: left;
padding: 3px;
width: 100px;
}
#panel_main .translation_missing{
float: left;
padding: 3px;
width: 100px;
}
.text{
border: 1px solid #818181;
border-radius: 3px 3px 3px 3px;
font: 12px/100% helvetica,arial,sans-serif;
padding: 3px;
width: 205px;
}
#site_info{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 5px #000000;
/* height: 289px;*/
margin: 0 0 20px;
overflow: hidden;
width: 600px;
}
#siteinfo_title{
background: none repeat scroll 0 0 #333333;
color: #FFFFFF;
font: 24px/50px arial,sans-serif;
height: 50px;
margin: 0;
padding: 0 0 0 20px;
text-shadow: 0 1px 0 #000000;
}
#siteinfo_tb{
background: none repeat scroll 0 0 #FFFFFF;
}
#siteinfo_tb td{
background: none repeat scroll 0 0 transparent;
border-bottom: 1px solid #333333;
color: #333333;
}
.buy_btn{
float:left;
margin: 0 10px 0 0;
}
.main table td .buy_btn a{
background: url("/assets/buy_btn.png") no-repeat scroll 0 0 transparent;
color: #000000;
display: block;
font-size: 22px;
height: 37px;
line-height: 37px;
text-align: center;
text-decoration: none;
text-shadow: 0 1px 0 #FFFFFF;
width: 170px;
padding: 0px;
}
.buy_btn a:hover{
background-position:0 bottom;
}
.bought_btn{
background: url("/assets/bought_btn.png") no-repeat scroll 0 0 transparent;
color: #FFFFFF;
float:left;
font-size: 22px;
height: 37px;
line-height: 37px;
margin: 0 10px 0 0;
text-align: center;
text-shadow: 0 1px 0 #C06408;
width: 170px;
}

View File

@ -1,4 +1,12 @@
/*
Place all the styles related to the matching controller here.
They will automatically be included in application.css.
*/
.z-preview * {
width: 100%;
height: 100%;
}
.z-preview {
background: white;
border: solid;
position: absolute;
width: 200px;
float: right;
height: 200px;
}

View File

@ -1,12 +0,0 @@
.z-preview * {
width: 100%;
height: 100%;
}
.z-preview {
background: white;
border: solid;
position: absolute;
width: 200px;
float: right;
height: 200px;
}

View File

@ -1,24 +0,0 @@
ul.list{
margin:1em 0;
padding:0;
border-top:1px solid #ccc;
width:200px;
}
ul.list li{
margin:0;
padding:.5em 0;
list-style:none;
border-bottom:1px solid #ccc;
}
.error{
color:red;
}
.notice, .message{
color:green;
}
.warning{
color:orange;
}

View File

@ -1,507 +0,0 @@
/*
*This is a manifest file that'll automatically include all the stylesheets available in this directory
*and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
*the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*/
a, a:hover {
text-decoration: none;
outline:none;
}
html,body {
height:100%;
margin:0;
font-family: Helvetica, '微軟正黑體';
overflow-x:hidden
}
ul {
list-style:none;
list-style-image:none;
margin:0;
padding:0;
}
.info_input input{
border:none;
padding:5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
input:focus, select:focus, textarea:focus {
outline:none;
-moz-outline-radius: 0;
}
.clear:after {
content:".";
clear:both;
height:0;
display:block;
visibility:hidden;
}
#content{
height:100%;
}
#sidebar {
position:fixed;
top:0;
left:0;
height: 100%;
width:220px;
/*background-color:rgba(245,245,245,1);*/
background:url(<%= asset_path '75.png' %>) repeat left top;
-moz-box-shadow: 3px 0px 4px #472a12; /* Firefox */
-webkit-box-shadow: 3px 0px 4px #472a12;/* Safari 和 Chrome */
box-shadow: 3px 0px 4px #472a12; /* Opera 10.5 + */
}
#search {
background:url(<%= asset_path 'search_block_bg.jpg' %>) repeat-x left top;
margin-top:43px;
padding:15px 12px;
height:20px;
}
#search input {
background:url(<%= asset_path 'search_bg.png' %>) no-repeat left top;
border:none;
width:154px;
height:20px;
padding: 0 20px;
font-family:Helvetica;
}
h1 {
background:url(<%= asset_path 'h1_bg.png' %>) repeat-x left top;
margin:0;
line-height:21px;
height:21px;
font-size:12px;
padding-left:10px;
font-weight:normal;
text-shadow:0px -1px 0px #000;
color:#FFF;
border-top:1px solid #424344;
border-bottom:1px solid #1b1b1b;
}
#user_list .member_setup ul li.set_1 {
background-position:left bottom;
border-top:1px solid #406cc3;
border-bottom:1px solid #242628;
}
#roles_list .member_setup ul li.set_2 {
background-position:left bottom;
border-top:1px solid #406cc3;
border-bottom:1px solid #242628;
}
#infos_list .member_setup ul li.set_3 {
background-position:left bottom;
border-top:1px solid #406cc3;
border-bottom:1px solid #242628;
}
#user_list .member_setup ul li.set_1 a span {
background-position:left bottom;
color:#eeeeee;
}
#roles_list .member_setup ul li.set_2 a span {
background-position:left bottom;
color:#eeeeee;
}
.member_setup ul {
color:#fff;
font-size:12px;
background:url(<%= asset_path 'line.png' %>) repeat-x left bottom;
}
.member_setup ul li {
background:url(<%= asset_path 'sidebar_li.jpg' %>) repeat-x left top;
/* line-height:31px;*/
border-top:1px solid #424344;
border-bottom:1px solid #000000;
}
.member_setup ul li:hover {
background-position:left bottom;
border-top:1px solid #406cc3;
border-bottom:1px solid #242628;
}
.member_setup ul li a {
display: block;
padding: 7px 0 6px 12px;
color:#c4c4c4;
}
.member_setup ul li a span {
background:url(<%= asset_path 'add_mamber.png' %>) left top no-repeat;
text-shadow: 0px 1px 0px #000;
line-height: 18px;
padding: 2px 0 1px 35px;
}
.member_setup ul li a:hover span {
background-position:left bottom;
color:#eeeeee;
}
#main{
position: relative;
margin-left: 260px;
padding-right: 40px;
height:100%;
}
.main_list {
padding-top:70px;
}
.main_list ul {
clear:both;
}
.main_list li {
background:url(<%= asset_path '75.png' %>) repeat left top;
margin-bottom:20px;
}
.main_list li span {
display:inline-block;
float:left;
padding-left:20px;
color:#fff;
font-size:14px;
line-height:40px;
width:18%;
}
.main_list li.list_head {
background:none;
margin-bottom:10px;
}
.main_list li.list_head span {
font-size:16px;
line-height:inherit;
text-shadow: 0px 1px 1px #3e2914;
}
.main_list li.list_item {
position:relative;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0px 0px 6px #291508; /* Firefox */
-webkit-box-shadow: 0px 0px 6px #291508;/* Safari 和 Chrome */
box-shadow: 0px 0px 6px #291508; /* Opera 10.5 + */
}
.main_list li.list_item:hover {
border:1px solid #3699dd;
}
.main_list li.disable {
opacity:0.6;
}
.main_list li.list_item:hover span {
line-height:38px;
}
.main_list li .roles {
}
.main_list li .name {
}
.main_list li .email {
}
.main_list li .admin{
}
.main_list li .action{
float: right;
width:10%;
}
#main .action a{
background-image:url(<%= asset_path 'icon.png' %>);
text-indent:-9999px;
display:inline-block;
width:19px;
height:19px;
margin-top:8px;
margin-right:10px;
}
#main .action a.show{
background-position:left top;
}
#main .action a.edit{
background-position:-19px top;
}
#main .action a.delete{
background-position:-38px top;
}
#main a.switch{
background:url(<%= asset_path 'switch.png' %>) no-repeat left 3px;
width:40px;
}
#main .disable a.switch{
background:url(<%= asset_path 'switch.png' %>) no-repeat left bottom;
}
#main .action a.show:hover{
background-position:left -19px;
}
#main .action a.edit:hover{
background-position:-19px -19px;
}
#main .action a.delete:hover{
background-position:-38px -19px;
}
#main .list_item .roles {
background-image:url(<%= asset_path 'roles_type.jpg' %>);
background-repeat:repeat-x;
border-radius: 5px 0 0 5px;
-moz-border-radius: 5px 0 0 5px;
-webkit-border-radius: 5px 0 0 5px;
}
#roles_list .roles_block .action a{
margin-top:0;
margin-right:0;
}
.student {
background-position:0 -5px;
}
.teacher {
background-position:0 -54px;
}
#add_new a {
background-position:-54px -17px;
}
#add_new a:hover {
background-position: -54px 3px;
}
.buttom {
float:right;
}
#confirm a{
background-position:4px -70px;
}
#confirm a:hover{
background-position: 4px -51px;
}
#create a{
background-image: none;
padding: 0 10px;
}
#update a{
background-position:4px -112px;
}
#update a:hover{
background-position:4px -89px;
}
#back a{
background-position:4px -156px;
}
#back a:hover{
background-position:4px -133px;
}
.buttom a {
margin:0 0 20px 10px;
background-image:url(<%= asset_path 'icon.png' %>);
background-repeat:no-repeat;
font-size:12px;
color:#FFF;
display:inline-block;
padding:0 10px 0 25px;
background-color: rgba(0, 0, 0, 0.75);
line-height:24px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 3px 0px 4px #180902; /* Firefox */
-webkit-box-shadow: 3px 0px 4px #180902;/* Safari 和 Chrome */
box-shadow: 3px 0px 4px #180902; /* Opera 10.5 + */
}
.buttom a:hover {
color:#000;
font-weight:bold;
background-color: rgba(255, 255, 255, 1);
}
#porfile{
padding-top:100px;
}
#porfile h2 {
color: #FFFFFF;
font-weight: normal;
margin: 0;
padding: 0;
text-shadow: 0 3px 2px #000000;
position:absolute;
top:-30px;
}
#porfile .user_mail {
text-align: center;
background:url(<%= asset_path 'upload_but.png' %>) repeat-x left top;
border:none;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
padding:3px 10px 1px;
margin-top:10px;
width:110px;
height: 21px;
font-size: 12px;
color:#666666;
text-shadow: 0 1px 0 #FFFFFF;
}
#porfile label {
display:block;
text-shadow: 0 1px 0 #FFFFFF;
background:url(<%= asset_path 'upload_but.png' %>) repeat-x left top;
height: 25px;
width:110px;
padding: 0 0 0 18px;
border:1px solid #d8d8d8;
margin-top:10px;
color:#666666;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
#porfile label:hover{
background-position:left bottom;
color:#000;
border:1px solid #a6a6a6;
}
#porfile label input {
border:none;
margin: 6px 15px 0 0;
float:left;
}
#porfile label span {
display:block;
float:left;
line-height:27px;
font-size:12px;
}
.roles_block {
min-width:710px;
margin-bottom:50px;
position:relative;
padding-bottom: 20px;
background:url(<%= asset_path '75.png' %>) repeat left top;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0px 0px 4px #180902; /* Firefox */
-webkit-box-shadow: 0px 0px 4px #180902;/* Safari 和 Chrome */
box-shadow: 0px 0px 4px #180902; /* Opera 10.5 + */
}
#user_list .roles_block {
margin-left:180px;
}
#person {
text-align:center;
left: 265px;
position: fixed;
top: 75px;
}
#person img {
background-color:#FFF;
padding:5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0px 0px 4px #180902; /* Firefox */
-webkit-box-shadow: 0px 0px 4px #180902;/* Safari 和 Chrome */
box-shadow: 0px 0px 4px #180902; /* Opera 10.5 + */
}
#person .mail {
color: #FFFFFF;
font-size: 12px;
text-shadow:0px 1px 0px #333;
font-weight:bold;
background:url(<%= asset_path 'line.png' %>) repeat-x left top;
padding-top:10px;
}
#upload, #edit{
margin: 0 auto;
display:block;
text-shadow: 0 1px 0 #FFFFFF;
background:url(<%= asset_path 'upload_but.png' %>) repeat-x left top;
height: 25px;
line-height:27px;
color:#666666;
width:128px;
text-align:center;
font-size:12px;
border:1px solid #d8d8d8;
margin-top:10px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
#upload:hover{
background-position:left bottom;
color:#000;
border:1px solid #a6a6a6;
}
#main hr{
height:8px;
border:none;
margin:0;
border-radius: 5px 5px 0px 0px;
-moz-border-radius: 5px 5px 0px 0px;
-webkit-border-radius: 5px 5px 0px 0px;
border-bottom:1px solid #000;
}
#basic_block hr{
background-color:#666666;
}
#teacher_block hr{
background-color:#0071a9;
}
#student_block hr{
background-color:#af0045;
}
.info_input {
padding:10px 20px;
}
.info_input table {
color:#fff;
width:100%;
font-size:14px;
}
.info_input table td {
padding:5px 10px 5px 0;
width: 10%;
}
.info_input .list_head {
background:url(<%= asset_path 'line.png' %>) left bottom repeat-x;
}
.info_input .list_head td {
}
.info_input .list_item {
color:#AEAEAE;
}
.info_input .add {
display:block;
padding-left:22px;
font-size:12px;
line-height:21px;
height:19px;
background:url(<%= asset_path 'icon.png' %>) no-repeat -59px 0;
margin-top: 10px;
color: #DDDDDD;
}
.info_input .add:hover {
color:#FFF;
background-position:-59px -19px;
}
.info_input li {
height:30px;
margin-bottom: 5px;
}
.info_input li span {
display:inline-block;
float:left;
color:#fff;
font-size:14px;
line-height:30px;
margin-right:10px;
}
#user_list .info_input li span {
width: 25%;
}
#roles_list .info_input li span {
width:15%;
}
.info_input li span:last-child {
}
#person select {
background:url(<%= asset_path 'upload_but.png' %>) repeat-x left top;
border:1px solid #d8d8d8;
margin-top: 10px;
width: 130px;
padding:3px 6px 3px 14px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border:none;
}

View File

@ -0,0 +1,11 @@
.error{
color:red;
}
.notice, .message{
color:green;
}
.warning{
color:orange;
}

View File

@ -1,305 +0,0 @@
body{
background:url(<%= asset_path 'wood_floor.jpg' %>) fixed center 0;
/*background:url(images/jobs.jpg) fixed center bottom;*/
-moz-background-size:cover;
background-size:cover;
color: #000000;
margin: 0;
padding: 0;
}
#hmenu{
background:url(<%= asset_path 'orbitbar1.png' %>) repeat-x 0 0;
height: 50px;
position:fixed;
top:0;
left:0;
width:100%;
z-index: 5;
}
#orbit_icon {
margin-left: 10px;
}
#orbit_icon a {
background:url(<%= asset_path 'bar_orbit.png' %>) no-repeat scroll left top transparent;
height: 43px;
width: 41px;
display:block;
text-indent:-9999px;
}
#orbit_icon a:hover {
background:url(<%= asset_path 'bar_orbit.png' %>) no-repeat scroll left 50% transparent;
}
#hmenu #left{
left: 51px;
position: absolute;
top: 1px;
}
#hmenu #left a{
border-left: 1px solid #000000;
border-right: 1px solid #7F8488;
color: #FFFFFF;
display: block;
font-size: 17px;
height: 40px;
line-height: 40px;
padding: 0 10px;
text-align: center;
text-decoration: none;
}
#hmenu #left a:hover{
background:#000;
color: #FFFFFF;
}
#hmenu #right{
position: absolute;
right: 10px;
top: 1px;
width: 393px;
}
#hmenu #right a{
border-left: 1px solid #7F8488;
border-right: 1px solid #7F8488;
color: #FFFFFF;
display: block;
font-size: 17px;
height: 40px;
line-height: 40px;
padding: 0 10px;
text-align: center;
text-decoration: none;
width: 65px;
}
#hmenu #right a:hover{
background:#000;
color: #FFFFFF;
}
#hmenu form{
left: 27px;
position: absolute;
top: 8px;
}
#login_id{
background:url(<%= asset_path 'bar_id.png' %>) no-repeat scroll 0 0 transparent;
border: medium none;
color: #818181;
font-family: arial,sans-serif;
height: 26px;
left: 70px;
position: absolute;
top: 0;
width: 119px;
}
#login_id input {
background: none repeat scroll 0 0 transparent;
border: medium none;
font-family: arial,sans-serif;
height: 15px;
left: 21px;
position: absolute;
top: 4px;
width: 92px;
}
#login_pw {
background:url(<%= asset_path 'bar_pw.png' %>) no-repeat scroll 0 0 transparent;
border: medium none;
color: #818181;
font-family: arial,sans-serif;
height: 26px;
left: 193px;
position: absolute;
top: 0;
width: 119px;
}
#login_pw input {
background: none repeat scroll 0 0 transparent;
border: medium none;
font-family: arial,sans-serif;
height: 15px;
left: 21px;
position: absolute;
top: 4px;
width: 92px;
}
#login_btn input {
background:url(<%= asset_path 'bar_btn.png' %>) no-repeat scroll 0 0 transparent;
border: medium none;
color: #FFFFFF;
cursor: pointer;
font-family: arial,sans-serif;
height: 26px;
left: 316px;
margin: 0;
padding: 0 0 2px;
position: absolute;
top: 0;
width: 50px;
}
#log_out a{
background:url(<%= asset_path 'service_btn.png' %>) no-repeat scroll right 0 transparent;
border: medium none !important;
display: block !important;
height: 40px !important;
line-height: normal !important;
padding: 0 !important;
position: absolute;
/* right: -9px;*/
text-indent: -10000px;
top: 0px;
width: 43px !important;
}
#log_out a:hover{
background:url(<%= asset_path 'service_btn.png' %>) no-repeat scroll right bottom transparent !important;
}
#hmenu #right select{
font-family: helvetica,arial,sans-serif;
left: 97px;
position: absolute;
top: 10px;
width: 120px;
}
.content{
padding: 10px;
}
#user_info{
background: none repeat scroll 0 0 #FEFEFE;
border: 1px solid #818181;
border-radius: 5px 5px 5px 5px;
margin: 0 0 20px;
padding: 10px;
width: 250px;
}
#user_info table{
border-collapse: collapse;
width: 100%;
}
#user_info table td{
padding: 3px;
}
#sites_info{
background: -webkit-gradient(linear, left top, left bottom, from(white), to(#F8F8F8));
border: 1px solid #818181;
border-radius: 5px 5px 5px 5px;
float: left;
margin: 0 20px 20px 0;
width: 30%;
min-width: 320px;
}
#sites_info h3{
background: none repeat scroll 0 0 #EEEEEE;
border: 1px solid #DDDDDD;
border-radius: 5px 5px 5px 5px;
font: 24px/100% helvetica,arial,sans-serif;
margin: 2% 2% 0;
padding: 1%;
}
#sites_info table{
background: none repeat scroll 0 0 #fff;
border: 1px solid #DDDDDD;
border-radius: 5px 5px 5px 5px;
margin: 2%;
width: 96%;
}
#sites_info table td{
padding: 10px 5px;
}
#sites_info table th{
border-right: 1px solid #DDDDDD;
color: #808080;
font-size: 18px;
font-weight: normal;
padding: 10px 5px;
text-align: right;
width: 20%;
}
#purchases{
background: -webkit-gradient(linear, left top, left bottom, from(white), to(#F8F8F8));
border: 1px solid #818181;
border-radius: 5px 5px 5px 5px;
float: left;
width: 30%;
min-width: 320px;
}
#purchases h3{
background: none repeat scroll 0 0 #EEEEEE;
border: 1px solid #DDDDDD;
border-radius: 5px 5px 5px 5px;
font: 24px/100% helvetica,arial,sans-serif;
margin: 2% 2% 0;
padding: 1%;
}
#purchases table{
background: none repeat scroll 0 0 #fff;
border: 1px solid #DDDDDD;
border-radius: 5px 5px 5px 5px;
margin: 2%;
width: 96%;
}
#purchases table th{
border-right: 1px solid #DDDDDD;
color: #808080;
font-size: 18px;
font-weight: normal;
padding: 10px 5px;
text-align: right;
width: 20%;
}
#purchases table td{
padding: 10px 5px;
}
.design_page{
}
.style_list{
background:url(<%= asset_path 'preview.png' %>) no-repeat 0 0;
height:246px;
margin: 20px 0;
padding: 0 0 0 236px;
}
.style_list ul{
margin:0;
padding:0;
}
.style_list li{
color: #EDA330;
font-size: 20px;
list-style: none outside none;
margin: 0 0 20px;
}
.list_title{
color: #818181;
display: block;
font: 24px/100% ·L³n¥¿¶ÂÅé,sans-serif;
}
.buy_btn a{
background:url(<%= asset_path "buy_btn.png" %>) no-repeat scroll 0 0 transparent;
color: #000000;
display: block;
font-size: 22px;
height: 37px;
line-height: 37px;
text-align: center;
text-decoration: none;
text-shadow: 0 1px 0 #FFFFFF;
width: 170px;
}
.buy_btn a:hover{
background-position:0 bottom;
}
.bought_btn{
background:url(<%= asset_path "bought_btn.png" %>) no-repeat scroll 0 0 transparent;
color: #FFFFFF;
font-size: 22px;
height: 37px;
line-height: 37px;
text-align: center;
text-shadow: 0 1px 0 #C06408;
width: 170px;
}

View File

@ -1,4 +1,3 @@
html, body{
height: 100%;
margin: 0;

View File

@ -0,0 +1,8 @@
/*
*This is a manifest file that'll automatically include all the stylesheets available in this directory
*and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
*the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require message
*= require site_edition
*/

View File

@ -1,6 +1,6 @@
class Admin::ItemsController < ApplicationController
layout "content"
layout "site_editor"
before_filter :authenticate_user!
before_filter :find_parent_item

View File

@ -1,6 +1,6 @@
class Admin::LinksController < ApplicationController
layout "content"
layout "site_editor"
before_filter :authenticate_user!
before_filter :find_parent_item

View File

@ -1,6 +1,6 @@
class Admin::PagePartsController < ApplicationController
layout "content"
layout "site_editor"
before_filter :authenticate_user!
before_filter :is_admin?

View File

@ -1,6 +1,6 @@
class Admin::PagesController < ApplicationController
layout "content"
layout "site_editor"
before_filter :authenticate_user!
before_filter :find_parent_item

View File

@ -1,6 +1,6 @@
class Admin::UserAttributesController < ApplicationController
layout "member"
layout "admin"
before_filter :authenticate_user!
def index

View File

@ -1,6 +1,6 @@
class Admin::UserInfoModelsController < ApplicationController
layout "member"
layout "admin"
before_filter :authenticate_user!
before_filter :is_admin?
before_filter :set_attribute, :only => [:index, :show, :new, :edit]

View File

@ -1,6 +1,6 @@
class Admin::UserRoleModelsController < ApplicationController
layout "member"
layout "admin"
before_filter :authenticate_user!
before_filter :is_admin?
before_filter :set_attribute, :only => [:index, :show, :new, :edit]

View File

@ -1,6 +1,6 @@
class Admin::UsersController < ApplicationController
layout "member"
layout "admin"
before_filter :authenticate_user!
def index

View File

@ -1,5 +1,8 @@
<% content_for :page_specific_css do %>
<%= stylesheet_link_tag "design_temp" %>
<%= stylesheet_link_tag "design" %>
<% end %>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "design" %>
<% end %>
<p>

View File

@ -1,5 +1,3 @@
<% content_for :body_id do %><%= "#{@attribute}s_list" %><% end -%>
<div id="porfile">
<%= form_for @user_attribute_model, :url => eval("admin_user_#{@attribute}_model_path(@user_role_model)") do |f| %>
<%= f.error_messages %>

View File

@ -1,5 +1,3 @@
<% content_for :body_id do %><%= "#{@attribute}s_list" %><% end -%>
<div class="main_list">
<div id="add_new" class="buttom clear">
<%= link_to t("admin.new_user_#{@attribute}"), eval("new_admin_user_#{@attribute}_model_path") %>

View File

@ -1,5 +1,3 @@
<% content_for :body_id do %><%= "#{@attribute}s_list" %><% end -%>
<div id="porfile">
<%= form_for @user_attribute_model, :url => eval("admin_user_#{@attribute}_models_path") do |f| %>
<%= f.error_messages %>

View File

@ -4,9 +4,8 @@
<% else %>
<%= image_tag "person.png" %>
<% end %>
<%#= file_field_tag 'file' %>
<%#= hidden_field_tag :avatar_cache %>
<a id="upload" href="#"><%= t('admin.choose_file') %></a>
<%= file_field_tag 'file' %>
<%= hidden_field_tag :avatar_cache %>
<%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t('admin.email')};}", :value => (@user.email.blank? ? t('admin.email') : @user.email), :class => 'user_mail' %>
<label>
<%= f.check_box :admin %><span><%= t('admin.admin') %></span>

View File

@ -1,5 +1,3 @@
<% content_for :body_id do %>user_list<% end -%>
<div id="porfile">
<%= form_for @user, :url => admin_user_path(@user), :html => { :multipart => true } do |f| %>
<%= f.error_messages %>

View File

@ -1,5 +1,3 @@
<% content_for :body_id do %>user_list<% end -%>
<div class="main_list">
<%= flash_messages %>
<div id="add_new" class="buttom clear">

View File

@ -1,5 +1,3 @@
<% content_for :body_id do %>user_list<% end -%>
<div id="porfile">
<%= form_for @user, :url => admin_users_path, :html => { :multipart => true } do |f| %>
<%= f.error_messages %>

View File

@ -1,5 +1,3 @@
<% content_for :body_id do %>user_list<% end -%>
<div id="porfile">
<div id="person">

View File

@ -1,57 +1,36 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>R4</title>
<title><%= @title || APP_CONFIG['orbit'] %></title>
<link rel="shortcut icon" href="/favicon.ico">
<%= yield :page_specific_link %>
<%= stylesheet_link_tag "admin", :media => "screen, projection" %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= stylesheet_link_tag "admin" %>
<%= javascript_include_tag "admin" %>
<%= yield :page_specific_css %>
<%= yield :page_specific_javascript %>
<%= csrf_meta_tag %>
</head>
<body>
<div id="panel_banner_link" >
<div id="orbit">
<%= render 'layouts/drop_down_menu' %>
</div>
<div id="orbit"><%= render 'layouts/drop_down_menu' %></div>
<div class="hmenu">
<div class="lang">
<%= render 'layouts/lang_menu' %>
</div>
<div class="lang"><%= render 'layouts/lang_menu' %></div>
<%= render 'devise/menu/login_items' %>
</div>
</div>
<div id="panel_container">
<div id="panel_content">
<div class="secondary">
<div class="secondary2">
<%= yield :secondary %>
</div>
<div class="secondary2"><%= yield :secondary %></div>
</div>
<div class="main">
<div class="main2">
<%= yield %>
</div>
<div class="main2"><%= yield %></div>
</div>
<div class="tertiary"><%= yield :tertiary %></div>
</div>
<div id="panel_footer">
<p>Rulingcom</p>
</div>
<div id="panel_footer"><p><%= APP_CONFIG['ruling_digital'] %></p></div>
</div>
<%= yield :page_specific_javascript %>
</body>
</html>

View File

@ -1,48 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%= @title || 'R4 rescue title' %></title>
<link rel="shortcut icon" href="/favicon.ico">
<%= yield :page_specific_link %>
<%= stylesheet_link_tag "content", :media => "screen, projection" %>
<%#= javascript_include_tag :ckeditor %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%#= javascript_include_tag "jquery", "jquery-ui", "rails", "easy", "application", :cache => 'all' %>
<%= yield :page_specific_javascript %>
<!--[if IE]>
<%= stylesheet_link_tag "ie", :media => "screen, projection" %>
<![endif]-->
<%= yield :page_specific_css %>
<%= csrf_meta_tag %>
</head>
<body>
<div id="panel_banner_link" >
<div id="orbit">
<%= render 'layouts/drop_down_menu' %>
</div>
<div class="hmenu">
<div class="lang">
<%= render 'layouts/lang_menu' %>
</div>
<%= render 'devise/menu/login_items' %>
</div>
</div>
<div id="panel_container">
<div id="panel_content">
<div id="panel_sidebar2"><div id="panel_sidebar"><%= yield :sidebar %></div></div>
<div id="panel_main2"><div id="panel_main"><%= yield %></div></div>
</div>
<div id="panel_footer"><%= yield :footer %></div>
</div>
</body>
</html>

View File

@ -1,52 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>R4</title>
<link rel="shortcut icon" href="/favicon.ico">
<%= yield :page_specific_link %>
<%= stylesheet_link_tag 'admin', "member", 'messy', :media => "screen, projection" %>
<%#= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= yield :page_specific_css %>
<%= csrf_meta_tag %>
</head>
<body id="<%= yield :body_id %>">
<div id="content">
<div id="hmenu">
<div id="orbit">
<%= render 'layouts/drop_down_menu' %>
</div>
<div class="hmenu">
<div class="lang">
<%= render 'layouts/lang_menu' %>
</div>
<%= render 'devise/menu/login_items' %>
</div>
</div>
<div id="sidebar">
<div id="search">
<input id="user_search" name="user[username]" size="30" type="text" />
</div>
<div class="member_setup">
<h1><%= t('admin.setup_member') %></h1>
<ul class="list">
<li class="set_1"><%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %></li>
<li class="set_2"><%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %></li>
<li class="set_3"><%= link_to content_tag(:span, t('admin.list_user_infos')), admin_user_info_models_path %></li>
</ul>
</div>
</div>
<div id="main">
<%= yield %>
</div>
</div>
<%= yield :page_specific_javascript %>
</body>
</html>

View File

@ -0,0 +1,36 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%= @title || APP_CONFIG['orbit'] %></title>
<link rel="shortcut icon" href="/favicon.ico">
<%= stylesheet_link_tag "site_editor" %>
<%= javascript_include_tag "site_editor" %>
<%= yield :page_specific_css %>
<%= yield :page_specific_javascript %>
<%= csrf_meta_tag %>
</head>
<body>
<div id="panel_banner_link" >
<div id="orbit"><%= render 'layouts/drop_down_menu' %></div>
<div class="hmenu">
<div class="lang"><%= render 'layouts/lang_menu' %></div>
<%= render 'devise/menu/login_items' %>
</div>
</div>
<div id="panel_container">
<div id="panel_content">
<div id="panel_sidebar2">
<div id="panel_sidebar"><%= yield :sidebar %></div>
</div>
<div id="panel_main2">
<div id="panel_main"><%= yield %></div>
</div>
</div>
<div id="panel_footer"><%= yield :footer %></div>
</div>
</body>
</html>

View File

@ -1,6 +1,8 @@
defaults: &defaults
main_public_key: 'lib/main_public_key.pem'
store_ip: 'localhost:3001'
orbit: 'Orbit'
ruling_digital: 'RulingDigital'
development:
<<: *defaults