From e7c9816139709a97d398ccca7b17487eb90a3329 Mon Sep 17 00:00:00 2001 From: chris2tof Date: Thu, 22 Dec 2011 01:38:27 +0800 Subject: [PATCH] Move NewBlog to built_in_modules and delete "vendor/templates" --- app/assets/javascripts/rss.js | 513 ++++++++++++++++++ app/views/admin/designs/_new.html.erb | 10 + app/views/admin/designs/new.js.erb | 1 + .../NewBlog/.gitignore | 0 .../NewBlog/Gemfile | 0 .../NewBlog/Gemfile.lock | 0 .../NewBlog/MIT-LICENSE | 0 .../NewBlog/NewBlog.gemspec | 0 .../NewBlog/NewBlog.json | 0 .../NewBlog/README.rdoc | 0 .../NewBlog/Rakefile | 0 .../app/assets/images/NewBlog/.gitkeep | 0 .../app/assets/javascripts/NewBlog/.gitkeep | 0 .../app/assets/stylesheets/NewBlog/.gitkeep | 0 .../stylesheets/NewBlog/application.css | 0 .../assets/stylesheets/NewBlog/production.css | 0 .../NewBlog/app/controllers/.gitkeep | 0 .../app/controllers/application_controller.rb | 0 .../panel/blog/back_end/posts_controller.rb | 0 .../blog/front_end/comments_controller.rb | 0 .../panel/blog/front_end/posts_controller.rb | 0 .../panel/blog/widget/posts_controller.rb | 0 .../NewBlog/app/helpers/.gitkeep | 0 .../NewBlog/app/helpers/application_helper.rb | 0 .../NewBlog/app/mailers/.gitkeep | 0 .../NewBlog/app/models/.gitkeep | 0 .../NewBlog/app/models/comment.rb | 0 .../NewBlog/app/models/post.rb | 0 .../NewBlog/app/views/.gitkeep | 0 .../app/views/layouts/application.html.erb | 0 .../app/views/layouts/edit_view.html.erb | 0 .../app/views/layouts/production.html.erb | 0 .../panel/blog/back_end/posts/_form.html.erb | 0 .../panel/blog/back_end/posts/edit.html.erb | 0 .../panel/blog/back_end/posts/index.html.erb | 0 .../blog/back_end/posts/latest_post.html.erb | 0 .../panel/blog/back_end/posts/new.html.erb | 0 .../panel/blog/back_end/posts/show.html.erb | 0 .../front_end/posts/_post_frontend.html.erb | 0 .../panel/blog/front_end/posts/index.html.erb | 0 .../panel/blog/front_end/posts/show.html.erb | 0 .../panel/blog/widget/posts/index.html.erb | 0 .../blog/widget/posts/latest_post.html.erb | 0 .../NewBlog/config/locales/en.yml | 0 .../NewBlog/config/locales/zh_tw.yml | 0 .../NewBlog/config/routes.rb | 0 .../NewBlog/lib/NewBlog.rb | 0 .../NewBlog/lib/NewBlog/engine.rb | 0 .../NewBlog/lib/NewBlog/version.rb | 0 .../NewBlog/lib/tasks/NewBlog_tasks.rake | 0 .../NewBlog/script/rails | 0 .../NewBlog/test/NewBlog_test.rb | 0 .../NewBlog/test/dummy/Rakefile | 0 .../app/assets/javascripts/application.js | 0 .../app/assets/stylesheets/application.css | 0 .../app/controllers/application_controller.rb | 0 .../dummy/app/helpers/application_helper.rb | 0 .../NewBlog/test/dummy/app/mailers/.gitkeep | 0 .../NewBlog/test/dummy/app/models/.gitkeep | 0 .../app/views/layouts/application.html.erb | 0 .../NewBlog/test/dummy/config.ru | 0 .../NewBlog/test/dummy/config/application.rb | 0 .../NewBlog/test/dummy/config/boot.rb | 0 .../NewBlog/test/dummy/config/database.yml | 0 .../NewBlog/test/dummy/config/environment.rb | 0 .../dummy/config/environments/development.rb | 0 .../dummy/config/environments/production.rb | 0 .../test/dummy/config/environments/test.rb | 0 .../initializers/backtrace_silencers.rb | 0 .../dummy/config/initializers/inflections.rb | 0 .../dummy/config/initializers/mime_types.rb | 0 .../dummy/config/initializers/secret_token.rb | 0 .../config/initializers/session_store.rb | 0 .../config/initializers/wrap_parameters.rb | 0 .../NewBlog/test/dummy/config/locales/en.yml | 0 .../NewBlog/test/dummy/config/mongoid.yml | 0 .../NewBlog/test/dummy/config/routes.rb | 0 .../NewBlog/test/dummy/lib/assets/.gitkeep | 0 .../NewBlog/test/dummy/log/.gitkeep | 0 .../NewBlog/test/dummy/public/404.html | 0 .../NewBlog/test/dummy/public/422.html | 0 .../NewBlog/test/dummy/public/500.html | 0 .../NewBlog/test/dummy/public/favicon.ico | 0 .../NewBlog/test/dummy/script/rails | 0 .../test/integration/navigation_test.rb | 0 .../NewBlog/test/test_helper.rb | 0 .../templates/sunrise/stylesheets/sunrise.css | 3 - 87 files changed, 524 insertions(+), 3 deletions(-) create mode 100644 app/assets/javascripts/rss.js create mode 100644 app/views/admin/designs/_new.html.erb create mode 100644 app/views/admin/designs/new.js.erb rename vendor/{plugins => built_in_modules}/NewBlog/.gitignore (100%) rename vendor/{plugins => built_in_modules}/NewBlog/Gemfile (100%) rename vendor/{plugins => built_in_modules}/NewBlog/Gemfile.lock (100%) rename vendor/{plugins => built_in_modules}/NewBlog/MIT-LICENSE (100%) rename vendor/{plugins => built_in_modules}/NewBlog/NewBlog.gemspec (100%) rename vendor/{plugins => built_in_modules}/NewBlog/NewBlog.json (100%) rename vendor/{plugins => built_in_modules}/NewBlog/README.rdoc (100%) rename vendor/{plugins => built_in_modules}/NewBlog/Rakefile (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/assets/images/NewBlog/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/assets/javascripts/NewBlog/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/assets/stylesheets/NewBlog/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/assets/stylesheets/NewBlog/application.css (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/assets/stylesheets/NewBlog/production.css (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/controllers/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/controllers/application_controller.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/controllers/panel/blog/widget/posts_controller.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/helpers/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/helpers/application_helper.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/mailers/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/models/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/models/comment.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/models/post.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/layouts/application.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/layouts/edit_view.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/layouts/production.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/back_end/posts/edit.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/back_end/posts/show.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/front_end/posts/_post_frontend.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/widget/posts/index.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/config/locales/en.yml (100%) rename vendor/{plugins => built_in_modules}/NewBlog/config/locales/zh_tw.yml (100%) rename vendor/{plugins => built_in_modules}/NewBlog/config/routes.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/lib/NewBlog.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/lib/NewBlog/engine.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/lib/NewBlog/version.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/lib/tasks/NewBlog_tasks.rake (100%) rename vendor/{plugins => built_in_modules}/NewBlog/script/rails (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/NewBlog_test.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/Rakefile (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/app/assets/javascripts/application.js (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/app/assets/stylesheets/application.css (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/app/controllers/application_controller.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/app/helpers/application_helper.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/app/mailers/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/app/models/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/app/views/layouts/application.html.erb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config.ru (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/application.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/boot.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/database.yml (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/environment.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/environments/development.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/environments/production.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/environments/test.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/initializers/backtrace_silencers.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/initializers/inflections.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/initializers/mime_types.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/initializers/secret_token.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/initializers/session_store.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/initializers/wrap_parameters.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/locales/en.yml (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/mongoid.yml (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/config/routes.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/lib/assets/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/log/.gitkeep (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/public/404.html (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/public/422.html (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/public/500.html (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/public/favicon.ico (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/dummy/script/rails (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/integration/navigation_test.rb (100%) rename vendor/{plugins => built_in_modules}/NewBlog/test/test_helper.rb (100%) delete mode 100644 vendor/templates/sunrise/stylesheets/sunrise.css diff --git a/app/assets/javascripts/rss.js b/app/assets/javascripts/rss.js new file mode 100644 index 00000000..36309900 --- /dev/null +++ b/app/assets/javascripts/rss.js @@ -0,0 +1,513 @@ +//Created by Harry Bomrah on Sep 21 2011 +$rss = jQuery.noConflict(); +var rcom={ +//Pass dom and will return binded dom with starting year till current +insertDatePanel : function(dom,year){ + if(!year)year=1901; + if(dom=="")return false; + domid=dom.attr("id"); + var dt = new Date(); + current_year=dt.getFullYear(); + var dthtml="Year: Date: Month: "; + dom.html(dthtml); +}, + +//loading overlay around a dom... +loadingWrapper : function(dom, display){ + if(display){ + dom.prepend("
"); + $rss("#loading_wrapper").height(dom.height()); + $rss("#loading_wrapper").width(dom.width()); + }else{ + domId=dom.attr("id"); + $rss("#"+domId+" #loading_wrapper").remove(); + } + }, + +//validating a dom.... +validate : function(dom, validation, errormsg){ + var domValue = dom.val(); + var error = false; + var regex=""; + var msg = ""; + switch(validation){ + case "required": + if(domValue=="")error=true; + msg="Cannot be empty."; + break; + case "email": + regex=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; + msg="Invalid Email Address."; + break; + case "number": + regex=/^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$/; + msg = "Only numbers are accepted."; + break; + case "alphanumeric": + regex=/^\s*[a-zA-Z0-9,\s]+\s*$/; + msg="Only numbers, alphabets and spaces are allowed."; + break; + } + domId=dom.attr("name"); + if(errormsg=="")errormsg=msg; + if(regex!="")if(!regex.test(domValue))error=true; + if(error){$rss("#"+domId+"_error").remove();dom.after(""+errormsg+"");return false;} else{ $rss("#"+domId+"_error").remove();return true;} + }, + +bindToSpinner : function(dom,data,callbackFn){ + var domId = dom.attr("id"); + var dhtml=""; + var spinnerValue=Array(); + var spinnerDisplay=Array(); + $rss.each(data,function(i,it){ + $rss.each(data[i],function(key,it){ + spinnerValue.push(it); + }); + }); + dhtml=""; + dom.html(dhtml); + if(typeof callbackFn=="function") + callbackFn.call(this, dhtml); + }, + + //binds the recieved json to a table +bindToTable : function(dom,data,headers,actions,css_class,callbackFn){ + if(!css_class)css_class=""; + var dhtml=""; + var domId = dom.attr("id"); + if(actions){ + var btnTitles=Array(); + var btnFunctions=Array(); + $rss.each(actions,function(title,func){ + btnTitles.push(title); + btnFunctions.push(func); + }); + rcom.translate(btnTitles,function(convertedData){ + btnTitles=convertedData.slice(); + + rcom.translate(headers,function(convertedData){ + headers=convertedData; + if(!data)return; + $rss.each(headers,function(i,head){ + dhtml+=""; + }); + dhtml+=""; + if(data.length==0)dhtml+=""; + $rss.each(data,function(i,item){ + var cl=""; + if(i%2!=0)cl="even"; + dhtml+=""; + $rss.each(item,function(i,it){ + if(i!="id"){ + if(it==null)it="Not Set"; + dhtml+=""; + } + }) + dhtml+=""; + dhtml+=""; + }); + dhtml+="
"+head+"
No Data
"+it+""; + for(x=0;x"+btnTitles[x]+""; + } + dhtml+="
"; + dom.html(dhtml); + }); + }); + }else{ + rcom.translate(headers,function(convertedData){ + headers=convertedData; + if(!data)return; + if(headers.length>0){ + $rss.each(headers,function(i,head){ + dhtml+=""+head+""; + }); + } + dhtml+=""; + if(data.length==0)dhtml+="No Data"; + + $rss.each(data,function(i,item){ + var cl=""; + if(i%2!=0)cl="even"; + dhtml+=""; + $rss.each(item,function(i,it){ + if(i!="id"){ + if(it==null)it="Not Set"; + dhtml+=""+it+""; + } + }) + dhtml+=""; + }); + dhtml+=""; + dom.html(dhtml); + }); + } + + if(typeof callbackFn=="function") + callbackFn.call(this, dhtml); +}, + //convert to date string which can be directly inserted in database or according to any format. +convertToInsertableDate : function(y,m,d,format){ + var dt=""; + if(m<10)m="0"+m; + if(d<10)d="0"+d; + switch(format){ + case "yyyy-mm-dd": + dt= y+"-"+m+"-"+d; + break; + case "dd-mm-yyyy": + dt= d+"-"+m+"-"+y; + break; + case "mm-dd-yyyy": + dt= m+"-"+d+"-"+y; + break; + default: + dt= y+"-"+m+"-"+d; + break; + } + return dt; + }, +//a fucntion to show specific divs and hide all other +showDoms : function(doms){ + $rss("body").find("div").each(function(){$rss(this).hide();}); + $rss.each(doms,function(i,dom){ + dom.show(); + }); + }, + +//a function to translate the word or array.. +translate : function(data,callbackFn){ + var cdata=""; + var status =true; + if(!data){ + if(typeof callbackFn=="function") + callbackFn.call(this,cdata); + status=false; + } + if(data==""){ + if(typeof callbackFn=="function") + callbackFn.call(this,cdata); + status=false; + } + if(status){ + $rss.getJSON("../../classes/translate.php", {fn:"translateThis",tData:data},function(convertedData){ + if(typeof callbackFn=="function") + callbackFn.call(this, convertedData); + }); + } + }, + +// a function to bind JSON to list +bindToList : function(dom,data,callbackFn){ + var domId = dom.attr("id"); + var dhtml=""; + var listValue=Array(); + var listDisplay=Array(); + $rss.each(data,function(i,it){ + $rss.each(data[i],function(key,it){ + listValue.push(it); + }); + }); + dhtml=""; + dom.html(dhtml); + if(typeof callbackFn=="function") + callbackFn.call(this,dhtml); + }, +makeDraggable : function(handler,dom){ + handler.css("position","absolute"); + dom.css("position","absolute"); + var puranix=0; + var nayeex=0; + var puraniy=0; + var nayeey=0; + var offset=""; + var zIndex=dom.css("z-index"); + handler.mousedown(function(e){ + puranix=e.clientX; + puraniy=e.clientY; + offset=dom.offset(); + $rss(this).mousemove(function(e){ + nayeex=e.clientX-puranix; + nayeex+=offset.left; + nayeey=e.clientY-puraniy; + nayeey+=offset.top; + dom.css({"left":nayeex+"px","top":nayeey+"px","z-index":"9999"}); + }) + }).mouseup(function(){ + $rss(this).unbind("mousemove"); + dom.css("z-index",zIndex); + }) + }, + +//automatically scrolls to the bottom of the div +scrollToBottom : function(dom){ + var domId = dom.attr("id"); +// var domScrollHeight = document.getElementById(domId).scrollHeight; + var obj = document.getElementById(domId); + + if((obj.scrollTop+100) >= (obj.scrollHeight - obj.offsetHeight)) + dom.scrollTop(obj.scrollHeight); + }, + +/*ajax loading of images... needs following settings +dom:in which images ve to be loaded +url:the server url for making ajax calls +limit:how many images to load +divClass:the class of div surrounding each image +nameClass:class for span showing name +fn:function to be called in on the server +imageSrc:the image source of all the images. +bindTo:to bind images to a onclick function or else will be binded to normal a tag. +urlKey:to specify the key of the value.. if bindTo is used, this will be neglected.. +returns json; +*/ +loadImages : function(settings,callbackFn){ + + var dom = settings.dom; + var domid= dom.attr("id"); + var temp_array=Array(); + var starting = $rss("#"+domid+" img:last").attr("id"); + if(typeof starting != 'undefined'){ + starting = starting.substr(4,starting.length-1); + }else{starting = 0}; + var temp_var=""; + var json = ""; + var dhtml=""; + var extraparam=""; + if(typeof settings.extraParam != "undefined"){ + extraparam = settings.extraParam; + } + $rss.getJSON(settings.url,{fn:settings.fn,id:settings.whereId,limit:settings.limit,start:starting,extra:extraparam},function(images){ + json = eval(images); + $rss.each(images,function(i,pic){ + var temp_array=Array(); + var a_var=Array(); + var name_var=""; + var title=""; + $rss.each(pic,function(i,value){ + temp_array.push(value); + }) + if(temp_array.length>=4){ + name_var=""+temp_array[3]+"" + } + if(temp_array[2]==null) + title = ""; + else + title = temp_array[2]; + if(typeof settings.bindTo!="undefined"){ + a_var[1]="onclick='"+settings.bindTo+"("+temp_array[0]+");return false;'"; + a_var[0]=""; + }else{a_var[0]='?'+settings.urlKey+'='+temp_array[0];a_var[1]="";} + dhtml="
"+name_var; + dom.delay(100).append(dhtml); + $rss("#pic_"+pic.id).delay(100).fadeIn(200); + + }) + if(typeof callbackFn=="function") + callbackFn.call(this,json); + }) + + + }, + +//function to get url variables... +getUrlVars : function(){ + var vars = [], hash; + var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); + for(var i = 0; i < hashes.length; i++){ + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; +}, +/*function to open a modalwindow on a page.. self reliant no images, no css needed. +settings + +width:in percentage or pixcel +height:in percentage or pixcel +closeBtn:true or false +envClose:closing through background click, true or flase +loadDiv:load html from a div +loadPage:load a page +loadHtml: load html + +*/ +modalWindow : function(settings,callbackFn){ + + var envClose = settings.envClose; + var dhtml=""; + if(typeof envClose == "undefined") + envClose = true; + var closeBtn = settings.closeBtn; + if(typeof closeBtn == "undefined") + closeBtn = true; + + var rgmaskHeight = $rss(window).height(); + var rgmaskWidth = $rss(window).width(); + var tempheight = settings.height; + var tempwidth = settings.width; + + if(typeof tempheight!="undefined"){ + if(tempheight.charAt(tempheight.length-1)=='%') + tempheight=(rgmaskHeight*parseInt(tempheight.substr(0,tempheight.length)))/100; + }else{tempheight="auto";} + + if(typeof tempwidth!="undefined"){ + if(tempwidth.charAt(tempwidth.length-1)=='%') + tempwidth=(rgmaskWidth*parseInt(tempwidth.substr(0,tempwidth.length)))/100; + }else{tempwidth="auto";} + + $rss("body").append('
'); + $rss("#rgsheath").css({background: "#000", width: "100%", position: "fixed", top: 0, left: 0,opacity:0.9,'z-index':199}); + $rss("body").append('
'); + $rss("#rgWindow").css({"position": "fixed", "z-index": "999", "background": "#fff", "border": "solid 3px #ccc", "padding": "20px", "overflow": "hidden", "border-radius": "12px", "-webkit-border-radius": "12px", "-moz-border-radius": "12px", "-ms-border-radius": "12px", "box-shadow": "0 0 20px rgba(0,0,0,0.9)","-webkit-box-shadow": "0 0 20px rgba(0,0,0,0.9)","-moz-box-shadow": "0 0 20px rgba(0,0,0,0.9)","-ms-box-shadow": "0 0 20px rgba(0,0,0,0.9)"}); + var rgWTop = (rgmaskHeight-20)/2; + var rgWLeft = (rgmaskWidth-20)/2; + $rss("#rgWindow").css({top:rgWTop+"px", left:rgWLeft+"px"}); + if(typeof settings.loadDiv!="undefined"){ + dhtml = $rss("#"+settings.loadDiv).html(); + $rss("#rgWindow").html(dhtml).hide(); + prepareWindow(); + } + if(typeof settings.loadHtml!="undefined"){ + dhtml = settings.loadHtml; + $rss("#rgWindow").html(dhtml).hide(); + prepareWindow(); + } + if(typeof settings.loadPage!="undefined"){ + $rss("#rgWindow").load(settings.loadPage,function(){$rss(this).hide();dhtml=$rss(this).html();prepareWindow();}); + } + function prepareWindow(){ + if(tempheight!="auto") + rgWTop = (rgmaskHeight-tempheight)/2; + else{ + tempheight=$rss("#rgWindow").height(); + rgWTop=(rgmaskHeight-tempheight)/2; + } + if(tempwidth!="auto") + rgWLeft = (rgmaskWidth-tempwidth)/2; + else{ + tempwidth=$rss("#rgWindow").width(); + rgWLeft=(rgmaskWidth-tempwidth)/2; + } + $rss("#rgWindow").empty().show(); + var closebtn = ""; + if(closeBtn) + closebtn='X'; + $rss("#rgWindow").animate({"width":tempwidth+"px","height":tempheight+"px",top:rgWTop+"px", left:rgWLeft+"px"},500,function(){$rss("#rgWindow").html(closebtn+"
"+dhtml+"
"); + $rss("#close_modal").mouseover(function(){$rss(this).css("color","#999");}).mouseout(function(){$rss(this).css("color","#666");}) + $rss("#close_modal").click(function(){ + $rss("#rgWindow").empty(); + var x = (rgmaskHeight-20)/2; + var y = (rgmaskWidth-20)/2; + $rss("#rgWindow").animate({top:x+"px", left:y+"px","width":"50px","height":"50px"},300,function(){$rss(this).fadeOut(100).remove();$rss("#rgsheath").fadeOut(500).remove();}); + return false; + }) + if(envClose) + $rss("#rgsheath").click(function(){ + $rss("#rgWindow").empty(); + var x = (rgmaskHeight-20)/2; + var y = (rgmaskWidth-20)/2; + $rss("#rgWindow").animate({top:x+"px", left:y+"px","width":"50px","height":"50px"},300,function(){$rss(this).fadeOut(100).remove();$rss("#rgsheath").fadeOut(500).remove();});}) + + if(typeof callbackFn=="function") + callbackFn.call(this,dhtml); + }); + } +}, +modalWindowClose : function(callbackFn){ + if($rss("#rgWindow").length>0){ + $rss("#rgWindow").empty(); + var rgmaskHeight = $rss(window).height(); + var rgmaskWidth = $rss(window).width(); + var x = (rgmaskHeight-20)/2; + var y = (rgmaskWidth-20)/2 + $rss("#rgWindow").animate({top:x+"px", left:y+"px","width":"50px","height":"50px"},300,function(){$rss(this).fadeOut(100).remove();$rss("#rgsheath").fadeOut(500).remove();}) + } + if(typeof callbackFn=="function") + callbackFn.call(this,"harry"); +}, +bindDomToHead : function(dom){ + var gc = dom.css("background"); + var t = dom.offset(); + var gw = dom.width(); + $rss(window).scroll(function(){ + var wt = $rss(window).scrollTop(); + if ( wt > t.top ) { + var cssObj = { + 'position':'fixed', + 'top':0, + 'width':gw, + 'background':gc, + 'box-shadow':'0 1px 0 rgba(0,0,0,0.2)', + 'z-index':99 + } + dom.css(cssObj); + } else { + dom.attr('style',""); + } + }); +}, +progressBar : function(dom,settings){ + var domid = dom.prop("id"); + if($rss("#rss_progressbar_div_"+domid).length==0){ + if(typeof settings.top == "undefined") + settings.value = 1; + if(typeof settings.top == "undefined") + settings.top = (dom.height()-12)/2; + dom.append(""); + $rss("#rss_progressbar_div_"+domid).fadeIn(500); + } +}, +progressBarValue : function(dom,value){ + var domid = dom.prop("id"); + if($rss("#rss_progressbar_div_"+domid).length==1){ + $rss("#rss_progressbar_"+domid).animate({"width":value+"%"},100); + + } +}, +progressBarClose : function(dom){ + var domid = dom.prop("id"); + $rss("#rss_progressbar_div_"+domid).fadeOut(500,function(){$(this).remove();}); +}, +getInternetExplorerVersion: function(){ + var rv = -1; // Return value assumes failure. + if (navigator.appName == 'Microsoft Internet Explorer') + { + var ua = navigator.userAgent; + var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); + if (re.exec(ua) != null) + rv = parseFloat( RegExp.$1 ); + } + return rv; + } +} +$ = jQuery.noConflict(); \ No newline at end of file diff --git a/app/views/admin/designs/_new.html.erb b/app/views/admin/designs/_new.html.erb new file mode 100644 index 00000000..ded2237a --- /dev/null +++ b/app/views/admin/designs/_new.html.erb @@ -0,0 +1,10 @@ +

<%= t('admin.new_design') %>

+ +<%= form_for :design, :url => admin_designs_path do |f| %> + <%= f.error_messages %> + <%= render :partial => "form", :locals => { :f => f } %> + +

+ <%= f.submit t('create') %> <%= link_back %> +

+<% end %> diff --git a/app/views/admin/designs/new.js.erb b/app/views/admin/designs/new.js.erb new file mode 100644 index 00000000..7b41a5c0 --- /dev/null +++ b/app/views/admin/designs/new.js.erb @@ -0,0 +1 @@ +rcom.modalWindow({loadHtml:"<%= escape_javascript(render(:partial => 'new')) %>"}); \ No newline at end of file diff --git a/vendor/plugins/NewBlog/.gitignore b/vendor/built_in_modules/NewBlog/.gitignore similarity index 100% rename from vendor/plugins/NewBlog/.gitignore rename to vendor/built_in_modules/NewBlog/.gitignore diff --git a/vendor/plugins/NewBlog/Gemfile b/vendor/built_in_modules/NewBlog/Gemfile similarity index 100% rename from vendor/plugins/NewBlog/Gemfile rename to vendor/built_in_modules/NewBlog/Gemfile diff --git a/vendor/plugins/NewBlog/Gemfile.lock b/vendor/built_in_modules/NewBlog/Gemfile.lock similarity index 100% rename from vendor/plugins/NewBlog/Gemfile.lock rename to vendor/built_in_modules/NewBlog/Gemfile.lock diff --git a/vendor/plugins/NewBlog/MIT-LICENSE b/vendor/built_in_modules/NewBlog/MIT-LICENSE similarity index 100% rename from vendor/plugins/NewBlog/MIT-LICENSE rename to vendor/built_in_modules/NewBlog/MIT-LICENSE diff --git a/vendor/plugins/NewBlog/NewBlog.gemspec b/vendor/built_in_modules/NewBlog/NewBlog.gemspec similarity index 100% rename from vendor/plugins/NewBlog/NewBlog.gemspec rename to vendor/built_in_modules/NewBlog/NewBlog.gemspec diff --git a/vendor/plugins/NewBlog/NewBlog.json b/vendor/built_in_modules/NewBlog/NewBlog.json similarity index 100% rename from vendor/plugins/NewBlog/NewBlog.json rename to vendor/built_in_modules/NewBlog/NewBlog.json diff --git a/vendor/plugins/NewBlog/README.rdoc b/vendor/built_in_modules/NewBlog/README.rdoc similarity index 100% rename from vendor/plugins/NewBlog/README.rdoc rename to vendor/built_in_modules/NewBlog/README.rdoc diff --git a/vendor/plugins/NewBlog/Rakefile b/vendor/built_in_modules/NewBlog/Rakefile similarity index 100% rename from vendor/plugins/NewBlog/Rakefile rename to vendor/built_in_modules/NewBlog/Rakefile diff --git a/vendor/plugins/NewBlog/app/assets/images/NewBlog/.gitkeep b/vendor/built_in_modules/NewBlog/app/assets/images/NewBlog/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/assets/images/NewBlog/.gitkeep rename to vendor/built_in_modules/NewBlog/app/assets/images/NewBlog/.gitkeep diff --git a/vendor/plugins/NewBlog/app/assets/javascripts/NewBlog/.gitkeep b/vendor/built_in_modules/NewBlog/app/assets/javascripts/NewBlog/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/assets/javascripts/NewBlog/.gitkeep rename to vendor/built_in_modules/NewBlog/app/assets/javascripts/NewBlog/.gitkeep diff --git a/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/.gitkeep b/vendor/built_in_modules/NewBlog/app/assets/stylesheets/NewBlog/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/.gitkeep rename to vendor/built_in_modules/NewBlog/app/assets/stylesheets/NewBlog/.gitkeep diff --git a/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/application.css b/vendor/built_in_modules/NewBlog/app/assets/stylesheets/NewBlog/application.css similarity index 100% rename from vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/application.css rename to vendor/built_in_modules/NewBlog/app/assets/stylesheets/NewBlog/application.css diff --git a/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/production.css b/vendor/built_in_modules/NewBlog/app/assets/stylesheets/NewBlog/production.css similarity index 100% rename from vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/production.css rename to vendor/built_in_modules/NewBlog/app/assets/stylesheets/NewBlog/production.css diff --git a/vendor/plugins/NewBlog/app/controllers/.gitkeep b/vendor/built_in_modules/NewBlog/app/controllers/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/controllers/.gitkeep rename to vendor/built_in_modules/NewBlog/app/controllers/.gitkeep diff --git a/vendor/plugins/NewBlog/app/controllers/application_controller.rb b/vendor/built_in_modules/NewBlog/app/controllers/application_controller.rb similarity index 100% rename from vendor/plugins/NewBlog/app/controllers/application_controller.rb rename to vendor/built_in_modules/NewBlog/app/controllers/application_controller.rb diff --git a/vendor/plugins/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb b/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb similarity index 100% rename from vendor/plugins/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb rename to vendor/built_in_modules/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb diff --git a/vendor/plugins/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb b/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb similarity index 100% rename from vendor/plugins/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb rename to vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb diff --git a/vendor/plugins/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb b/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb similarity index 100% rename from vendor/plugins/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb rename to vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb diff --git a/vendor/plugins/NewBlog/app/controllers/panel/blog/widget/posts_controller.rb b/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/widget/posts_controller.rb similarity index 100% rename from vendor/plugins/NewBlog/app/controllers/panel/blog/widget/posts_controller.rb rename to vendor/built_in_modules/NewBlog/app/controllers/panel/blog/widget/posts_controller.rb diff --git a/vendor/plugins/NewBlog/app/helpers/.gitkeep b/vendor/built_in_modules/NewBlog/app/helpers/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/helpers/.gitkeep rename to vendor/built_in_modules/NewBlog/app/helpers/.gitkeep diff --git a/vendor/plugins/NewBlog/app/helpers/application_helper.rb b/vendor/built_in_modules/NewBlog/app/helpers/application_helper.rb similarity index 100% rename from vendor/plugins/NewBlog/app/helpers/application_helper.rb rename to vendor/built_in_modules/NewBlog/app/helpers/application_helper.rb diff --git a/vendor/plugins/NewBlog/app/mailers/.gitkeep b/vendor/built_in_modules/NewBlog/app/mailers/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/mailers/.gitkeep rename to vendor/built_in_modules/NewBlog/app/mailers/.gitkeep diff --git a/vendor/plugins/NewBlog/app/models/.gitkeep b/vendor/built_in_modules/NewBlog/app/models/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/models/.gitkeep rename to vendor/built_in_modules/NewBlog/app/models/.gitkeep diff --git a/vendor/plugins/NewBlog/app/models/comment.rb b/vendor/built_in_modules/NewBlog/app/models/comment.rb similarity index 100% rename from vendor/plugins/NewBlog/app/models/comment.rb rename to vendor/built_in_modules/NewBlog/app/models/comment.rb diff --git a/vendor/plugins/NewBlog/app/models/post.rb b/vendor/built_in_modules/NewBlog/app/models/post.rb similarity index 100% rename from vendor/plugins/NewBlog/app/models/post.rb rename to vendor/built_in_modules/NewBlog/app/models/post.rb diff --git a/vendor/plugins/NewBlog/app/views/.gitkeep b/vendor/built_in_modules/NewBlog/app/views/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/app/views/.gitkeep rename to vendor/built_in_modules/NewBlog/app/views/.gitkeep diff --git a/vendor/plugins/NewBlog/app/views/layouts/application.html.erb b/vendor/built_in_modules/NewBlog/app/views/layouts/application.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/layouts/application.html.erb rename to vendor/built_in_modules/NewBlog/app/views/layouts/application.html.erb diff --git a/vendor/plugins/NewBlog/app/views/layouts/edit_view.html.erb b/vendor/built_in_modules/NewBlog/app/views/layouts/edit_view.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/layouts/edit_view.html.erb rename to vendor/built_in_modules/NewBlog/app/views/layouts/edit_view.html.erb diff --git a/vendor/plugins/NewBlog/app/views/layouts/production.html.erb b/vendor/built_in_modules/NewBlog/app/views/layouts/production.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/layouts/production.html.erb rename to vendor/built_in_modules/NewBlog/app/views/layouts/production.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/edit.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/edit.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/edit.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/edit.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/show.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/show.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/show.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/back_end/posts/show.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/_post_frontend.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/_post_frontend.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/_post_frontend.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/_post_frontend.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/index.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/index.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/index.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/index.html.erb diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb b/vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb similarity index 100% rename from vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb rename to vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb diff --git a/vendor/plugins/NewBlog/config/locales/en.yml b/vendor/built_in_modules/NewBlog/config/locales/en.yml similarity index 100% rename from vendor/plugins/NewBlog/config/locales/en.yml rename to vendor/built_in_modules/NewBlog/config/locales/en.yml diff --git a/vendor/plugins/NewBlog/config/locales/zh_tw.yml b/vendor/built_in_modules/NewBlog/config/locales/zh_tw.yml similarity index 100% rename from vendor/plugins/NewBlog/config/locales/zh_tw.yml rename to vendor/built_in_modules/NewBlog/config/locales/zh_tw.yml diff --git a/vendor/plugins/NewBlog/config/routes.rb b/vendor/built_in_modules/NewBlog/config/routes.rb similarity index 100% rename from vendor/plugins/NewBlog/config/routes.rb rename to vendor/built_in_modules/NewBlog/config/routes.rb diff --git a/vendor/plugins/NewBlog/lib/NewBlog.rb b/vendor/built_in_modules/NewBlog/lib/NewBlog.rb similarity index 100% rename from vendor/plugins/NewBlog/lib/NewBlog.rb rename to vendor/built_in_modules/NewBlog/lib/NewBlog.rb diff --git a/vendor/plugins/NewBlog/lib/NewBlog/engine.rb b/vendor/built_in_modules/NewBlog/lib/NewBlog/engine.rb similarity index 100% rename from vendor/plugins/NewBlog/lib/NewBlog/engine.rb rename to vendor/built_in_modules/NewBlog/lib/NewBlog/engine.rb diff --git a/vendor/plugins/NewBlog/lib/NewBlog/version.rb b/vendor/built_in_modules/NewBlog/lib/NewBlog/version.rb similarity index 100% rename from vendor/plugins/NewBlog/lib/NewBlog/version.rb rename to vendor/built_in_modules/NewBlog/lib/NewBlog/version.rb diff --git a/vendor/plugins/NewBlog/lib/tasks/NewBlog_tasks.rake b/vendor/built_in_modules/NewBlog/lib/tasks/NewBlog_tasks.rake similarity index 100% rename from vendor/plugins/NewBlog/lib/tasks/NewBlog_tasks.rake rename to vendor/built_in_modules/NewBlog/lib/tasks/NewBlog_tasks.rake diff --git a/vendor/plugins/NewBlog/script/rails b/vendor/built_in_modules/NewBlog/script/rails similarity index 100% rename from vendor/plugins/NewBlog/script/rails rename to vendor/built_in_modules/NewBlog/script/rails diff --git a/vendor/plugins/NewBlog/test/NewBlog_test.rb b/vendor/built_in_modules/NewBlog/test/NewBlog_test.rb similarity index 100% rename from vendor/plugins/NewBlog/test/NewBlog_test.rb rename to vendor/built_in_modules/NewBlog/test/NewBlog_test.rb diff --git a/vendor/plugins/NewBlog/test/dummy/Rakefile b/vendor/built_in_modules/NewBlog/test/dummy/Rakefile similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/Rakefile rename to vendor/built_in_modules/NewBlog/test/dummy/Rakefile diff --git a/vendor/plugins/NewBlog/test/dummy/app/assets/javascripts/application.js b/vendor/built_in_modules/NewBlog/test/dummy/app/assets/javascripts/application.js similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/app/assets/javascripts/application.js rename to vendor/built_in_modules/NewBlog/test/dummy/app/assets/javascripts/application.js diff --git a/vendor/plugins/NewBlog/test/dummy/app/assets/stylesheets/application.css b/vendor/built_in_modules/NewBlog/test/dummy/app/assets/stylesheets/application.css similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/app/assets/stylesheets/application.css rename to vendor/built_in_modules/NewBlog/test/dummy/app/assets/stylesheets/application.css diff --git a/vendor/plugins/NewBlog/test/dummy/app/controllers/application_controller.rb b/vendor/built_in_modules/NewBlog/test/dummy/app/controllers/application_controller.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/app/controllers/application_controller.rb rename to vendor/built_in_modules/NewBlog/test/dummy/app/controllers/application_controller.rb diff --git a/vendor/plugins/NewBlog/test/dummy/app/helpers/application_helper.rb b/vendor/built_in_modules/NewBlog/test/dummy/app/helpers/application_helper.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/app/helpers/application_helper.rb rename to vendor/built_in_modules/NewBlog/test/dummy/app/helpers/application_helper.rb diff --git a/vendor/plugins/NewBlog/test/dummy/app/mailers/.gitkeep b/vendor/built_in_modules/NewBlog/test/dummy/app/mailers/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/app/mailers/.gitkeep rename to vendor/built_in_modules/NewBlog/test/dummy/app/mailers/.gitkeep diff --git a/vendor/plugins/NewBlog/test/dummy/app/models/.gitkeep b/vendor/built_in_modules/NewBlog/test/dummy/app/models/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/app/models/.gitkeep rename to vendor/built_in_modules/NewBlog/test/dummy/app/models/.gitkeep diff --git a/vendor/plugins/NewBlog/test/dummy/app/views/layouts/application.html.erb b/vendor/built_in_modules/NewBlog/test/dummy/app/views/layouts/application.html.erb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/app/views/layouts/application.html.erb rename to vendor/built_in_modules/NewBlog/test/dummy/app/views/layouts/application.html.erb diff --git a/vendor/plugins/NewBlog/test/dummy/config.ru b/vendor/built_in_modules/NewBlog/test/dummy/config.ru similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config.ru rename to vendor/built_in_modules/NewBlog/test/dummy/config.ru diff --git a/vendor/plugins/NewBlog/test/dummy/config/application.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/application.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/application.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/application.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/boot.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/boot.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/boot.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/boot.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/database.yml b/vendor/built_in_modules/NewBlog/test/dummy/config/database.yml similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/database.yml rename to vendor/built_in_modules/NewBlog/test/dummy/config/database.yml diff --git a/vendor/plugins/NewBlog/test/dummy/config/environment.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/environment.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/environment.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/environment.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/environments/development.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/environments/development.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/environments/development.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/environments/development.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/environments/production.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/environments/production.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/environments/production.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/environments/production.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/environments/test.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/environments/test.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/environments/test.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/environments/test.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/initializers/backtrace_silencers.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/backtrace_silencers.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/initializers/backtrace_silencers.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/initializers/backtrace_silencers.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/initializers/inflections.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/inflections.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/initializers/inflections.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/initializers/inflections.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/initializers/mime_types.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/mime_types.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/initializers/mime_types.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/initializers/mime_types.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/initializers/secret_token.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/secret_token.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/initializers/secret_token.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/initializers/secret_token.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/initializers/session_store.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/session_store.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/initializers/session_store.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/initializers/session_store.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/initializers/wrap_parameters.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/wrap_parameters.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/initializers/wrap_parameters.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/initializers/wrap_parameters.rb diff --git a/vendor/plugins/NewBlog/test/dummy/config/locales/en.yml b/vendor/built_in_modules/NewBlog/test/dummy/config/locales/en.yml similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/locales/en.yml rename to vendor/built_in_modules/NewBlog/test/dummy/config/locales/en.yml diff --git a/vendor/plugins/NewBlog/test/dummy/config/mongoid.yml b/vendor/built_in_modules/NewBlog/test/dummy/config/mongoid.yml similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/mongoid.yml rename to vendor/built_in_modules/NewBlog/test/dummy/config/mongoid.yml diff --git a/vendor/plugins/NewBlog/test/dummy/config/routes.rb b/vendor/built_in_modules/NewBlog/test/dummy/config/routes.rb similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/config/routes.rb rename to vendor/built_in_modules/NewBlog/test/dummy/config/routes.rb diff --git a/vendor/plugins/NewBlog/test/dummy/lib/assets/.gitkeep b/vendor/built_in_modules/NewBlog/test/dummy/lib/assets/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/lib/assets/.gitkeep rename to vendor/built_in_modules/NewBlog/test/dummy/lib/assets/.gitkeep diff --git a/vendor/plugins/NewBlog/test/dummy/log/.gitkeep b/vendor/built_in_modules/NewBlog/test/dummy/log/.gitkeep similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/log/.gitkeep rename to vendor/built_in_modules/NewBlog/test/dummy/log/.gitkeep diff --git a/vendor/plugins/NewBlog/test/dummy/public/404.html b/vendor/built_in_modules/NewBlog/test/dummy/public/404.html similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/public/404.html rename to vendor/built_in_modules/NewBlog/test/dummy/public/404.html diff --git a/vendor/plugins/NewBlog/test/dummy/public/422.html b/vendor/built_in_modules/NewBlog/test/dummy/public/422.html similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/public/422.html rename to vendor/built_in_modules/NewBlog/test/dummy/public/422.html diff --git a/vendor/plugins/NewBlog/test/dummy/public/500.html b/vendor/built_in_modules/NewBlog/test/dummy/public/500.html similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/public/500.html rename to vendor/built_in_modules/NewBlog/test/dummy/public/500.html diff --git a/vendor/plugins/NewBlog/test/dummy/public/favicon.ico b/vendor/built_in_modules/NewBlog/test/dummy/public/favicon.ico similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/public/favicon.ico rename to vendor/built_in_modules/NewBlog/test/dummy/public/favicon.ico diff --git a/vendor/plugins/NewBlog/test/dummy/script/rails b/vendor/built_in_modules/NewBlog/test/dummy/script/rails similarity index 100% rename from vendor/plugins/NewBlog/test/dummy/script/rails rename to vendor/built_in_modules/NewBlog/test/dummy/script/rails diff --git a/vendor/plugins/NewBlog/test/integration/navigation_test.rb b/vendor/built_in_modules/NewBlog/test/integration/navigation_test.rb similarity index 100% rename from vendor/plugins/NewBlog/test/integration/navigation_test.rb rename to vendor/built_in_modules/NewBlog/test/integration/navigation_test.rb diff --git a/vendor/plugins/NewBlog/test/test_helper.rb b/vendor/built_in_modules/NewBlog/test/test_helper.rb similarity index 100% rename from vendor/plugins/NewBlog/test/test_helper.rb rename to vendor/built_in_modules/NewBlog/test/test_helper.rb diff --git a/vendor/templates/sunrise/stylesheets/sunrise.css b/vendor/templates/sunrise/stylesheets/sunrise.css deleted file mode 100644 index 9b1e02f0..00000000 --- a/vendor/templates/sunrise/stylesheets/sunrise.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background-color :red; -}