Compare commits
58
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb5579c064 | ||
|
|
b1c7c1b4c8 | ||
|
|
96c3be68f7 | ||
|
|
5fb3731430 | ||
|
|
fb34dc673f | ||
|
|
14ea611f8c | ||
|
|
4f04eca74f | ||
|
|
4120be6f8e | ||
|
|
ae66e7257f | ||
|
|
55fa1cef4f | ||
|
|
5c8a57e700 | ||
|
|
7ef2dacf00 | ||
|
|
08a8d668ec | ||
|
|
b4f5fddc5c | ||
|
|
315a24556c | ||
|
|
cce68beff1 | ||
|
|
cf7f7aa29c | ||
|
|
5328a26440 | ||
|
|
fe1869199e | ||
|
|
061225f56c | ||
|
|
b3e16ce23b | ||
|
|
fad191aefe | ||
|
|
2f866891b1 | ||
|
|
48aa7ed638 | ||
|
|
21db2a2cba | ||
|
|
1194bdd9b4 | ||
|
|
831bd722b8 | ||
|
|
940a915125 | ||
|
|
792785f7ba | ||
|
|
43cf6b70b7 | ||
|
|
ba8da9b6bb | ||
|
|
ff93670949 | ||
|
|
f85354c2b6 | ||
|
|
06c48524fd | ||
|
|
31ef12b3da | ||
|
|
08907aa8c1 | ||
|
|
31b55a0635 | ||
|
|
433c8d5da6 | ||
|
|
b18e61a6c0 | ||
|
|
4fe2e31f0e | ||
|
|
31e4fb9f39 | ||
|
|
9bdb633157 | ||
|
|
caca264b50 | ||
|
|
9a0e9ddc82 | ||
|
|
9f490c87d2 | ||
|
|
a9431ad17e | ||
|
|
d9ac24470f | ||
|
|
2f673b20ad | ||
|
|
0a9fd6a4b5 | ||
|
|
74ca99a581 | ||
|
|
dfec6f7642 | ||
|
|
9186978551 | ||
|
|
622534e5db | ||
|
|
52c896d8c5 | ||
|
|
028c689739 | ||
|
|
f81894af90 | ||
|
|
dc3593c162 | ||
|
|
16c26e3273 |
No files matched your search
@@ -11,8 +11,8 @@ gem "net-ldap", "~> 0.3.1"
|
|||||||
gem 'devise', '1.5.3'
|
gem 'devise', '1.5.3'
|
||||||
gem 'exception_notification' # Send error trace
|
gem 'exception_notification' # Send error trace
|
||||||
gem 'execjs'
|
gem 'execjs'
|
||||||
gem 'jquery-rails', '2.1.4'
|
gem 'jquery-rails', '3.0.4'
|
||||||
gem 'jquery-ui-rails'
|
gem 'jquery-ui-rails', "4.0.5"
|
||||||
gem "select2-rails", '3.3.1'
|
gem "select2-rails", '3.3.1'
|
||||||
gem 'kaminari'
|
gem 'kaminari'
|
||||||
gem 'time_difference'
|
gem 'time_difference'
|
||||||
@@ -38,7 +38,7 @@ gem 'resque-scheduler' # job scheduling
|
|||||||
gem 'resque-restriction'
|
gem 'resque-restriction'
|
||||||
#gem 'rb-readline'
|
#gem 'rb-readline'
|
||||||
# gem 'ruby-debug19'
|
# gem 'ruby-debug19'
|
||||||
gem 'rubyzip'
|
gem 'rubyzip', '< 1.0.0'
|
||||||
|
|
||||||
gem 'sunspot_mongo'
|
gem 'sunspot_mongo'
|
||||||
gem 'sunspot_solr'
|
gem 'sunspot_solr'
|
||||||
@@ -97,6 +97,8 @@ group :test, :development do
|
|||||||
gem "watchr"
|
gem "watchr"
|
||||||
gem "spork"
|
gem "spork"
|
||||||
gem "capybara"
|
gem "capybara"
|
||||||
|
#gem 'rack-mini-profiler'
|
||||||
|
gem "better_errors"
|
||||||
# gem 'yard'
|
# gem 'yard'
|
||||||
# gem "bluecloth"
|
# gem "bluecloth"
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
//= require jquery
|
//= require jquery
|
||||||
//= require jquery_ujs
|
//= require jquery_ujs
|
||||||
//= require jquery-ui
|
//= require jquery.ui.all
|
||||||
//= require desktop/jquery.form
|
//= require desktop/jquery.form
|
||||||
//= require desktop/jquery.tinyscrollbar
|
//= require desktop/jquery.tinyscrollbar
|
||||||
//= require desktop/jquery.miniColors.min
|
//= require desktop/jquery.miniColors.min
|
||||||
|
|||||||
@@ -29,6 +29,9 @@
|
|||||||
//column="true" this option is only for column layout... the columns will be formed on this column=true attribute and it should be a div
|
//column="true" this option is only for column layout... the columns will be formed on this column=true attribute and it should be a div
|
||||||
//item=true this attribute should be present in the li tag. li with this attribute are considered as a separate item.
|
//item=true this attribute should be present in the li tag. li with this attribute are considered as a separate item.
|
||||||
|
|
||||||
|
//enableLanguageSelect( dom ) children <a> will be binded with language, data-lang = string ex "en"|"zh_tw" will toggle all data-langunage throughout the page
|
||||||
|
//enableSharing( dom ) children <a> will be binded with share, data-mode = string ex "public"|"private" will change the mode for all the selected items. the dom with class should have data-link = url data-var = vaiable_name, default will be mode
|
||||||
|
|
||||||
|
|
||||||
$.extend($.expr[':'], {
|
$.extend($.expr[':'], {
|
||||||
'containsi': function (elem, i, match, array) {
|
'containsi': function (elem, i, match, array) {
|
||||||
@@ -165,7 +168,7 @@ var orbitDesktop = function(dom){
|
|||||||
o.loadIconCache();
|
o.loadIconCache();
|
||||||
var custom_load = window.location.hash;
|
var custom_load = window.location.hash;
|
||||||
if(!custom_load){
|
if(!custom_load){
|
||||||
$(o.contentHolder).empty().load("/desktop/desktop",function(){
|
$(o.contentHolder).empty().load("/desktop/desktop_container",function(){
|
||||||
o.desktopData["d_desktop"] = "";
|
o.desktopData["d_desktop"] = "";
|
||||||
o.initializeDesktop("d_desktop","",false);
|
o.initializeDesktop("d_desktop","",false);
|
||||||
})
|
})
|
||||||
@@ -223,7 +226,8 @@ var orbitDesktop = function(dom){
|
|||||||
|
|
||||||
this.bindDesktopEvents = function(){ //this function will bind the global handlers to thd desktop, for example doc
|
this.bindDesktopEvents = function(){ //this function will bind the global handlers to thd desktop, for example doc
|
||||||
$(".docklist a").click(function(){
|
$(".docklist a").click(function(){
|
||||||
o.menu_item($(this));
|
if( !$( this ).parent().hasClass( 'disable' ) )
|
||||||
|
o.menu_item($(this));
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -271,10 +275,11 @@ var orbitDesktop = function(dom){
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("body").on("click","*[ajax-remote]",function(){
|
$("body").on("click","*[ajax-remote]",function(){
|
||||||
var $e = $(this);
|
var $e = $(this),
|
||||||
var t = $e.attr("ajax-remote");
|
t = $e.attr("ajax-remote"),
|
||||||
var classes_to_toggle = $e.attr("toggle-onclick");
|
classes_to_toggle = $e.attr("toggle-onclick"),
|
||||||
var exe = $e.attr("callback-method"); // (typeof $e.attr("callback-method") == "function"? $e.attr("callback-method") : "");
|
responsetype = $e.attr('response-type') ? $e.attr('response-type') : "html",
|
||||||
|
exe = $e.attr("callback-method"); // (typeof $e.attr("callback-method") == "function"? $e.attr("callback-method") : "");
|
||||||
if(classes_to_toggle){
|
if(classes_to_toggle){
|
||||||
$e.toggleClass(classes_to_toggle);
|
$e.toggleClass(classes_to_toggle);
|
||||||
}
|
}
|
||||||
@@ -286,9 +291,9 @@ var orbitDesktop = function(dom){
|
|||||||
}
|
}
|
||||||
var ca = $e.attr("content-holder");
|
var ca = $e.attr("content-holder");
|
||||||
var a = function(){
|
var a = function(){
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type : t,
|
type : t,
|
||||||
|
dataType : responsetype,
|
||||||
url : $e.attr("href"),
|
url : $e.attr("href"),
|
||||||
success : function(data){
|
success : function(data){
|
||||||
if(typeof data == "string"){
|
if(typeof data == "string"){
|
||||||
@@ -299,6 +304,7 @@ var orbitDesktop = function(dom){
|
|||||||
// $("div[container=true]").html(data);
|
// $("div[container=true]").html(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(exe)
|
if(exe)
|
||||||
window.o[o.data_method][exe](data,$e);
|
window.o[o.data_method][exe](data,$e);
|
||||||
if(t == "delete"){
|
if(t == "delete"){
|
||||||
@@ -599,10 +605,11 @@ var orbitDesktop = function(dom){
|
|||||||
|
|
||||||
this.menu_item = function(dom,customload,submenuitem){
|
this.menu_item = function(dom,customload,submenuitem){
|
||||||
if(!customload)customload=false;
|
if(!customload)customload=false;
|
||||||
var target = dom.attr("id");
|
var target = dom.attr("id"),
|
||||||
var url = dom.attr("href");
|
url = dom.attr("href"),
|
||||||
|
submenu_pass = ( dom.attr("sub-menu") == "false" ? false : true);
|
||||||
if(!url)return false;
|
if(!url)return false;
|
||||||
|
|
||||||
o.data_method = dom.attr("callback-method");
|
o.data_method = dom.attr("callback-method");
|
||||||
if(o.currenthtml!=target){
|
if(o.currenthtml!=target){
|
||||||
if(o.desktopData[o.currentface] == "undefined"){
|
if(o.desktopData[o.currentface] == "undefined"){
|
||||||
@@ -623,33 +630,37 @@ var orbitDesktop = function(dom){
|
|||||||
window.o[o.data_method](target,url,cache);
|
window.o[o.data_method](target,url,cache);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
if( submenu_pass ){
|
||||||
if(!customload){
|
try {
|
||||||
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),data);
|
if(!customload){
|
||||||
} else {
|
|
||||||
if(submenuitem){
|
|
||||||
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[custom-load="+submenuitem+"]"));
|
|
||||||
} else {
|
|
||||||
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),data);
|
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),data);
|
||||||
|
} else {
|
||||||
|
if(submenuitem){
|
||||||
|
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[custom-load="+submenuitem+"]"));
|
||||||
|
} else {
|
||||||
|
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
} catch(EX){}
|
||||||
} catch(EX){}
|
}
|
||||||
header_ani();
|
header_ani();
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$(o.contentHolder).html(o.desktopData[o.currentface]);
|
$(o.contentHolder).html(o.desktopData[o.currentface]);
|
||||||
try{
|
if( submenu_pass ){
|
||||||
if(!customload){
|
try{
|
||||||
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),o.desktopData[o.currentface]);
|
if(!customload){
|
||||||
}else{
|
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),o.desktopData[o.currentface]);
|
||||||
if(submenuitem)
|
}else{
|
||||||
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[custom-load="+submenuitem+"]"),o.desktopData[o.currentface]);
|
if(submenuitem)
|
||||||
else
|
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[custom-load="+submenuitem+"]"),o.desktopData[o.currentface]);
|
||||||
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),o.desktopData[o.currentface]);
|
else
|
||||||
}
|
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"),o.desktopData[o.currentface]);
|
||||||
}catch(EX){}
|
}
|
||||||
|
}catch(EX){}
|
||||||
|
}
|
||||||
|
|
||||||
cache = (o.lastlink == "/desktop/app_manager" ? false : true);
|
// cache = (o.lastlink == "/desktop/app_manager" ? false : true);
|
||||||
if(typeof o.data_method != "undefined"){
|
if(typeof o.data_method != "undefined"){
|
||||||
if(o.data_method != ""){
|
if(o.data_method != ""){
|
||||||
window.o[o.data_method](target,url,cache);
|
window.o[o.data_method](target,url,cache);
|
||||||
@@ -1089,7 +1100,7 @@ var orbitDesktop = function(dom){
|
|||||||
data : options,
|
data : options,
|
||||||
success : function(data){
|
success : function(data){
|
||||||
if(data.success == "true"){
|
if(data.success == "true"){
|
||||||
if(dom.is(":checked")){ console.log("true");
|
if(dom.is(":checked")){
|
||||||
elementSettingsData[$e.data("id")].sections.push({"id" : dom.data("section"),"name":sectionDetails.name});
|
elementSettingsData[$e.data("id")].sections.push({"id" : dom.data("section"),"name":sectionDetails.name});
|
||||||
o.notify("Added to " + sectionDetails.name,"success");
|
o.notify("Added to " + sectionDetails.name,"success");
|
||||||
}else{
|
}else{
|
||||||
@@ -1113,20 +1124,16 @@ var orbitDesktop = function(dom){
|
|||||||
var info_open = function(){
|
var info_open = function(){
|
||||||
if($appinfo.is(":hidden")){
|
if($appinfo.is(":hidden")){
|
||||||
$('.overview').stop().animate({'width': '+=480'},0 , function(){
|
$('.overview').stop().animate({'width': '+=480'},0 , function(){
|
||||||
$('.tinycanvas').tinyscrollbar_update();
|
// $('.tinycanvas').tinyscrollbar_update('relative');
|
||||||
});
|
});
|
||||||
$appinfo
|
$appinfo
|
||||||
.css({
|
.css({
|
||||||
'display': 'block',
|
|
||||||
'margin-left': -480
|
'margin-left': -480
|
||||||
})
|
}).fadeIn(200)
|
||||||
.delay(300)
|
|
||||||
.animate({
|
.animate({
|
||||||
'margin-left': 0
|
'margin-left': 0
|
||||||
}, 500, 'easeInOutQuint');
|
}, 500, 'easeInOutQuint');
|
||||||
} else {
|
}
|
||||||
$('.tinycanvas').tinyscrollbar_update();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var info_close = function(){
|
var info_close = function(){
|
||||||
@@ -1137,13 +1144,11 @@ var orbitDesktop = function(dom){
|
|||||||
'margin-left': -480
|
'margin-left': -480
|
||||||
},500 , 'easeInOutQuint', function(){
|
},500 , 'easeInOutQuint', function(){
|
||||||
$('.overview').animate({'width': '-=480'}, 0, function(){
|
$('.overview').animate({'width': '-=480'}, 0, function(){
|
||||||
$('.tinycanvas').tinyscrollbar_update();
|
// $('.tinycanvas').tinyscrollbar_update();
|
||||||
});
|
});
|
||||||
$(this).attr("style","");
|
$(this).fadeOut(300).attr("style","");
|
||||||
});
|
});
|
||||||
} else {
|
}
|
||||||
$('.tinycanvas').tinyscrollbar_update();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$(window).on('keydown', function(){
|
$(window).on('keydown', function(){
|
||||||
if($('#searchbox').val() == 'Search'){
|
if($('#searchbox').val() == 'Search'){
|
||||||
@@ -1881,6 +1886,35 @@ var orbitDesktop = function(dom){
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.enableSharing = function( dom ){
|
||||||
|
var el = $( dom ),
|
||||||
|
variable = ( el.data( 'var' ) ? el.data( "var" ) : "mode"),
|
||||||
|
_url = el.data( 'link' ) + "?" + variable + "=",
|
||||||
|
classes = [];
|
||||||
|
|
||||||
|
el.find( "a" ).each( function(){
|
||||||
|
classes.push( $( this ).attr( "item-class" ) ? $( this ).attr( "item-class" ) : $( this ).data( 'mode' ) );
|
||||||
|
})
|
||||||
|
|
||||||
|
el.find( "a" ).click( function(){
|
||||||
|
var ids = [],
|
||||||
|
mode = $( this ).data( 'mode' ),
|
||||||
|
inject_class = $( this ).attr( 'item-class' ) ? $( this ).attr( 'item-class' ) : mode;
|
||||||
|
|
||||||
|
$( ".overview li[item=true] a.icon-check" ).each( function(){
|
||||||
|
ids.push( $( this ).data( 'id' ) );
|
||||||
|
$( "li[data-id="+ $( this ).data( 'id' ) +"]").removeClass( classes.join( " " ) ).addClass( inject_class );
|
||||||
|
})
|
||||||
|
$.ajax({
|
||||||
|
url : _url + mode,
|
||||||
|
data : {"ids" : ids},
|
||||||
|
datatype : "json",
|
||||||
|
})
|
||||||
|
return false;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
this.minimizeBarManager = function(){
|
this.minimizeBarManager = function(){
|
||||||
var minimizedApps = [],
|
var minimizedApps = [],
|
||||||
minimizeBar = $("#minimizebar");
|
minimizeBar = $("#minimizebar");
|
||||||
|
|||||||
@@ -43,8 +43,14 @@ $(function(){
|
|||||||
placeholder: 'placeholder',
|
placeholder: 'placeholder',
|
||||||
startCollapsed: true,
|
startCollapsed: true,
|
||||||
disableNesting: 'no-nest',
|
disableNesting: 'no-nest',
|
||||||
stop: function(event, ui) {
|
update: function(event, ui) {
|
||||||
$.post("<%= Rails.application.routes.url_helpers.admin_update_position_path %>", { id: ui.item.attr('id'), parent_id: (ui.item.parent().closest('li').attr('id') || ui.item.parent().closest('ol').attr('id')), position: ui.item.index() } );
|
var position = null;
|
||||||
|
if($(ui.item).closest('ol').hasClass('item-groups')) {
|
||||||
|
position = $(ui.item).index() - 1;
|
||||||
|
} else {
|
||||||
|
position = $(ui.item).index();
|
||||||
|
};
|
||||||
|
$.post("<%= Rails.application.routes.url_helpers.admin_update_position_path %>", { id: ui.item.attr('id'), parent_id: (ui.item.parent().closest('li').attr('id') || ui.item.parent().closest('ol').attr('id')), position: position } );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(".sortable").delegate(".brand, .delete", clickEvent, function(e){
|
$(".sortable").delegate(".brand, .delete", clickEvent, function(e){
|
||||||
|
|||||||
@@ -55,6 +55,13 @@
|
|||||||
} else {
|
} else {
|
||||||
$viewPage.find('.content').load(url, function(){
|
$viewPage.find('.content').load(url, function(){
|
||||||
$viewPage.clone(true).appendTo( $pageslide.empty() ).show();
|
$viewPage.clone(true).appendTo( $pageslide.empty() ).show();
|
||||||
|
if($('#filter-default-tag').length) {
|
||||||
|
$('#filter-default-tag').fastLiveFilter('.add-default-tags-list', '.filter-item', '.tag');
|
||||||
|
addTagsTab();
|
||||||
|
$('#view-page .card').cardCheck({
|
||||||
|
item: $('#view-page input[type="checkbox"]'),
|
||||||
|
});
|
||||||
|
};
|
||||||
if(callback)callback.call(this,$viewPage,element);
|
if(callback)callback.call(this,$viewPage,element);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,26 +80,22 @@ $(function() {
|
|||||||
_data.actionable ? $('#dialog').modal('show') : "";
|
_data.actionable ? $('#dialog').modal('show') : "";
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
$('.delete-item').on(clickEvent, function() {
|
||||||
$("#dialog").on('show', function (e) {
|
var _v = [];
|
||||||
$(this).find('.delete-item').on(clickEvent, function() {
|
$("tbody .list-check").each(function() {
|
||||||
var _v = [];
|
this.checked && _v.push("ids[]="+this.value)
|
||||||
$("tbody .list-check").each(function() {
|
});
|
||||||
this.checked && _v.push("ids[]="+this.value)
|
var _t = $t.attr("rel");
|
||||||
|
if(_t.indexOf("?") > -1) {
|
||||||
|
$.ajax(_t + "&" + _v.join("&")).done(function() {
|
||||||
|
actionSuccess(_data.checkAction)
|
||||||
});
|
});
|
||||||
var _t = $t.attr("rel");
|
} else {
|
||||||
if(_t.indexOf("?") > -1) {
|
$.ajax(_t + "?" + _v.join("&")).done(function() {
|
||||||
$.ajax(_t + "&" + _v.join("&")).done(function() {
|
actionSuccess(_data.checkAction)
|
||||||
actionSuccess(_data.checkAction)
|
});
|
||||||
});
|
}
|
||||||
} else {
|
$('#dialog').modal('hide');
|
||||||
$.ajax(_t + "?" + _v.join("&")).done(function() {
|
$('.list-active-btn').addClass('disabled').data('actionable', false);
|
||||||
actionSuccess(_data.checkAction)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$('#dialog').modal('hide');
|
|
||||||
$('.list-active-btn').addClass('disabled').data('actionable', false);
|
|
||||||
e.preventDefault();
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
function dragMode() {
|
||||||
|
$('#card-list').sortable({
|
||||||
|
placeholder: "highlight",
|
||||||
|
update: function( event, ui ) {
|
||||||
|
var _userPosition = {};
|
||||||
|
_userPosition.position = $(ui.item).index();
|
||||||
|
_userPosition.id = $(ui.item).data('user-id');
|
||||||
|
$.ajax({
|
||||||
|
url: "<%= Rails.application.routes.url_helpers.update_order_card_admin_users_new_interface_index_path %>",
|
||||||
|
type: 'POST',
|
||||||
|
dataType: 'script',
|
||||||
|
data: {users: _userPosition}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#card-list').disableSelection();
|
||||||
|
}
|
||||||
|
|
||||||
|
function typeMode() {
|
||||||
|
var _userPosition = [];
|
||||||
|
$('#list-view tbody tr').each(function(i) {
|
||||||
|
$(this).data('user-index', i);
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#member-list').on(clickEvent, '.edit_position', function(e){
|
||||||
|
var $input = $('<input type="text">'),
|
||||||
|
$cross = $('<a class="btn btn-mini"><i class="icons-cross"/></a>');
|
||||||
|
if($(this).siblings('input').length) {
|
||||||
|
$(this).siblings('input').attr('type', 'text').after($cross);
|
||||||
|
} else {
|
||||||
|
$(this).after($cross);
|
||||||
|
$(this).after($input);
|
||||||
|
}
|
||||||
|
$(this).hide();
|
||||||
|
$input.val($(this).text());
|
||||||
|
e.preventDefault();
|
||||||
|
$cross.click(function(event) {
|
||||||
|
$input.remove();
|
||||||
|
$(this).siblings('a').show().end().remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.bottomnav').on(clickEvent, '.btn', function(e) {
|
||||||
|
_userPosition = [];
|
||||||
|
$('#member-list tbody input').each(function(i) {
|
||||||
|
_userPosition.push([$(this).val(), $(this).siblings('a').data('user-id')]);
|
||||||
|
});
|
||||||
|
$.ajax({
|
||||||
|
url: "<%= Rails.application.routes.url_helpers.update_order_list_admin_users_new_interface_index_path %>",
|
||||||
|
type: 'POST',
|
||||||
|
dataType: 'script',
|
||||||
|
data: {users: _userPosition}
|
||||||
|
});
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
//= require basic
|
//= require basic
|
||||||
//= require lib/jquery-ui-1.10.2.custom.min.js
|
//= require jquery.ui.sortable
|
||||||
//= require lib/jquery.ui.touch-punch.min.js
|
//= require lib/jquery.ui.touch-punch.min.js
|
||||||
//= require lib/jquery.mjs.nestedSortable.js
|
//= require lib/jquery.mjs.nestedSortable.js
|
||||||
//= require lib/items/items
|
//= require lib/items/items
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ legend {
|
|||||||
min-width: 61px;
|
min-width: 61px;
|
||||||
z-index: 1030;
|
z-index: 1030;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
padding-top: 40px;
|
||||||
background-color: #171717;
|
background-color: #171717;
|
||||||
-webkit-box-shadow: inset -1px 0px 10px #000000;
|
-webkit-box-shadow: inset -1px 0px 10px #000000;
|
||||||
-moz-box-shadow: inset -1px 0px 10px #000000;
|
-moz-box-shadow: inset -1px 0px 10px #000000;
|
||||||
@@ -91,12 +92,14 @@ legend {
|
|||||||
}
|
}
|
||||||
#sidebar #sidebar-menu {
|
#sidebar #sidebar-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 88px;
|
top: 85px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 1;
|
z-index: 0;
|
||||||
display: block;
|
display: block;
|
||||||
width: 61px;
|
width: 61px;
|
||||||
/*overflow: auto;*/
|
}
|
||||||
|
#sidebar #sidebar-menu.nano {
|
||||||
|
top: 0;
|
||||||
}
|
}
|
||||||
#sidebar .scroller {
|
#sidebar .scroller {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -120,16 +123,12 @@ legend {
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
#sidebar > h2.position {
|
#sidebar > h2.position {
|
||||||
top: 40px;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 61px;
|
width: 61px;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 2.4em;
|
|
||||||
line-height: 47px;
|
|
||||||
line-height: 46px\9;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: absolute;
|
position: relative;
|
||||||
background-color: #08c;
|
background-color: #08c;
|
||||||
background-image: -moz-linear-gradient(top, #08c, #006091);
|
background-image: -moz-linear-gradient(top, #08c, #006091);
|
||||||
background-image: -ms-linear-gradient(top, #08c, #006091);
|
background-image: -ms-linear-gradient(top, #08c, #006091);
|
||||||
@@ -158,24 +157,20 @@ legend {
|
|||||||
}
|
}
|
||||||
#sidebar > h2.position a {
|
#sidebar > h2.position a {
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
padding: 6px 6px 5px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
-webkit-text-shadow: 0px -1px 0px #333333;
|
-webkit-text-shadow: 0px -1px 0px #333333;
|
||||||
-moz-text-shadow: 0px -1px 0px #333333;
|
-moz-text-shadow: 0px -1px 0px #333333;
|
||||||
-o-text-shadow: 0px -1px 0px #333333;
|
-o-text-shadow: 0px -1px 0px #333333;
|
||||||
text-shadow: 0px -1px 0px #333333;
|
text-shadow: 0px -1px 0px #333333;
|
||||||
}
|
}
|
||||||
|
#sidebar > h2.position a i {
|
||||||
|
line-height: 45px;
|
||||||
|
}
|
||||||
#sidebar .sidebar-nav > li {
|
#sidebar .sidebar-nav > li {
|
||||||
min-width: 61px;
|
min-width: 61px;
|
||||||
height: 45px;
|
|
||||||
}
|
}
|
||||||
#sidebar .sidebar-nav > li.active {
|
#sidebar .sidebar-nav > li.active span {
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
#sidebar .sidebar-nav > li.active .sub-nav-block {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
#sidebar .sidebar-nav > li.active > a > span {
|
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-text-shadow: 0px -1px 0px #636363;
|
-webkit-text-shadow: 0px -1px 0px #636363;
|
||||||
@@ -183,8 +178,7 @@ legend {
|
|||||||
-o-text-shadow: 0px -1px 0px #636363;
|
-o-text-shadow: 0px -1px 0px #636363;
|
||||||
text-shadow: 0px -1px 0px #636363;
|
text-shadow: 0px -1px 0px #636363;
|
||||||
}
|
}
|
||||||
#sidebar .sidebar-nav > li > a > span {
|
#sidebar .sidebar-nav > li span {
|
||||||
padding: 10px;
|
|
||||||
color: #B0B0B0;
|
color: #B0B0B0;
|
||||||
display: block;
|
display: block;
|
||||||
-webkit-text-shadow: 0px 1px 0px #000000;
|
-webkit-text-shadow: 0px 1px 0px #000000;
|
||||||
@@ -192,8 +186,15 @@ legend {
|
|||||||
-o-text-shadow: 0px 1px 0px #000000;
|
-o-text-shadow: 0px 1px 0px #000000;
|
||||||
text-shadow: 0px 1px 0px #000000;
|
text-shadow: 0px 1px 0px #000000;
|
||||||
}
|
}
|
||||||
#sidebar .sidebar-nav > li > a > span > i {
|
#sidebar .sidebar-nav > li a {
|
||||||
font-size: 1.7em;
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-nav > li i {
|
||||||
|
font-size: 1.6em;
|
||||||
|
line-height: 45px;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-nav > li.active i {
|
||||||
|
font-size: 2.2em;
|
||||||
}
|
}
|
||||||
#sidebar .sub-nav-block-list {
|
#sidebar .sub-nav-block-list {
|
||||||
top: 40px;
|
top: 40px;
|
||||||
@@ -274,7 +275,7 @@ legend {
|
|||||||
}
|
}
|
||||||
#sidebar .sub-nav-arrow {
|
#sidebar .sub-nav-arrow {
|
||||||
left: 53px;
|
left: 53px;
|
||||||
top: -10px;
|
top: -16px;
|
||||||
width: 0px;
|
width: 0px;
|
||||||
height: 0px;
|
height: 0px;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
@@ -282,7 +283,6 @@ legend {
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 8px 8px 8px 0;
|
border-width: 8px 8px 8px 0;
|
||||||
border-color: transparent #0088CC transparent transparent;
|
border-color: transparent #0088CC transparent transparent;
|
||||||
display: none\9; /* 用IE的去死 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -300,14 +300,15 @@ legend {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 1px;
|
border-radius: 50%/1px;
|
||||||
background-color: rgba(0, 136, 204, .3);
|
background-color: rgba(0, 136, 204, .6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Main Wrap */
|
/* Main Wrap */
|
||||||
#main-wrap {
|
#main-wrap {
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
#main-wrap .wrap-inner {
|
#main-wrap .wrap-inner {
|
||||||
padding: 60px 20px 20px;
|
padding: 60px 20px 20px;
|
||||||
@@ -419,6 +420,7 @@ legend {
|
|||||||
/* Search Clear */
|
/* Search Clear */
|
||||||
.searchClear {
|
.searchClear {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.searchClear .icon-search {
|
.searchClear .icon-search {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -520,10 +522,9 @@ legend {
|
|||||||
padding: 0px 5px;
|
padding: 0px 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
max-width: 500px;
|
max-width: 300px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: #0088CC;
|
background-color: #0088CC;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
#sideset .ui-tooltip.sidebar-tooltip:after {
|
#sideset .ui-tooltip.sidebar-tooltip:after {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -533,10 +534,9 @@ legend {
|
|||||||
padding: 0px 5px;
|
padding: 0px 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
max-width: 500px;
|
max-width: 300px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: #000000;
|
background-color: #000000;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
.ui-tooltip:after {
|
.ui-tooltip:after {
|
||||||
content: '';
|
content: '';
|
||||||
@@ -551,6 +551,135 @@ legend {
|
|||||||
border-color: #000000 transparent transparent transparent;
|
border-color: #000000 transparent transparent transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sign In */
|
||||||
|
#sign-in {
|
||||||
|
background-color: #F3F3F3;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background : -webkit-radial-gradient(center center,circle cover, #F3F3F3 10%, #DBDBDB 100%);
|
||||||
|
background : -moz-radial-gradient(center center,circle cover, #F3F3F3 10%, #DBDBDB 100%);
|
||||||
|
background : -o-radial-gradient(center center,circle cover, #F3F3F3 10%, #DBDBDB 100%);
|
||||||
|
background : -ms-radial-gradient(center center,circle cover, #F3F3F3 10%, #DBDBDB 100%);
|
||||||
|
background : -radial-gradient(center center,circle cover, #F3F3F3 10%, #DBDBDB 100%);
|
||||||
|
}
|
||||||
|
.sign-in {
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
|
width: 300px;
|
||||||
|
margin: 150px auto 0;
|
||||||
|
}
|
||||||
|
.sign-in .other-sign-in {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.sign-in .login-logo {
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
border-bottom: 1px solid #ededed;
|
||||||
|
}
|
||||||
|
.sign-in .alert {
|
||||||
|
box-shadow: 0 3px 10px #CBCBCB;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.sign-in .form {
|
||||||
|
background-color: #FFF;
|
||||||
|
box-shadow: 0 10px 20px #CBCBCB;
|
||||||
|
padding: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.sign-in .form-block {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.sign-in .form-list {
|
||||||
|
width: 555px;
|
||||||
|
}
|
||||||
|
.sign-in .content {
|
||||||
|
float: left;
|
||||||
|
margin-bottom: 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.sign-in .content + .content {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
.sign-in .control-group {
|
||||||
|
position: relative;
|
||||||
|
width: 270px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.sign-in .control-group label {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 39px;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
margin: 0;
|
||||||
|
color: #5C5C5C;
|
||||||
|
}
|
||||||
|
.sign-in .control-group input {
|
||||||
|
width: 222px;
|
||||||
|
height: 30px;
|
||||||
|
padding: 4px 6px 4px 40px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
.sign-in .btn {
|
||||||
|
padding: 4px 0;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.sign-in .other-sign-in {
|
||||||
|
position: relative;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
border-bottom: 1px solid #ededed;
|
||||||
|
}
|
||||||
|
.sign-in .other-sign-in p {
|
||||||
|
position: absolute;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
background-color: #FFF;
|
||||||
|
padding: 0 10px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-left: -25px;
|
||||||
|
line-height: 30px;
|
||||||
|
left: 50%;
|
||||||
|
bottom: -15px;
|
||||||
|
font-size: 1.3em;
|
||||||
|
color: #b1b1b1;
|
||||||
|
}
|
||||||
|
.sign-in .checkbox {
|
||||||
|
position: absolute;
|
||||||
|
text-align: left;
|
||||||
|
bottom: 37px;
|
||||||
|
}
|
||||||
|
.sign-in .switchboard {
|
||||||
|
color: #08C;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.sign-in .switchboard span,
|
||||||
|
.sign-in .switchboard.active i {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.sign-in .switchboard.active span,
|
||||||
|
.sign-in .switchboard i {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.register {
|
||||||
|
box-shadow: inset 0 5px 5px #E0E0E0;
|
||||||
|
background-color: #eee;
|
||||||
|
padding: 15px;
|
||||||
|
margin: 15px -15px -15px;
|
||||||
|
}
|
||||||
|
.register .btn {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.have-other-sign-in {
|
||||||
|
margin: 80px auto 0;
|
||||||
|
}
|
||||||
|
.have-other-sign-in .other-sign-in {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
/* IE go die */
|
/* IE go die */
|
||||||
:root #sidebar .sub-nav-block:before {
|
:root #sidebar .sub-nav-block:before {
|
||||||
display: block\9;
|
display: block\9;
|
||||||
|
|||||||
@@ -19,6 +19,18 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.form_fix {
|
||||||
|
textarea {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
input[type="text"] {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
input[type="text"] + input {
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
// fixed width column with 12px gutter
|
// fixed width column with 12px gutter
|
||||||
// 276px width for 8 columns
|
// 276px width for 8 columns
|
||||||
// 420px width for 12 columns
|
// 420px width for 12 columns
|
||||||
|
|||||||
@@ -323,6 +323,29 @@ a.admtxt.admbg2:hover {
|
|||||||
float: left; }
|
float: left; }
|
||||||
.docklist .d_cate:hover .dock_child {
|
.docklist .d_cate:hover .dock_child {
|
||||||
display: block; }
|
display: block; }
|
||||||
|
.disable {
|
||||||
|
opacity: .3;
|
||||||
|
}
|
||||||
|
.disable a {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
.private {
|
||||||
|
position: relative;
|
||||||
|
padding-right: 10px;
|
||||||
|
width: 300px;
|
||||||
|
opacity: .3 !important;
|
||||||
|
}
|
||||||
|
.private:after {
|
||||||
|
content: "\e073";
|
||||||
|
display: inline-block;
|
||||||
|
font-family: 'entypo';
|
||||||
|
font-size: 1.5em;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: inherit;
|
||||||
|
top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.fn_des.admtxt {
|
.fn_des.admtxt {
|
||||||
line-height: 60px;
|
line-height: 60px;
|
||||||
@@ -714,7 +737,8 @@ a.admtxt.admbg2:hover {
|
|||||||
|
|
||||||
/* list item */
|
/* list item */
|
||||||
.list_t_item {
|
.list_t_item {
|
||||||
overflow: hidden; }
|
overflow: hidden;
|
||||||
|
height: 100px; }
|
||||||
|
|
||||||
.list_t_title {
|
.list_t_title {
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
@@ -748,7 +772,8 @@ a.admtxt.admbg2:hover {
|
|||||||
-webkit-text-size-adjust: none; }
|
-webkit-text-size-adjust: none; }
|
||||||
.list_item_function a :first-child {
|
.list_item_function a :first-child {
|
||||||
margin-left: 0; }
|
margin-left: 0; }
|
||||||
.datalist_item:hover .list_item_function {
|
.datalist_item:hover .list_item_function,
|
||||||
|
.list_t_item:hover .list_item_function {
|
||||||
bottom: 0; }
|
bottom: 0; }
|
||||||
|
|
||||||
/* App */
|
/* App */
|
||||||
|
|||||||
@@ -125,6 +125,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#list-view .checkbox-card li {
|
||||||
|
-webkit-transition: none;
|
||||||
|
-moz-transition: none;
|
||||||
|
-o-transition: none;
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Responsive */
|
/* Responsive */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
/* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */
|
||||||
|
|
||||||
|
/*<!--breakpoint-->*/
|
||||||
|
.breakpoints {width: .8em;}
|
||||||
|
.breakpoint { color: #822; }
|
||||||
|
|
||||||
|
/*<!--match-->*/
|
||||||
|
span.CodeMirror-matchhighlight { background: #494949 }
|
||||||
|
.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; }
|
||||||
|
|
||||||
|
/*<!--activeline-->*/
|
||||||
|
.activeline {background: #253540 !important;}
|
||||||
|
|
||||||
|
.cm-s-midnight.CodeMirror {
|
||||||
|
background: #0F192A;
|
||||||
|
color: #D1EDFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
|
||||||
|
|
||||||
|
.cm-s-midnight div.CodeMirror-selected {background: #314D67 !important;}
|
||||||
|
.cm-s-midnight .CodeMirror-gutters {background: #0F192A; border-right: 1px solid;}
|
||||||
|
.cm-s-midnight .CodeMirror-linenumber {color: #D0D0D0;}
|
||||||
|
.cm-s-midnight .CodeMirror-cursor {
|
||||||
|
border-left: 1px solid #F8F8F0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-midnight span.cm-comment {color: #428BDD;}
|
||||||
|
.cm-s-midnight span.cm-atom {color: #AE81FF;}
|
||||||
|
.cm-s-midnight span.cm-number {color: #D1EDFF;}
|
||||||
|
|
||||||
|
.cm-s-midnight span.cm-property, .cm-s-tropicaleve span.cm-attribute {color: #A6E22E;}
|
||||||
|
.cm-s-midnight span.cm-keyword {color: #E83737;}
|
||||||
|
.cm-s-midnight span.cm-string {color: #1DC116;}
|
||||||
|
|
||||||
|
.cm-s-midnight span.cm-variable {color: #FFAA3E;}
|
||||||
|
.cm-s-midnight span.cm-variable-2 {color: #FFAA3E;}
|
||||||
|
.cm-s-midnight span.cm-def {color: #4DD;}
|
||||||
|
.cm-s-midnight span.cm-error {background: #F92672; color: #F8F8F0;}
|
||||||
|
.cm-s-midnight span.cm-bracket {color: #D1EDFF;}
|
||||||
|
.cm-s-midnight span.cm-tag {color: #008;}
|
||||||
|
.cm-s-midnight span.cm-link {color: #AE81FF;}
|
||||||
|
|
||||||
|
.cm-s-midnight .CodeMirror-matchingbracket {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.typ { color: #FFAA3E; }
|
||||||
|
.atn { color: #606; }
|
||||||
|
.atv { color: #080; }
|
||||||
|
.dec { color: #606; }
|
||||||
+20
-18
@@ -1,21 +1,23 @@
|
|||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/ambiance-mobile.css);
|
/*
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/ambiance.css);
|
*= require 'lib/codemirror/theme/ambiance-mobile'
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/blackboard.css);
|
*= require "lib/codemirror/theme/ambiance"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/cobalt.css);
|
*= require "lib/codemirror/theme/blackboard"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/eclipse.css);
|
*= require "lib/codemirror/theme/cobalt"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/elegant.css);
|
*= require "lib/codemirror/theme/eclipse"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/erlang-dark.css);
|
*= require "lib/codemirror/theme/elegant"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/midnight.css);
|
*= require "lib/codemirror/theme/erlang-dark"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/monokai.css);
|
*= require "lib/codemirror/theme/midnight"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/neat.css);
|
*= require "lib/codemirror/theme/monokai"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/night.css);
|
*= require "lib/codemirror/theme/neat"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/rubyblue.css);
|
*= require "lib/codemirror/theme/night"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/solarized.css);
|
*= require "lib/codemirror/theme/rubyblue"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/theme.css);
|
*= require "lib/codemirror/theme/solarized"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/twilight.css);
|
*= require "lib/codemirror/theme/theme"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/vibrant-ink.css);
|
*= require "lib/codemirror/theme/twilight"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/xq-dark.css);
|
*= require "lib/codemirror/theme/vibrant-ink"
|
||||||
@import url(/orbit_4.0.1/assets/stylesheets/lib/codemirror/theme/xq-light.css);
|
*= require "lib/codemirror/theme/xq-dark"
|
||||||
|
*= require "lib/codemirror/theme/xq-light"
|
||||||
|
*/
|
||||||
.cm-tab {
|
.cm-tab {
|
||||||
border-left: 1px solid rgba(200, 200, 200, .2);
|
border-left: 1px solid rgba(200, 200, 200, .2);
|
||||||
}
|
}
|
||||||
@@ -1,193 +0,0 @@
|
|||||||
/* Main List */
|
|
||||||
.main-list {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.main-list tbody {
|
|
||||||
border: 1px solid #dddddd;
|
|
||||||
}
|
|
||||||
.main-list thead {
|
|
||||||
border: 1px solid #454545;
|
|
||||||
}
|
|
||||||
.main-list thead th {
|
|
||||||
vertical-align: middle;
|
|
||||||
background-color: #454545;
|
|
||||||
white-space: nowrap;
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
|
||||||
.main-list tbody tr.disable td {
|
|
||||||
color: #C5C5C5;
|
|
||||||
background-color: #eeeeee;
|
|
||||||
}
|
|
||||||
.main-list tbody tr.disable td .label-info {
|
|
||||||
background-color: #999999;
|
|
||||||
}
|
|
||||||
.main-list tbody tr.active td:first-child {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.main-list tbody tr.active td:first-child:before {
|
|
||||||
content: "";
|
|
||||||
width: 0px;
|
|
||||||
height: 0px;
|
|
||||||
left: -21px;
|
|
||||||
top: 50%;
|
|
||||||
margin-top: -6px;
|
|
||||||
position: absolute;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 6px 0 6px 6px;
|
|
||||||
border-color: transparent transparent transparent #333333;
|
|
||||||
}
|
|
||||||
.main-list td {
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
}
|
|
||||||
.main-list td.action {
|
|
||||||
vertical-align: middle;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.main-list td.preview img {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.main-list td .banner-link {
|
|
||||||
width: 100px;
|
|
||||||
max-width: 120px;
|
|
||||||
display: inline-block;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.main-list td .file-list {
|
|
||||||
display: inline-block;
|
|
||||||
margin: 0 0 -6px;
|
|
||||||
}
|
|
||||||
.main-list td .file-list:after {
|
|
||||||
content: "";
|
|
||||||
clear: both;
|
|
||||||
display: block;
|
|
||||||
height: 0;
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
.main-list td .file-type {
|
|
||||||
position: relative;
|
|
||||||
list-style: none;
|
|
||||||
float: left;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.main-list td .file-type a {
|
|
||||||
background-color: #A6A6A6;
|
|
||||||
color: #FFFFFF;
|
|
||||||
margin-right: 10px;
|
|
||||||
padding: 2px 5px 2px 3px;
|
|
||||||
border-radius: 3px;
|
|
||||||
text-decoration: none;
|
|
||||||
text-shadow: 0px -1px 0px rgba(100, 100, 100, .6);
|
|
||||||
}
|
|
||||||
.main-list td .file-type i,
|
|
||||||
.main-forms fieldset .input-area .controls .file-type i {
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
margin-bottom: -1px;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.main-list td .file-type[class^="type-"] i,
|
|
||||||
.main-list td .file-type[class*=" type-"] i,
|
|
||||||
.main-forms fieldset .input-area .controls .file-type[class*=" type-"] i,
|
|
||||||
.main-forms fieldset .input-area .controls .file-type[class^="type-"] i {
|
|
||||||
background-image: url(/orbit_4.0.1/assets/images/file_type.png);
|
|
||||||
}
|
|
||||||
.file-type.type-pdf i {background-position: 0px 0px;}
|
|
||||||
.file-type.type-psd i {background-position: -16px 0px;}
|
|
||||||
.file-type.type-ai i {background-position: -32px 0px;}
|
|
||||||
.file-type.type-fla i {background-position: -48px 0px;}
|
|
||||||
.file-type.type-in i {background-position: -64px 0px;}
|
|
||||||
.file-type.type-acc i {background-position: 0px -16px;}
|
|
||||||
.file-type.type-do i {background-position: -16px -16px;}
|
|
||||||
.file-type.type-xl i {background-position: -32px -16px;}
|
|
||||||
.file-type.type-pp i {background-position: -48px -16px;}
|
|
||||||
.file-type.type-zip i {background-position: -64px -16px;}
|
|
||||||
.file-type.type-txt i {background-position: 0px -32px;}
|
|
||||||
.file-type.type-jp i {background-position: -16px -32px;}
|
|
||||||
.file-type.type-gif i {background-position: -32px -32px;}
|
|
||||||
.file-type.type-png i {background-position: -48px -32px;}
|
|
||||||
.file-type.type-audio i {background-position: -64px -32px;}
|
|
||||||
|
|
||||||
.main-list td .quick-edit {
|
|
||||||
height: 24px;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
.main-list td .quick-edit .nav {
|
|
||||||
display: none;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.main-list tr:hover .quick-edit .nav {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.main-list td .quick-edit .nav > li > a {
|
|
||||||
padding-top: 4px;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
border: 1px dotted #d1d1d1;
|
|
||||||
}
|
|
||||||
.main-list td .quick-edit .nav > li > a:hover {
|
|
||||||
border: 1px dotted transparent;
|
|
||||||
}
|
|
||||||
.main-list thead tr.sort-header th a {
|
|
||||||
padding: 8px;
|
|
||||||
margin: -8px;
|
|
||||||
display: block;
|
|
||||||
color: #FFFFFF;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.main-list thead tr.sort-header th.active a {
|
|
||||||
padding-bottom: 4px;
|
|
||||||
border-bottom: 4px solid #08c;
|
|
||||||
}
|
|
||||||
.main-list .footable-row-detail td {
|
|
||||||
padding: 0;
|
|
||||||
border-top: none;
|
|
||||||
}
|
|
||||||
.main-list .footable-row-detail td .footable-row-detail-inner {
|
|
||||||
display: none;
|
|
||||||
padding: 8px;
|
|
||||||
position: relative;
|
|
||||||
border-radius: 5px;
|
|
||||||
margin: 0 8px 8px;
|
|
||||||
background-color: #ededed;
|
|
||||||
}
|
|
||||||
.main-list .footable-row-detail td .footable-row-detail-inner:after {
|
|
||||||
display: block;
|
|
||||||
height: 0px;
|
|
||||||
width: 0px;
|
|
||||||
position: absolute;
|
|
||||||
top: -6px;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -3px;
|
|
||||||
content: "";
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 0 6px 6px 6px;
|
|
||||||
border-color: transparent transparent #ededed transparent;
|
|
||||||
}
|
|
||||||
.main-list .footable-row-detail td .footable-row-detail-inner div {
|
|
||||||
margin: 10px 0;
|
|
||||||
}
|
|
||||||
#preview .preview {
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* For Retina */
|
|
||||||
@media screen and (-webkit-min-device-pixel-ratio: 2), screen and (max--moz-device-pixel-ratio: 2) {
|
|
||||||
.main-list td .file-type[class^="type-"] i,
|
|
||||||
.main-list td .file-type[class*=" type-"] i,
|
|
||||||
.main-forms fieldset .input-area .controls .file-type[class*=" type-"] i,
|
|
||||||
.main-forms fieldset .input-area .controls .file-type[class^="type-"] i {
|
|
||||||
background-image: url(/orbit_4.0.1/assets/images/file_type@2x.png);
|
|
||||||
background-size: 80px 48px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Responsive */
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
.main-list td .quick-edit .nav {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -39,6 +39,13 @@
|
|||||||
.main-list td {
|
.main-list td {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
.main-list td input[type="text"] {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-left: -.4em;
|
||||||
|
margin-right: 3px;
|
||||||
|
padding: 0 .3em;
|
||||||
|
width: 4em;
|
||||||
|
}
|
||||||
.main-list td.action {
|
.main-list td.action {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|||||||
@@ -10,6 +10,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* List */
|
/* List */
|
||||||
|
#list-view #member-list tr.highlight td {
|
||||||
|
background-color: #FFFAE5;
|
||||||
|
}
|
||||||
|
#list-view #member-list tr.highlight td:first-child {
|
||||||
|
padding: 0
|
||||||
|
}
|
||||||
#list-view #member-list .gender,
|
#list-view #member-list .gender,
|
||||||
#list-view #member-list td[class^="gender-"] {
|
#list-view #member-list td[class^="gender-"] {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
@@ -189,6 +195,10 @@
|
|||||||
#list-view #member-card > li:hover .member-avatar .action {
|
#list-view #member-card > li:hover .member-avatar .action {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
#list-view #member-card .highlight {
|
||||||
|
background-color: #F0F0F0;
|
||||||
|
outline: 1px dashed #9E9E9E;
|
||||||
|
}
|
||||||
#list-view #member-card .member-avatar {
|
#list-view #member-card .member-avatar {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
|
|||||||
@@ -29,6 +29,9 @@
|
|||||||
.topnav .btn-group {
|
.topnav .btn-group {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
.topnav .view-switch {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Bottom Nav */
|
/* Bottom Nav */
|
||||||
.bottomnav {
|
.bottomnav {
|
||||||
|
|||||||
@@ -223,7 +223,7 @@
|
|||||||
|
|
||||||
#orbit-bar {
|
#orbit-bar {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: "Chivo";
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|||||||
@@ -22,8 +22,10 @@ class Admin::AdImagesController < Admin::AdBannersController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
@ad_image = AdImage.find(params[:id])
|
@ad_banner = AdBanner.find params[:ad_banner][:id]
|
||||||
|
@ad_image = AdImage.find(params[:ad_image][:id])
|
||||||
@ad_image.update_attributes(params[:ad_image])
|
@ad_image.update_attributes(params[:ad_image])
|
||||||
|
@ad_banner.ad_images << @ad_image
|
||||||
redirect_to admin_ad_images_path
|
redirect_to admin_ad_images_path
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -38,10 +40,10 @@ class Admin::AdImagesController < Admin::AdBannersController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
# @ad_banner = AdBanner.find params[:ad_banner][:id]
|
@ad_banner = AdBanner.find params[:ad_banner][:id]
|
||||||
@ad_image = AdImage.new params[:ad_image]
|
@ad_image = AdImage.new params[:ad_image]
|
||||||
#@ad_image.to_save = true
|
@ad_image.to_save = true
|
||||||
#@ad_banner.ad_images << ad_image
|
@ad_banner.ad_images << @ad_image
|
||||||
|
|
||||||
if @ad_image.save
|
if @ad_image.save
|
||||||
redirect_to admin_ad_images_path
|
redirect_to admin_ad_images_path
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ class Admin::ItemsController < OrbitBackendController
|
|||||||
|
|
||||||
def update_position
|
def update_position
|
||||||
item = Item.find(params[:id])
|
item = Item.find(params[:id])
|
||||||
item.shift_to(params[:parent_id], params[:position])
|
item.shift_to(params[:parent_id], params[:position].to_i)
|
||||||
render :nothing => true
|
render :nothing => true, status: 200
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -4,19 +4,19 @@ class Admin::PluginsController < ApplicationController
|
|||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
||||||
@plugins = OrbitApp::Plugin::Registration.all
|
@plugins = OrbitApp::Plugin::Registration.all
|
||||||
|
|
||||||
if(!params[:show_plugin_profile].nil?)
|
if(!params[:show_plugin_profile].nil?)
|
||||||
|
|
||||||
@right_partial = OrbitApp::Plugin::Registration.find_by_key(params[:show_plugin_profile]).admin_partial_path
|
@right_partial = OrbitApp::Plugin::Registration.find_by_app_name(params[:show_plugin_profile]).admin_partial_path
|
||||||
|
|
||||||
if !@right_partial.blank?
|
if !@right_partial.blank?
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to( @right_partial ) }
|
format.html { redirect_to( @right_partial ) }
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@right_partial = ""
|
@right_partial = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
@right_partial = ""
|
@right_partial = ""
|
||||||
|
|||||||
@@ -83,9 +83,18 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
||||||
@user = User.find(params[:id])
|
@user = User.find(params[:id])
|
||||||
|
|
||||||
@plugins = OrbitApp::Plugin::Registration.all
|
@plugins = OrbitApp::Plugin::Registration.all
|
||||||
|
|
||||||
|
@ppname = Array.new
|
||||||
|
@plugins.each do |aa|
|
||||||
|
@ppname << [aa.sort_number.to_i, [aa.name, aa.app_name, aa.intro_app_name, aa.front_partial_path]]
|
||||||
|
end
|
||||||
|
@plugin_shows = @ppname.sort.collect {|v| {"name"=>v[1][0],"app_name"=>v[1][1],"intro_app_name"=>v[1][2],"front_partial_path"=>v[1][3]} }
|
||||||
|
|
||||||
|
|
||||||
@profile_data = []
|
@profile_data = []
|
||||||
@teacher_data = []
|
@teacher_data = []
|
||||||
@student_data = []
|
@student_data = []
|
||||||
@@ -240,6 +249,58 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def edit_order_card
|
||||||
|
@users = User.not_guest_user
|
||||||
|
@type = 'card'
|
||||||
|
render 'edit_order'
|
||||||
|
end
|
||||||
|
|
||||||
|
def edit_order_list
|
||||||
|
@users = User.not_guest_user
|
||||||
|
@type = 'list'
|
||||||
|
render 'edit_order'
|
||||||
|
end
|
||||||
|
|
||||||
|
def update_order_card
|
||||||
|
@error = false
|
||||||
|
if params[:users].present?
|
||||||
|
to_go = params[:users][:position].to_i
|
||||||
|
user_at_position = User.where(position: to_go).first
|
||||||
|
user = User.find(params[:users][:id])
|
||||||
|
if user_at_position
|
||||||
|
if user.position > user_at_position.position
|
||||||
|
user.move_above(user_at_position)
|
||||||
|
else
|
||||||
|
user.move_below(user_at_position)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
render nothing: true, status: 200
|
||||||
|
end
|
||||||
|
|
||||||
|
def update_order_list
|
||||||
|
@error = []
|
||||||
|
if params[:users].present?
|
||||||
|
params[:users].values.sort.each do |pair|
|
||||||
|
to_go = pair[0].to_i
|
||||||
|
if to_go > 0
|
||||||
|
user_at_position = User.where(position: to_go - 1).first
|
||||||
|
user = User.find(pair[1])
|
||||||
|
if user_at_position && !(user_at_position == user)
|
||||||
|
if user.position > user_at_position.position
|
||||||
|
user.move_above(user_at_position)
|
||||||
|
else
|
||||||
|
user.move_below(user_at_position)
|
||||||
|
end
|
||||||
|
elsif to_go > User.count
|
||||||
|
user.move_to_bottom
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@users = User.not_guest_user
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
def get_tags
|
def get_tags
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class ApplicationController < ActionController::Base
|
|||||||
helper_attr :site_valid_locales
|
helper_attr :site_valid_locales
|
||||||
|
|
||||||
def check_backend_openness
|
def check_backend_openness
|
||||||
if !Me.backend_openness_on
|
if Site.first.backend_openness_on
|
||||||
redirect_to '/users/sign_in' if not (authenticate_user! and is_member? )
|
redirect_to '/users/sign_in' if not (authenticate_user! and is_member? )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -321,7 +321,7 @@ class ApplicationController < ActionController::Base
|
|||||||
a << object if (value.include?(object.category.id.to_s) rescue nil)
|
a << object if (value.include?(object.category.id.to_s) rescue nil)
|
||||||
end
|
end
|
||||||
objects = a.uniq
|
objects = a.uniq
|
||||||
when 'tag'
|
when 'tags'
|
||||||
a = Array.new
|
a = Array.new
|
||||||
objects.each do |object|
|
objects.each do |object|
|
||||||
object.tags.each do |tag|
|
object.tags.each do |tag|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class DesktopAppsController < OrbitBackendController
|
class DesktopAppsController < ApplicationController
|
||||||
require "net/http"
|
require "net/http"
|
||||||
require "uri"
|
require "uri"
|
||||||
require 'zip/zip'
|
require 'zip/zip'
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class DesktopController< ApplicationController
|
|||||||
render :layout => "compatibility"
|
render :layout => "compatibility"
|
||||||
end
|
end
|
||||||
|
|
||||||
def desktop
|
def desktop_container
|
||||||
render :layout => false
|
render :layout => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class DesktopWidgetsController < OrbitBackendController
|
class DesktopWidgetsController < ApplicationController
|
||||||
require "net/http"
|
require "net/http"
|
||||||
require "uri"
|
require "uri"
|
||||||
require 'zip/zip'
|
require 'zip/zip'
|
||||||
|
|||||||
@@ -12,7 +12,16 @@ class FrontController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show_footer
|
def show_footer
|
||||||
render :text => @site.footer
|
@page = Page.find(:all, :conditions => {:name => /terms/i})
|
||||||
|
@name = @page.first.name
|
||||||
|
@url = "/#{@name}"
|
||||||
|
|
||||||
|
if !@site.enable_terms_of_use
|
||||||
|
render :text => (@site.footer + "<a href='#{@url}'>Terms of Use</a>")
|
||||||
|
else
|
||||||
|
render :text => @site.footer
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def show_menu
|
def show_menu
|
||||||
@@ -21,7 +30,15 @@ class FrontController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show_site_sub_menu
|
def show_site_sub_menu
|
||||||
render :text => @site.sub_menu
|
@page = Page.find(:all, :conditions => {:name => /sitemap/i})
|
||||||
|
@name = @page.first.name
|
||||||
|
@url = "/#{@name}"
|
||||||
|
|
||||||
|
if !@site.sitemap_menu_in_header
|
||||||
|
render :text => (@site.sub_menu + "<a href='#{@url}'>Sitemap</a>")
|
||||||
|
else
|
||||||
|
render :text => @site.sub_menu
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def show_sitemap
|
def show_sitemap
|
||||||
@@ -43,6 +60,11 @@ class FrontController < ApplicationController
|
|||||||
@tags = module_app.sorted_tags_for_cloud
|
@tags = module_app.sorted_tags_for_cloud
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def show_terms_of_use
|
||||||
|
@site = Site.first rescue nil
|
||||||
|
@terms = @site.terms_of_use
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def menu_level(page, current_page, current, menu)
|
def menu_level(page, current_page, current, menu)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class MobileController < ApplicationController
|
|||||||
|
|
||||||
def page
|
def page
|
||||||
@page_title = t('mobile.page')
|
@page_title = t('mobile.page')
|
||||||
@page_contexts = PageContext.where(:archived => false).page(params[:page_main]).per(15)
|
@page_contexts = get_sorted_page_from_structure
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_content
|
def page_content
|
||||||
@@ -57,4 +57,12 @@ class MobileController < ApplicationController
|
|||||||
@no_footer = true if request.path =~ /app/
|
@no_footer = true if request.path =~ /app/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def get_sorted_page_from_structure
|
||||||
|
page_contexts = Item.structure_ordered_items.inject([]){ |pages, page|
|
||||||
|
pages << page.page_contexts.where(archived: false).limit(1)[0] if page.is_a?(Page) && !page.page_contexts.blank?
|
||||||
|
pages
|
||||||
|
}
|
||||||
|
Kaminari.paginate_array(page_contexts).page(params[:page]).per(15)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -9,7 +9,7 @@ class PagesController < ApplicationController
|
|||||||
|
|
||||||
if @item
|
if @item
|
||||||
delayed_impressionist(@item)
|
delayed_impressionist(@item)
|
||||||
render_page
|
render_page
|
||||||
else
|
else
|
||||||
redirect_to '/admin/dashboards',:notice=>t(:need_home)
|
redirect_to '/admin/dashboards',:notice=>t(:need_home)
|
||||||
# render :text => t(:need_home)
|
# render :text => t(:need_home)
|
||||||
@@ -19,6 +19,7 @@ class PagesController < ApplicationController
|
|||||||
def show
|
def show
|
||||||
#begin
|
#begin
|
||||||
@item = Item.first(:conditions => {:path => params[:page_name]})
|
@item = Item.first(:conditions => {:path => params[:page_name]})
|
||||||
|
|
||||||
if @item && @item.is_published && (@item.enabled_for.nil? ? true : @item.enabled_for.include?(I18n.locale.to_s))
|
if @item && @item.is_published && (@item.enabled_for.nil? ? true : @item.enabled_for.include?(I18n.locale.to_s))
|
||||||
delayed_impressionist(@item)
|
delayed_impressionist(@item)
|
||||||
case @item.class.to_s
|
case @item.class.to_s
|
||||||
@@ -26,7 +27,7 @@ class PagesController < ApplicationController
|
|||||||
if params[:clicked_field_name]
|
if params[:clicked_field_name]
|
||||||
render_page({"clicked_field_name"=>params["clicked_field_name"]}) unless save_from_no_lang_for_page
|
render_page({"clicked_field_name"=>params["clicked_field_name"]}) unless save_from_no_lang_for_page
|
||||||
else
|
else
|
||||||
render_page(params) unless save_from_no_lang_for_page
|
render_page(params.except(:controller, :action, :page_name)) unless save_from_no_lang_for_page
|
||||||
end
|
end
|
||||||
when 'Link'
|
when 'Link'
|
||||||
redirect_to(@item[:url]) unless save_from_no_lang_for_page
|
redirect_to(@item[:url]) unless save_from_no_lang_for_page
|
||||||
@@ -113,7 +114,7 @@ class PagesController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_frontend_open
|
def check_frontend_open
|
||||||
if Me.frontend_closed && current_user.nil? #Need to be change
|
if Site.first.frontend_open && current_user.nil? #Need to be change
|
||||||
redirect_to '/admin/dashboards'
|
redirect_to '/admin/dashboards'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -271,11 +271,7 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show_avatar(user)
|
def show_avatar(user)
|
||||||
if (user.avatar? rescue false)
|
image_tag(user.avatar.thumb.url)
|
||||||
image_tag(user.avatar.thumb.url)
|
|
||||||
else
|
|
||||||
image_tag "person.png"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# NTU link
|
# NTU link
|
||||||
|
|||||||
+11
-8
@@ -45,15 +45,18 @@ class Item
|
|||||||
end
|
end
|
||||||
|
|
||||||
def shift_to(new_parent, position)
|
def shift_to(new_parent, position)
|
||||||
unless self.parent_id.to_s.eql?(new_parent) && self.position.eql?(position.to_i)
|
position = position.to_i
|
||||||
new_parent = Item.find(new_parent)
|
new_parent = Item.find(new_parent)
|
||||||
current_position_sibling = find_by_parent_and_position(new_parent, position.to_i)
|
current_position_sibling = find_by_parent_and_position(new_parent, position)
|
||||||
if current_position_sibling
|
if current_position_sibling
|
||||||
move_above(current_position_sibling)
|
if self.position > current_position_sibling.position
|
||||||
elsif self.parent != new_parent
|
self.move_above(current_position_sibling)
|
||||||
self.parent = new_parent
|
else
|
||||||
save
|
self.move_below(current_position_sibling)
|
||||||
end
|
end
|
||||||
|
elsif self.parent != new_parent
|
||||||
|
self.parent = new_parent
|
||||||
|
save
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -185,18 +185,18 @@ class ModuleApp
|
|||||||
user_ids = self.auth_approvals.inject([]) do |users, auth|
|
user_ids = self.auth_approvals.inject([]) do |users, auth|
|
||||||
users += auth.authorized_users.map{|user| user.id}
|
users += auth.authorized_users.map{|user| user.id}
|
||||||
end
|
end
|
||||||
update_attribute(:auth_approval_users, user_ids.uniq)
|
self.update_attribute(:auth_approval_users, user_ids.uniq)
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_auth_manager_users
|
def update_auth_manager_users
|
||||||
update_attribute(:auth_manager_users, self.auth_manager_authorized_users.map{|user| user.id})
|
self.update_attribute(:auth_manager_users, self.auth_manager_authorized_users.map{|user| user.id})
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_auth_sub_manager_users
|
def update_auth_sub_manager_users
|
||||||
user_ids = self.auth_sub_managers.inject([]) do |users, auth|
|
user_ids = self.auth_sub_managers.inject([]) do |users, auth|
|
||||||
users += auth.authorized_users.map{|user| user.id}
|
users += auth.authorized_users.map{|user| user.id}
|
||||||
end
|
end
|
||||||
update_attribute(:auth_sub_manager_users, user_ids.uniq)
|
self.update_attribute(:auth_sub_manager_users, user_ids.uniq)
|
||||||
end
|
end
|
||||||
|
|
||||||
def managers
|
def managers
|
||||||
|
|||||||
+4
-2
@@ -12,9 +12,11 @@ class Site
|
|||||||
field :private_key, :type => Binary
|
field :private_key, :type => Binary
|
||||||
field :public_key, :type => Binary
|
field :public_key, :type => Binary
|
||||||
|
|
||||||
field :frontend_closed, :type => Boolean, :default => false
|
field :frontend_open, :type => Boolean, :default => true
|
||||||
field :backend_openness_on, :type => Boolean, :default => false
|
field :backend_openness_on, :type => Boolean, :default => false
|
||||||
field :desktop_closed, :type => Boolean, :default => false
|
field :desktop_closed, :type => Boolean, :default => false
|
||||||
|
field :sitemap_menu_in_header, :type => Boolean, :default => false
|
||||||
|
field :enable_terms_of_use, :type => Boolean, :default => false
|
||||||
|
|
||||||
field :title_always_on, :type => Boolean, :default => false
|
field :title_always_on, :type => Boolean, :default => false
|
||||||
field :dashbroad_allow_visitor, :type => Boolean, :default => false
|
field :dashbroad_allow_visitor, :type => Boolean, :default => false
|
||||||
@@ -34,7 +36,7 @@ class Site
|
|||||||
field :title, localize: true
|
field :title, localize: true
|
||||||
field :footer, localize: true
|
field :footer, localize: true
|
||||||
field :sub_menu, localize: true
|
field :sub_menu, localize: true
|
||||||
field :terms_of_user, localize: true
|
field :terms_of_use, localize: true
|
||||||
field :google_analytics
|
field :google_analytics
|
||||||
field :default_locale
|
field :default_locale
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
class User
|
class User
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Tree
|
||||||
|
include Mongoid::Tree::Ordering # use mongoid-tree because mongoid-ordering needs mongoid(~>3.0)
|
||||||
include Mongoid::Timestamps
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable #, :timeoutable
|
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable #, :timeoutable
|
||||||
@@ -50,6 +52,7 @@ class User
|
|||||||
accepts_nested_attributes_for :attribute_values, :allow_destroy => true
|
accepts_nested_attributes_for :attribute_values, :allow_destroy => true
|
||||||
|
|
||||||
before_create :initialize_desktop
|
before_create :initialize_desktop
|
||||||
|
before_save :assign_default_position, :if => :assign_default_position?
|
||||||
before_save :rebuild_status_record
|
before_save :rebuild_status_record
|
||||||
scope :remote_account, where(:nccu_id.ne => nil)
|
scope :remote_account, where(:nccu_id.ne => nil)
|
||||||
scope :not_guest_user, all_of(:name.ne => "guest")
|
scope :not_guest_user, all_of(:name.ne => "guest")
|
||||||
@@ -287,7 +290,7 @@ class User
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
private
|
||||||
|
|
||||||
def rebuild_status_record
|
def rebuild_status_record
|
||||||
self.status_record = {}
|
self.status_record = {}
|
||||||
@@ -297,4 +300,9 @@ class User
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# override mongoid-tree's method
|
||||||
|
def assign_default_position?
|
||||||
|
!self['name'].eql?('guest') && (self.position.nil? || self.parent_id_changed?)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -21,6 +21,9 @@ class AvatarUploader < CarrierWave::Uploader::Base
|
|||||||
# def default_url
|
# def default_url
|
||||||
# "/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
# "/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
||||||
# end
|
# end
|
||||||
|
def default_url
|
||||||
|
[version_name, (Site.first.default_image.file.url rescue "person.png")].compact.join('_')
|
||||||
|
end
|
||||||
|
|
||||||
# Process files as they are uploaded:
|
# Process files as they are uploaded:
|
||||||
# process :scale => [200, 300]
|
# process :scale => [200, 300]
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label muted">Banner</label>
|
<label class="control-label muted">Banner</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= select_tag 'ad_banner[id]',options_from_collection_for_select(AdBanner.all, "id", "title",params[:ad_banner_id]) , :class=>"input-medium" %>
|
<%= select_tag 'ad_banner[id]',options_from_collection_for_select(AdBanner.all, "id", "title", @ad_image.ad_banner_id) , :class=>"input-medium" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -244,6 +244,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Form Actions -->
|
<!-- Form Actions -->
|
||||||
|
<%= f.hidden_field :id, :value => @ad_image.id %>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<%= f.submit t("submit"),:class=>"btn btn-primary" %>
|
<%= f.submit t("submit"),:class=>"btn btn-primary" %>
|
||||||
<%= f.submit t("cancel"),:class=>"btn ",:type => 'reset' %>
|
<%= f.submit t("cancel"),:class=>"btn ",:type => 'reset' %>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<li><%= link_to show_toggle_archive_btn(category) , toggle_admin_module_app_category_path(@module_app_id, category), method: :post, remote: true, class: "archive_toggle" %></li>
|
<li><%= link_to show_toggle_archive_btn(category) , toggle_admin_module_app_category_path(@module_app_id, category), method: :post, remote: true, class: "archive_toggle" %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if is_manager? || is_admin? %>
|
<% if is_manager? || is_admin? %>
|
||||||
<li><%= link_to t(:category_auth), admin_authorizations_path(@module_app.key, 'category', category.id) %></li>
|
<li><%= link_to t(:category_auth), admin_authorizations_path(@module_app.key, 'category_authorization', category.id) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="span1"><%= radio_button_tag 'design_default', design.id, (@site.design.id.to_s.eql?(design.id.to_s) ? true : false), :class => 'design_default', :rel => admin_sites_path %></td>
|
|
||||||
<td class="span7"><%= design.intro %></td>
|
<td class="span7"><%= design.intro %></td>
|
||||||
<td class="span2"><%= design.author %></td>
|
<td class="span2"><%= design.author %></td>
|
||||||
|
<td class="span1 active"><%= radio_button_tag 'design_default', design.id, (@site.design.id.to_s.eql?(design.id.to_s) ? true : false), :class => 'design_default toggle-check', :rel => admin_sites_path %></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="sort-header">
|
||||||
<th class="span1 strong"></th>
|
<th></th>
|
||||||
<th class="span2"></th>
|
<th class="first span3"><a href="#">Templates Title</a></th>
|
||||||
<th class="span1"></th>
|
<th data-hide="phone" class="active span3">Active</th>
|
||||||
<th class="span7"></th>
|
<th data-hide="phone" class="active span3">Date of purchase</th>
|
||||||
<th class="span2"></th>
|
<th data-hide="phone" class="active span3">Designer</th>
|
||||||
</tr>
|
<th class="span1"></th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tbody id="tbody_designs" class="sort-holder">
|
<tbody id="tbody_designs" class="sort-holder">
|
||||||
|
|||||||
@@ -18,5 +18,5 @@
|
|||||||
<%= f.text_field :intro %>
|
<%= f.text_field :intro %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= f.submit t(:update_) %>
|
<%= f.submit t(:update_), :class=>"btn btn-primary" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -2,7 +2,27 @@
|
|||||||
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :side_bar_content => 'admin/sites/side_bar'} %>
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :side_bar_content => 'admin/sites/side_bar'} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<h1><%= t('editing.design') %></h1>
|
<head>
|
||||||
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
||||||
|
<%= stylesheet_link_tag "lib/main-list"%>
|
||||||
|
<%= stylesheet_link_tag "lib/mt-list"%>
|
||||||
|
<%= stylesheet_link_tag "lib/filter"%>
|
||||||
|
<%= stylesheet_link_tag "lib/codemirror/theme/theme"%>
|
||||||
|
|
||||||
|
<%= javascript_include_tag 'codemirror/codemirror' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/jquery.codemirror' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/mode/css' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/mode/xml' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/mode/vbscript' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/mode/javascript' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/mode/htmlmixed' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/addon/edit/closetag' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/addon/edit/closebrackets' %>
|
||||||
|
<%= javascript_include_tag 'codemirror/util/formatting' %>
|
||||||
|
<%= javascript_include_tag 'lib/templates_code' %>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<h1><%= @design.title %></h1>
|
||||||
|
|
||||||
<ul class="nav nav-tabs" id="myTab">
|
<ul class="nav nav-tabs" id="myTab">
|
||||||
<li class="active"><a href="#info" data-toggle="tab"><%= t(:info) %></a></li>
|
<li class="active"><a href="#info" data-toggle="tab"><%= t(:info) %></a></li>
|
||||||
|
|||||||
@@ -2,6 +2,21 @@
|
|||||||
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :side_bar_content => 'admin/sites/side_bar'} %>
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :side_bar_content => 'admin/sites/side_bar'} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
||||||
|
<%= stylesheet_link_tag "lib/main-list"%>
|
||||||
|
<%= stylesheet_link_tag "lib/mt-list"%>
|
||||||
|
<%= stylesheet_link_tag "lib/filter"%>
|
||||||
|
<%= stylesheet_link_tag "lib/togglebox"%>
|
||||||
|
|
||||||
|
<%= javascript_include_tag 'lib/footable-0.1' %>
|
||||||
|
<%= javascript_include_tag 'lib/all-list' %>
|
||||||
|
<%= javascript_include_tag 'lib/retina' %>
|
||||||
|
<%= javascript_include_tag 'lib/mudole_templates_status' %>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<%= render 'filter' %>
|
<%= render 'filter' %>
|
||||||
<table class="table main-list">
|
<table class="table main-list">
|
||||||
<%= render 'designs' %>
|
<%= render 'designs' %>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<% node = Item.root %>
|
<% node = Item.root %>
|
||||||
|
<% unless node.nil? %>
|
||||||
<ol id='<%= node.id %>' class="sortable item-groups">
|
<ol id='<%= node.id %>' class="sortable item-groups">
|
||||||
<%= render 'node_and_children', node: node %>
|
<%= render 'node_and_children', node: node %>
|
||||||
</ol>
|
</ol>
|
||||||
|
<% end %>
|
||||||
<%= render 'layouts/delete_modal', delete_options: {remote: true} %>
|
<%= render 'layouts/delete_modal', delete_options: {remote: true} %>
|
||||||
|
|
||||||
<%= javascript_include_tag "lib/jquery.pageslide.js" %>
|
<%= javascript_include_tag "lib/jquery.pageslide.js" %>
|
||||||
@@ -2,86 +2,84 @@
|
|||||||
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% content_for :page_specific_css do %>
|
<head>
|
||||||
<%= stylesheet_link_tag 'normalize' %>
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
||||||
<%= stylesheet_link_tag 'bootstrap-responsive' %>
|
<%= stylesheet_link_tag "lib/main-list"%>
|
||||||
<%= stylesheet_link_tag 'rulingorbit' %>
|
<%= stylesheet_link_tag "lib/mt-list"%>
|
||||||
<%= stylesheet_link_tag 'module-store' %>
|
<%= stylesheet_link_tag "lib/filter"%>
|
||||||
<% end %>
|
<%= stylesheet_link_tag "lib/togglebox"%>
|
||||||
<% content_for :page_specific_javascript do %>
|
|
||||||
<%= javascript_include_tag "jquery.cycle" %>
|
|
||||||
<%= javascript_include_tag "modules" %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
<%= javascript_include_tag 'lib/footable-0.1' %>
|
||||||
<div id="toolbar">
|
<%= javascript_include_tag 'lib/all-list' %>
|
||||||
<div class="filter fn">
|
<%= javascript_include_tag 'lib/retina' %>
|
||||||
<span class="label">Price</span>
|
<%= javascript_include_tag 'lib/mudole_templates_status' %>
|
||||||
<div class="drop-menu ui">
|
</head>
|
||||||
<a href="" class="controller">
|
|
||||||
<span class="option-default">All</span>
|
<table id="mt-list" class="table main-list">
|
||||||
<span class="arrow down"></span>
|
<thead>
|
||||||
</a>
|
<tr class="sort-header">
|
||||||
<ul class="option-list">
|
<th class="first"><a href="#">Module Title</a></th>
|
||||||
<li><a class="option-item" href="">All</a></li>
|
<th data-hide="phone" class="active span3">Date of purchase</th>
|
||||||
<li><a class="option-item" href="">3000</a></li>
|
<th data-hide="all" class="active"><a href="#">Description</a></th>
|
||||||
<li><a class="option-item" href="">4000</a></li>
|
<th class="span2">Active</th>
|
||||||
<li><a class="option-item" href="">5000</a></li>
|
</tr>
|
||||||
</ul>
|
</thead>
|
||||||
</div>
|
<tbody>
|
||||||
</div>
|
<tr>
|
||||||
<div class="filter fn">
|
<td class="detail-row">
|
||||||
<span class="label">Category</span>
|
<div class="module_icon pull-left">
|
||||||
<div class="drop-menu ui">
|
<%= image_tag "module_icon.png"%>
|
||||||
<a href="" class="controller">
|
</div>
|
||||||
<span class="option-default">All</span>
|
<h5 class="mt_title"><span>Module Title</span><span class="muted">2.0.1</span></h5>
|
||||||
<span class="arrow down"></span>
|
<p class="mt_dev muted">Rulingcom</p>
|
||||||
</a>
|
</td>
|
||||||
<ul class="option-list">
|
<td class="detail-row">2013/07/12</td>
|
||||||
<li><a class="option-item" href="">All</a></li>
|
<td>
|
||||||
<li><a class="option-item" href="">National Taiwan University</a></li>
|
@detail
|
||||||
<li><a class="option-item" href="">Category 1</a></li>
|
</td>
|
||||||
<li><a class="option-item" href="">Category 2</a></li>
|
<td class="active"><button class="act btn btn-mini" type="button">Uninstall</button></td>
|
||||||
<li><a class="option-item" href="">Category 3</a></li>
|
</tr>
|
||||||
</ul>
|
<tr class="download">
|
||||||
</div>
|
<td class="detail-row">
|
||||||
</div>
|
<div class="module_icon pull-left">
|
||||||
<div class="filter fn">
|
<%= image_tag "module_icon.png"%>
|
||||||
<span class="label">Sort by</span>
|
</div>
|
||||||
<div class="drop-menu ui">
|
<h5 class="mt_title"><span>Module Title Module Title Module Title</span><span class="muted">2.0.1</span></h5>
|
||||||
<a href="" class="controller">
|
<p class="mt_dev muted">Rulingcom</p>
|
||||||
<span class="option-default">Date</span>
|
</td>
|
||||||
<span class="arrow down"></span>
|
<td class="detail-row">2013/07/12</td>
|
||||||
</a>
|
<td>
|
||||||
<ul class="option-list">
|
@detail
|
||||||
<li><a class="option-item" href="">Date</a></li>
|
</td>
|
||||||
<li><a class="option-item" href="">Popular</a></li>
|
<td class="active"><button class="act btn btn-mini btn-success" type="button">Download</button></td>
|
||||||
<li><a class="option-item" href="">Recent Upload</a></li>
|
</tr>
|
||||||
</ul>
|
<tr class="install">
|
||||||
</div>
|
<td class="detail-row">
|
||||||
</div>
|
<div class="module_icon pull-left">
|
||||||
</div>
|
<%= image_tag "module_icon.png"%>
|
||||||
<div id="feature" class="clearfix">
|
</div>
|
||||||
<div id="feature-nav">
|
<h5 class="mt_title"><span>Module Title</span><span class="muted">2.0.1</span></h5>
|
||||||
<ul>
|
<p class="mt_dev muted">Rulingcom</p>
|
||||||
<li><a href=""><img class="item-thumb" src="<%= asset_path "f1.jpg"%>" alt="Thumbnail 1" width="228" height="67"></a></li>
|
</td>
|
||||||
<li><a href=""><img class="item-thumb" src="<%= asset_path "f2.jpg"%>" alt="Thumbnail 2" width="228" height="67"></a></li>
|
<td class="detail-row">2013/07/12</td>
|
||||||
<li><a href=""><img class="item-thumb" src="<%= asset_path "f3.jpg"%>" alt="Thumbnail 3" width="228" height="67"></a></li>
|
<td>
|
||||||
</ul>
|
@detail
|
||||||
</div>
|
</td>
|
||||||
<div class="holder">
|
<td class="active"><button class="act btn btn-mini btn-primary" type="button">Install</button></td>
|
||||||
<ul>
|
</tr>
|
||||||
<li><a href=""><img class="item-thumb" src="<%= asset_path "f1.jpg"%>" alt="Thumbnail 1" width="740" height="220"></a></li>
|
<tr class="update">
|
||||||
<li><a href=""><img class="item-thumb" src="<%= asset_path "f2.jpg"%>" alt="Thumbnail 2" width="740" height="220"></a></li>
|
<td class="detail-row">
|
||||||
<li><a href=""><img class="item-thumb" src="<%= asset_path "f3.jpg"%>" alt="Thumbnail 3" width="740" height="220"></a></li>
|
<div class="module_icon pull-left">
|
||||||
</ul>
|
<%= image_tag "module_icon.png"%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<h5 class="mt_title"><span>Module Title</span><span class="muted">2.0.1</span></h5>
|
||||||
<div id="item-list">
|
<p class="mt_dev muted">Rulingcom</p>
|
||||||
<ul class="clearfix">
|
</td>
|
||||||
<% 12.times do |i| %>
|
<td class="detail-row">2013/07/12</td>
|
||||||
<li><a href="module_store/show?m=<%= i + 1 %>"><img src="/assets/module/thumb/mt<%= i + 1 %>.jpg" alt="" class="item-thumb"><span class="item-info"><b class="item-name">Module <%= i + 1 %></b><span class="item-price">Free</span></span></a></li>
|
<td>
|
||||||
<% end %>
|
@detail
|
||||||
</ul>
|
</td>
|
||||||
</div>
|
<td class="active"><button class="act btn btn-mini btn-info" type="button">Update</button></td>
|
||||||
</div>
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
@@ -5,6 +5,6 @@ $("#tags_index").html("<%= j render 'index' %>")
|
|||||||
$.pageslide.close();
|
$.pageslide.close();
|
||||||
openSlide();
|
openSlide();
|
||||||
$('.card').cardCheck({
|
$('.card').cardCheck({
|
||||||
check: $('.card input[type="checkbox"]'),
|
item: $('.card input[type="checkbox"]'),
|
||||||
});
|
});
|
||||||
checkedLength()
|
checkedLength()
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
<%= f.hidden_field :public_r_tag_object_id, :value => @part.page.id %>
|
<%= f.hidden_field :public_r_tag_object_id, :value => @part.page.id %>
|
||||||
<%#= f.select :public_r_tag_object_id, options_for_select([t(:horizontal), t(:vertical)], t(:horizontal)) %>
|
<%#= f.select :public_r_tag_object_id, options_for_select([t(:horizontal), t(:vertical)], t(:horizontal)) %>
|
||||||
<% elsif @r_tag.eql?('sitemap') %>
|
<% elsif @r_tag.eql?('sitemap') %>
|
||||||
|
<% elsif @r_tag.eql?('terms_of_use') %>
|
||||||
<% elsif @r_tag.eql?('breadcrumb') %>
|
<% elsif @r_tag.eql?('breadcrumb') %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= f.select :public_r_tag_object_id, options_from_collection_for_select(@tag_objects, :id, :title, :selected => @part.public_r_tag_object_id) %>
|
<%= f.select :public_r_tag_object_id, options_from_collection_for_select(@tag_objects, :id, :title, :selected => @part.public_r_tag_object_id) %>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
<%= link_to t(:all_plugin_summary)%>
|
<%= link_to t(:all_plugin_summary)%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% @plugins.each do |plugin| %>
|
<% @plugins.each do |plugin| %>
|
||||||
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %>
|
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.app_name ? "active" : nil) do %>
|
||||||
<%= link_to plugin.name, admin_plugins_path(:show_plugin_profile => plugin.name) %>
|
<%= link_to plugin.name, admin_plugins_path(:show_plugin_profile => plugin.app_name) %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,16 @@
|
|||||||
<% sitemap_block.children.each_with_index do |child, i| %>
|
<li class="map-block <%= 'disabled' if !sitemap_block.show_in_sitemap_for(temp_locale) %>">
|
||||||
<li "<%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
|
<h6>
|
||||||
|
<input type="checkbox" id="<%= sitemap_block.id %>" class="toggle-check onoff" temp_locale="<%= temp_locale %>" data-deploy="right">
|
||||||
|
<span><%= sitemap_block_counter + 1 %> <%= sitemap_block.title_translations[temp_locale] %></span>
|
||||||
|
</h6>
|
||||||
|
<ul>
|
||||||
|
<% sitemap_block.children.each_with_index do |child, i| %>
|
||||||
|
<li "clear <%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
|
||||||
<h6>
|
<h6>
|
||||||
<%= content_tag :button, :id => child.id, :temp_locale => temp_locale, :disabled => !child.show_in_sitemap_for(temp_locale) do %>
|
<input type="checkbox" id="<%= child.id %>" class="toggle-check onoff" temp_locale="<%= temp_locale %>" data-deploy="right">
|
||||||
<% end %>
|
|
||||||
<input type="checkbox" class="toggle-check" data-deploy="right">
|
|
||||||
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></span>
|
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></span>
|
||||||
</h6>
|
</h6>
|
||||||
</li>
|
</li>
|
||||||
<% end if sitemap_block.children %>
|
<% end if sitemap_block.children %>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
@@ -20,8 +20,7 @@
|
|||||||
|
|
||||||
<!-- Input Area -->
|
<!-- Input Area -->
|
||||||
<div class="input-area">
|
<div class="input-area">
|
||||||
|
<div class="nav-name"><strong>Classification</strong></div>
|
||||||
<div class="nav-name"><strong>Classification</strong></div>
|
|
||||||
<ul class="nav nav-pills language-nav">
|
<ul class="nav nav-pills language-nav">
|
||||||
<li class="active">
|
<li class="active">
|
||||||
<a href="#sidebar-nav" data-toggle="tab">Sidebar Nav</a>
|
<a href="#sidebar-nav" data-toggle="tab">Sidebar Nav</a>
|
||||||
@@ -114,10 +113,10 @@
|
|||||||
<!-- Openness -->
|
<!-- Openness -->
|
||||||
<div id="openness" class="tab-pane fade">
|
<div id="openness" class="tab-pane fade">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label muted"><%= I18n.t('site.frontend_closed')%></label>
|
<label class="control-label muted"><%= I18n.t('site.frontend_open')%></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= f.check_box :frontend_closed , :class=>"toggle-check"%>
|
<%= f.check_box :frontend_open , :class=>"toggle-check"%>
|
||||||
<span class="help-block">Only can be viewed by users logged in</span>
|
<span class="help-block">If Checked, the frontend will be open for all users.</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
@@ -191,7 +190,7 @@
|
|||||||
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a>
|
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a>
|
||||||
<div class="controls" data-toggle="buttons-checkbox">
|
<div class="controls" data-toggle="buttons-checkbox">
|
||||||
<label class="checkbox inline btn btn-danger fileupload-remove">
|
<label class="checkbox inline btn btn-danger fileupload-remove">
|
||||||
<% if @site.default_image.file %>
|
<% if @site.default_image.file.present? %>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<%= check_box_tag 'site[remove_default_image]' %>
|
<%= check_box_tag 'site[remove_default_image]' %>
|
||||||
<%= t(:delete_) %>
|
<%= t(:delete_) %>
|
||||||
|
|||||||
@@ -43,49 +43,48 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<% @site_valid_locales.each do |locale|%>
|
<!-- Description -->
|
||||||
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
<div class="control-group">
|
||||||
<div class="control-group">
|
<label class="control-label muted">Keywords</label>
|
||||||
<label class="control-label muted">Site Keywords</label>
|
<div class="controls">
|
||||||
<div class="controls">
|
<div class="tab-content textarea-lang">
|
||||||
<div class="tab-content textarea-lang">
|
<div class="btn-group" data-toggle="buttons-radio">
|
||||||
<div class="btn-group" data-toggle="buttons-radio">
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
<% @site_valid_locales.each do |locale|%>
|
<a class="btn <%= ( i == 0 ) ? "active" : '' %>" href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %></a>
|
||||||
<%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => "btn #{(active_when_current_locale_eq locale)}" %>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane fade active in" id="keywords_en_0">
|
|
||||||
<%= f.fields_for :keywords do |f| %>
|
|
||||||
<%= f.text_area locale, :class => "resizable",:rows=>3, :value => (@site.keywords(locale) rescue nil) %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<%end%>
|
|
||||||
<%end%>
|
|
||||||
|
|
||||||
<% @site_valid_locales.each do |locale|%>
|
|
||||||
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
|
||||||
<div class="control-group">
|
|
||||||
<label class="control-label muted">Site Description</label>
|
|
||||||
<div class="controls">
|
|
||||||
<div class="tab-content textarea-lang">
|
|
||||||
<div class="btn-group" data-toggle="buttons-radio">
|
|
||||||
<% @site_valid_locales.each do |locale|%>
|
|
||||||
<%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => "btn #{(active_when_current_locale_eq locale)}" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane fade active in" id="description_en_0">
|
|
||||||
<%= f.fields_for :description do |f| %>
|
|
||||||
<%= f.text_area locale, :class => "resizable",:rows=>3, :value => (@site.description(locale) rescue nil) %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<%end%>
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
<%end%>
|
<div class="tab-pane fade in <%= ( i == 0 ) ? "active" : '' %>" id="textarea_<%= locale %>_0">
|
||||||
|
<%= f.fields_for :keywords do |f| %>
|
||||||
|
<%= f.text_area locale, :class=>'resizable', :value => (@site.keywords(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label muted">Description</label>
|
||||||
|
<div class="controls">
|
||||||
|
<div class="tab-content textarea-lang">
|
||||||
|
<div class="btn-group" data-toggle="buttons-radio">
|
||||||
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
|
<a class="btn <%= ( i == 0 ) ? "active" : '' %>" href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %></a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
|
<div class="tab-pane fade in <%= ( i == 0 ) ? "active" : '' %>" id="textarea_<%= locale %>_0">
|
||||||
|
<%= f.fields_for :description do |f| %>
|
||||||
|
<%= f.text_area locale, :class=>'resizable', :value => (@site.description(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Form Actions -->
|
<!-- Form Actions -->
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
<!-- Always shoe in the title bar -->
|
<!-- Always shoe in the title bar -->
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label muted">Always show in the title bar
|
<label class="control-label muted"><%= t :always_display_title %>
|
||||||
</label>
|
</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= f.check_box :title_always_on, :class => "toggle-check" %>
|
<%= f.check_box :title_always_on, :class => "toggle-check" %>
|
||||||
@@ -70,12 +70,28 @@
|
|||||||
<%end%>
|
<%end%>
|
||||||
<%end%>
|
<%end%>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- CKeditor Site Footer -->
|
||||||
|
<% @site_valid_locales.each do |locale|%>
|
||||||
|
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
||||||
|
<label class="control-label muted"><%= t('site.footer')%></label>
|
||||||
|
<div class="controls">
|
||||||
|
<div class="textarea">
|
||||||
|
<%= f.fields_for :footer_translations do |f| %>
|
||||||
|
<%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.footer_translations[locale] rescue nil) %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<%end%>
|
||||||
|
<%end%>
|
||||||
|
|
||||||
<!-- Sitemap menu in Header -->
|
<!-- Sitemap menu in Header -->
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label muted">Sitemap menu in header
|
<label class="control-label muted">Sitemap menu in header
|
||||||
</label>
|
</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="checkbox" class="toggle-check" data-disabled="true">
|
<%= f.check_box :sitemap_menu_in_header, :class => "toggle-check" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -86,27 +102,25 @@
|
|||||||
<label class="control-label muted">Terms of Use
|
<label class="control-label muted">Terms of Use
|
||||||
</label>
|
</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="checkbox" class="toggle-check terms" data-disabled="true" checked="checked">
|
<%= f.check_box :enable_terms_of_use, :class => "toggle-check" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- CKeditor Default Terms of Use -->
|
<!-- CKeditor Site Footer -->
|
||||||
<div class="control-group input-content hide">
|
|
||||||
<% @site_valid_locales.each do |locale|%>
|
<% @site_valid_locales.each do |locale|%>
|
||||||
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
||||||
<label class="control-label muted">Default Terms of Use</label>
|
<label class="control-label muted"><%= t('site.default_terms_of_use')%></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="textarea">
|
<div class="textarea">
|
||||||
<%= f.fields_for :terms_of_user_translations do |f| %>
|
<%= f.fields_for :terms_of_use_translations do |f| %>
|
||||||
<%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.terms_of_user_translations[locale] rescue nil) %>
|
<%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.terms_of_use_translations[locale] rescue nil) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%end%>
|
<%end%>
|
||||||
<%end%>
|
<%end%>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- Form Actions -->
|
<!-- Form Actions -->
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
<head>
|
<head>
|
||||||
<!-- Meta -->
|
|
||||||
<!--#include virtual="/orbit_4.0.1/include/meta.html"-->
|
|
||||||
|
|
||||||
<!-- Basic CSS -->
|
|
||||||
<!--#include virtual="/orbit_4.0.1/include/basic_css.html"-->
|
|
||||||
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
||||||
<%= stylesheet_link_tag "lib/filter"%>
|
<%= stylesheet_link_tag "lib/filter"%>
|
||||||
<%= stylesheet_link_tag "lib/sitemap"%>
|
<%= stylesheet_link_tag "lib/sitemap"%>
|
||||||
@@ -17,23 +12,45 @@
|
|||||||
<% content_for :side_bar do %>
|
<% content_for :side_bar do %>
|
||||||
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<h3>Sitemap</h3>
|
||||||
|
|
||||||
<% content_for :page_specific_javascript do %>
|
<div id="sitemap">
|
||||||
<%= javascript_include_tag "lib/jquery.masonry.min.js" %>
|
<ul id="map-tree-language" class="nav nav-pills">
|
||||||
<script>
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
$(document).ready(function(){
|
<li <%= ( i == 0 ) ? "class=active" : '' %>>
|
||||||
$('.site-map').masonry({
|
<a data-toggle="tab" href="#<%= locale %>">
|
||||||
itemSelector: '.map-block',
|
<%= I18nVariable.from_locale(locale) %>
|
||||||
columnWidth: 260
|
</a>
|
||||||
});
|
</li>
|
||||||
$('a[data-toggle="tab"]').on('shown', function (e) {
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tab-content map-tree-content">
|
||||||
|
<div class="line"></div>
|
||||||
|
<% @site_valid_locales.each_with_index do |temp_locale, i| %>
|
||||||
|
<ul id="<%= temp_locale %>" class="map-tree tab-pane fade in <%= ( i == 0 ) ? "in active" : '' %>">
|
||||||
|
<%= render :partial => 'sitemap_block', :collection => @items, :locals => {:temp_locale => temp_locale} %>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% content_for :page_specific_javascript do %>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.site-map').masonry({
|
||||||
|
itemSelector: '.map-block',
|
||||||
|
columnWidth: 260
|
||||||
|
});
|
||||||
|
$('a[data-toggle="tab"]').on('shown', function (e) {
|
||||||
$('.site-map').masonry({
|
$('.site-map').masonry({
|
||||||
itemSelector: '.map-block',
|
itemSelector: '.map-block',
|
||||||
columnWidth: 260
|
columnWidth: 260
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
$(document).on('click', 'li .onoff', function () {
|
$(document).on('click', 'li .onoff', function () {
|
||||||
$(this).parents("li").toggleClass("disabled");
|
$(this).parents("li").toggleClass("disabled");
|
||||||
if($(this).parents("li").attr("class").indexOf("disabled") > 0){
|
if($(this).parents("li").attr("class").indexOf("disabled") > 0){
|
||||||
$(this).text("<%= t('off_upcase') %>")
|
$(this).text("<%= t('off_upcase') %>")
|
||||||
@@ -42,51 +59,20 @@
|
|||||||
}
|
}
|
||||||
$.getScript('<%= admin_sites_path %>' + '/' + $(this).attr('id') + '/sitemap_toggle?temp_locale=' + $(this).attr('temp_locale'));
|
$.getScript('<%= admin_sites_path %>' + '/' + $(this).attr('id') + '/sitemap_toggle?temp_locale=' + $(this).attr('temp_locale'));
|
||||||
});
|
});
|
||||||
$(document).on('click', 'h4 .onoff', function () {
|
$(document).on('click', 'h6 .onoff', function () {
|
||||||
$(this).parents(".map-block").toggleClass("disabled");
|
$(this).parents(".map-block").toggleClass("disabled");
|
||||||
if($(this).parents("h4").parents("div").attr("class").indexOf("disabled") > 0){
|
if($(this).parents("h6").parents("li").attr("class").indexOf("disabled") > 0){
|
||||||
$(this).text("<%= t('off_upcase') %>")
|
$(this).text("<%= t('off_upcase') %>")
|
||||||
$(this).parents(".map-block").find('li').addClass('disabled')
|
$(this).parents(".map-block").find('li').addClass('disabled')
|
||||||
$(this).parents(".map-block").find('button').text("<%= t('off_upcase') %>")
|
$(this).parents(".map-block").find('checkbox').text("<%= t('off_upcase') %>")
|
||||||
$(this).parents(".map-block").find('li button').attr('disabled', 'disabled')
|
// $(this).parents(".map-block").find('li checkbox').attr('disabled', 'disabled')
|
||||||
} else {
|
} else {
|
||||||
$(this).text("<%= t('on_upcase') %>")
|
$(this).text("<%= t('on_upcase') %>")
|
||||||
$(this).parents(".map-block").find('li').removeClass('disabled')
|
$(this).parents(".map-block").find('li').removeClass('disabled')
|
||||||
$(this).parents(".map-block").find('button').text("<%= t('on_upcase') %>")
|
$(this).parents(".map-block").find('checkbox').text("<%= t('on_upcase') %>")
|
||||||
$(this).parents(".map-block").find('li button').removeAttr("disabled")
|
// $(this).parents(".map-block").find('li checkbox').removeAttr("disabled")
|
||||||
}
|
}
|
||||||
$.getScript('<%= admin_sites_path %>' + '/' + $(this).attr('id') + '/sitemap_toggle?parent=true&temp_locale=' + $(this).attr('temp_locale'));
|
$.getScript('<%= admin_sites_path %>' + '/' + $(this).attr('id') + '/sitemap_toggle?parent=true&temp_locale=' + $(this).attr('temp_locale'));
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<section id="main-wrap">
|
|
||||||
<div class="wrap-inner">
|
|
||||||
|
|
||||||
<div id="sitemap">
|
|
||||||
<ul id="map-tree-language" class="nav nav-pills">
|
|
||||||
<% @site_valid_locales.each_with_index do |locale, i| %>
|
|
||||||
<li <%= ( i == 0 ) ? " class=active" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
<% @site_valid_locales.each_with_index do |temp_locale, i| %>
|
|
||||||
<div class="tab-content map-tree-content">
|
|
||||||
<div class="line"></div>
|
|
||||||
<ul id="<%= temp_locale %>" class="map-tree tab-pane fade <%= ( i == 0 ) ? "in active" : '' %>">
|
|
||||||
<%= render :partial => 'sitemap_block', :collection => @items, :locals => {:temp_locale => temp_locale} %>
|
|
||||||
</ul>
|
|
||||||
<% end %>
|
|
||||||
<br/><br/><br/>
|
|
||||||
|
|
||||||
|
|
||||||
<% @site_valid_locales.each_with_index do |temp_locale, i| %>
|
|
||||||
<div class="tab-pane site-map <%= temp_locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
|
|
||||||
<%= render :partial => 'sitemap_block', :collection => @items, :locals => {:temp_locale => temp_locale} %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
@@ -4,6 +4,6 @@ $("#tags_index").html("<%= j render 'index' %>")
|
|||||||
$.pageslide.close();
|
$.pageslide.close();
|
||||||
openSlide();
|
openSlide();
|
||||||
$('.card').cardCheck({
|
$('.card').cardCheck({
|
||||||
check: $('.card input[type="checkbox"]'),
|
item: $('.card input[type="checkbox"]'),
|
||||||
});
|
});
|
||||||
checkedLength()
|
checkedLength()
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<div id="list-view">
|
||||||
|
<div id="member-card" class="mini-layout-body">
|
||||||
|
<ul id="card-list" class="checkbox-card clearfix">
|
||||||
|
<% @users.each do |user| %>
|
||||||
|
<li class="filter-item" data-user-id="<%= user.id %>">
|
||||||
|
<label>
|
||||||
|
<div class="user-pic">
|
||||||
|
<%= show_avatar(user) %>
|
||||||
|
</div>
|
||||||
|
<span class="user-name"><%= user.name %></span>
|
||||||
|
<span><%= user.email %></span>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
dragMode();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<div id="list-view">
|
||||||
|
<table id="member-list" class="table main-list">
|
||||||
|
<thead>
|
||||||
|
<tr class="sort-header">
|
||||||
|
<th class="gender"></th>
|
||||||
|
<th class="span2"><a href="#"><%= t(:position) %></a></th>
|
||||||
|
<th class="span4"><a href="#"><%= t(:name) %></a></th>
|
||||||
|
<th><a href="#"><%= t(:email) %></a></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% @users.each do |user| %>
|
||||||
|
<%
|
||||||
|
case user.sex
|
||||||
|
when 'male'
|
||||||
|
user_sex = 'gender-man'
|
||||||
|
when 'female'
|
||||||
|
user_sex = 'gender-woman'
|
||||||
|
else
|
||||||
|
user_sex = 'gender-none'
|
||||||
|
end
|
||||||
|
%>
|
||||||
|
<tr id="<%= dom_id user %>">
|
||||||
|
<td class="<%= user_sex %>"></td>
|
||||||
|
<td><%= link_to user.position + 1, '#', class: 'edit_position', 'data-user-id' => user.id %></td>
|
||||||
|
<td><%= link_to user.name, admin_users_new_interface_path(user) %></td>
|
||||||
|
<td><%= user.email %></td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bottomnav clearfix">
|
||||||
|
<div class="action pull-right">
|
||||||
|
<%= link_to t(:update_), '#', class: "btn btn-primary pull-right" %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
typeMode();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
<div class="bottomnav clearfix">
|
<div class="bottomnav clearfix">
|
||||||
<div class="action pull-right">
|
<div class="action pull-right">
|
||||||
<% if is_admin? %>
|
<% if is_admin? %>
|
||||||
<%= link_to(new_admin_users_new_interface_path,:class=> "btn btn-primary pull-right") do%>
|
<%= link_to t(:edit_order), edit_order_list_admin_users_new_interface_index_path, :class => "btn btn-primary" %>
|
||||||
<i class="icon-plus"></i><%= t(:add)%>
|
<%= link_to(new_admin_users_new_interface_path,:class=> "btn btn-primary") do %>
|
||||||
<% end -%>
|
<i class="icon-plus"></i><%= t(:add) %>
|
||||||
<%end -%>
|
<% end -%>
|
||||||
</div>
|
<% end -%>
|
||||||
<div class="pagination pagination-centered">
|
</div>
|
||||||
<%= paginate @users, :params => {:inner => false}%>
|
<div class="pagination pagination-centered">
|
||||||
</div>
|
<%= paginate @users, :params => {:inner => false} %>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<%= link_to(content_tag(:i, nil, :class => 'icon-key'),'#',:class=>"key" ) if is_admin?%>
|
<%= link_to(content_tag(:i, nil, :class => 'icon-key'),'#',:class=>"key" ) if is_admin?%>
|
||||||
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'), admin_users_new_interface_path(user_for_summary, :at=>params[:at]), :confirm => t(:sure?), :method => :delete, :class=>"trash", :remote => true) if is_admin? %>
|
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'), admin_users_new_interface_path(user_for_summary, :at=>params[:at]), :confirm => t(:sure?), :method => :delete, :class=>"trash", :remote => true) if is_admin? %>
|
||||||
</div>
|
</div>
|
||||||
<%= show_avatar(user_for_summary) %>
|
<%= image_tag(user_for_summary.avatar) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="member-info">
|
<div class="member-info">
|
||||||
<h4 class="member-name"><%= link_to user_for_summary.name,admin_users_new_interface_path(user_for_summary)%></h4>
|
<h4 class="member-name"><%= link_to user_for_summary.name,admin_users_new_interface_path(user_for_summary)%></h4>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'), admin_users_new_interface_path(user_for_thumbnail, :at=>params[:at]), :confirm => t(:sure?), :method => :delete, :class=>"trash", :remote => true) if is_admin? %>
|
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'), admin_users_new_interface_path(user_for_thumbnail, :at=>params[:at]), :confirm => t(:sure?), :method => :delete, :class=>"trash", :remote => true) if is_admin? %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<%= show_avatar(user_for_thumbnail) %>
|
<%= image_tag(user_for_thumbnail.avatar) %>
|
||||||
</div>
|
</div>
|
||||||
<h4 class="member-name text-center"><%= link_to user_for_thumbnail.name,admin_users_new_interface_path(user_for_thumbnail)%></h4>
|
<h4 class="member-name text-center"><%= link_to user_for_thumbnail.name,admin_users_new_interface_path(user_for_thumbnail)%></h4>
|
||||||
</li>
|
</li>
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<% content_for :side_bar do %>
|
||||||
|
<%= render :partial => 'admin/users_new_interface/side_bar' %>
|
||||||
|
<% end %>
|
||||||
|
<% content_for :page_specific_css do %>
|
||||||
|
<%= stylesheet_link_tag "lib/member" %>
|
||||||
|
<%= stylesheet_link_tag "lib/checkbox-card" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% content_for :right_nav do %>
|
||||||
|
<div class="view-switch btn-group pull-right" data-toggle="buttons-radio">
|
||||||
|
<%= link_to content_tag(:i, nil, class: 'icon-list'), edit_order_list_admin_users_new_interface_index_path, class: "btn btn-small#{' active' if @type.eql?('list')}" %>
|
||||||
|
<%= link_to content_tag(:i, nil, class: 'icon-th'), edit_order_card_admin_users_new_interface_index_path, class: "btn btn-small#{' active' if @type.eql?('card')}" %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<div id="order_content">
|
||||||
|
<% case @type %>
|
||||||
|
<% when 'card' %>
|
||||||
|
<%= render 'edit_order_card' %>
|
||||||
|
<% when 'list' %>
|
||||||
|
<%= render 'edit_order_list' %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% content_for :page_specific_javascript do %>
|
||||||
|
<%= javascript_include_tag "jquery.ui.sortable" %>
|
||||||
|
<%= javascript_include_tag "lib/jquery.ui.touch-punch.min.js" %>
|
||||||
|
<%= javascript_include_tag "lib/jquery.lite.image.resize.js" %>
|
||||||
|
<%= javascript_include_tag "lib/member/sort.js.erb" %>
|
||||||
|
<% end %>
|
||||||
@@ -5,7 +5,6 @@
|
|||||||
<%= render :partial => "js_and_css"%>
|
<%= render :partial => "js_and_css"%>
|
||||||
|
|
||||||
<% content_for :page_specific_javascript do -%>
|
<% content_for :page_specific_javascript do -%>
|
||||||
<%= javascript_include_tag "lib/jquery.lite.image.resize.js" %>
|
|
||||||
<%= javascript_include_tag "lib/member/member.js" %>
|
<%= javascript_include_tag "lib/member/member.js" %>
|
||||||
<%= javascript_include_tag "lib/footable-0.1.js" %>
|
<%= javascript_include_tag "lib/footable-0.1.js" %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -51,9 +50,9 @@
|
|||||||
<a data-toggle="dropdown" class="dropdown-toggle" href="#">Module List <b class="caret"></b></a>
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">Module List <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
|
|
||||||
<% @plugins.each do |plugin| %>
|
<% @plugin_shows.each do |plugin| %>
|
||||||
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.app_name ? "active" : nil) do %>
|
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin["app_name"] ? "active" : nil) do %>
|
||||||
<%= link_to plugin.name, :show_plugin_profile => plugin.app_name %>
|
<%= link_to plugin["name"], :show_plugin_profile => plugin["app_name"] %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
$('#order_content').html("<%= j render 'edit_order_list' %>")
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
<%= render :partial => 'shared/search_header',:locals=>{:items=>@data} %>
|
<% if @data.present? %>
|
||||||
|
<%= render :partial => 'shared/search_header',:locals=>{:items=>@data} %>
|
||||||
<%= render @partial %>
|
<%= render @partial %>
|
||||||
<% if @paginate and !@data.blank? %>
|
<% if @paginate %>
|
||||||
<%= paginate @data, :param_name => :page_main, :params => {:same_page_id => @page_id} %>
|
<%= paginate @data, :param_name => :page_main, :params => {:same_page_id => @page_id} %>
|
||||||
<% elsif @page_part.module_app %>
|
<% elsif @page_part.module_app %>
|
||||||
<%= @page_part.module_app.get_registration.default_widget_setting.link_to_more_tag(request,params) %>
|
<%= @page_part.module_app.get_registration.default_widget_setting.link_to_more_tag(request,params) %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
File renamed without changes.
@@ -2,9 +2,9 @@
|
|||||||
<div id="side">
|
<div id="side">
|
||||||
<div id="rwidget" class="wh2 thmc4">
|
<div id="rwidget" class="wh2 thmc4">
|
||||||
<ul class="docklist">
|
<ul class="docklist">
|
||||||
<li class="d_cate"><a callback-method='initializeDesktop' href="desktop/desktop" class="widget_fn wh2 hh2" id='home' onclick="return false;"><span class="widget_icon"><img src="" alt="Home" id="home_icon" width="30" height="30"/></span></a>
|
<li class="d_cate"><a callback-method='initializeDesktop' href="desktop/desktop_container" class="widget_fn wh2 hh2" id='home' onclick="return false;" sub-menu="false"><span class="widget_icon"><img src="" alt="Home" id="home_icon" width="30" height="30"/></span></a>
|
||||||
<ul class="dock_child hh2 thmc4" style="width: 120px;">
|
<ul class="dock_child hh2 thmc4" style="width: 120px;">
|
||||||
<li class="dock_item"><a callback-method='initializeAppManager' href="<%= desktop_app_manager_path %>" class="widget_fn wh2 hh2" id="d_app_manager" onclick="return false;"><span class="widget_icon"><img src="" alt="App Manager" id="app_manager_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item"><a callback-method='initializeAppManager' href="<%= desktop_app_manager_path %>" class="widget_fn wh2 hh2" id="d_app_manager" onclick="return false;" sub-menu="false"><span class="widget_icon"><img src="" alt="App Manager" id="app_manager_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='initializeSettings' href="<%= desktop_settings_path %>" custom-load="settings" class="widget_fn wh2 hh2" id="d_settings" onclick="return false;"><span class="widget_icon"><img src="" alt="Settings" id="settings_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item"><a callback-method='initializeSettings' href="<%= desktop_settings_path %>" custom-load="settings" class="widget_fn wh2 hh2" id="d_settings" onclick="return false;"><span class="widget_icon"><img src="" alt="Settings" id="settings_icon" width="30" height="30"/></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -32,32 +32,32 @@
|
|||||||
<li class="dock_item"><a callback-method='initializePersonalExperience' href="<%= panel_personal_experience_desktop_experience_window_path %>" class="widget_fn wh2 hh2" id='d_working' onclick="return false;"><span class="widget_icon"><img src="" alt="Working" id="working_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item"><a callback-method='initializePersonalExperience' href="<%= panel_personal_experience_desktop_experience_window_path %>" class="widget_fn wh2 hh2" id='d_working' onclick="return false;"><span class="widget_icon"><img src="" alt="Working" id="working_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='initializePersonalDiploma' href="<%= panel_personal_diploma_desktop_diploma_window_path %>" class="widget_fn wh2 hh2" id='d_education' onclick="return false;"><span class="widget_icon"><img src="" alt="Education" id="education_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item"><a callback-method='initializePersonalDiploma' href="<%= panel_personal_diploma_desktop_diploma_window_path %>" class="widget_fn wh2 hh2" id='d_education' onclick="return false;"><span class="widget_icon"><img src="" alt="Education" id="education_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='initializePersonalHonor' href="<%= panel_personal_honor_desktop_honor_window_path %>" class="widget_fn wh2 hh2" id='d_honors' onclick="return false;"><span class="widget_icon"><img src="" alt="Honors" id="honors_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item"><a callback-method='initializePersonalHonor' href="<%= panel_personal_honor_desktop_honor_window_path %>" class="widget_fn wh2 hh2" id='d_honors' onclick="return false;"><span class="widget_icon"><img src="" alt="Honors" id="honors_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="activities" class="widget_fn wh2 hh2" id='d_activities' onclick="return false;"><span class="widget_icon"><img src="" alt="Activities" id="activities_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="activities" class="widget_fn wh2 hh2" id='d_activities' onclick="return false;"><span class="widget_icon disable"><img src="" alt="Activities" id="activities_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="clubs" class="widget_fn wh2 hh2" id='d_clubs' onclick="return false;"><span class="widget_icon"><img src="" alt="Clubs" id="clubs_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="clubs" class="widget_fn wh2 hh2" id='d_clubs' onclick="return false;"><span class="widget_icon"><img src="" alt="Clubs" id="clubs_icon" width="30" height="30"/></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="d_cate"><a callback-method='' href="" class="widget_fn wh2 hh2" id='d_landt' onclick="return false;"><span class="widget_icon"><img src="" alt="Learning & Teaching" id="landt_icon" width="30" height="30"/></span></a>
|
<li class="d_cate"><a callback-method='' href="" class="widget_fn wh2 hh2" id='d_landt' onclick="return false;"><span class="widget_icon"><img src="" alt="Learning & Teaching" id="landt_icon" width="30" height="30"/></span></a>
|
||||||
<ul class="dock_child hh2 thmc4" style="width: 180px;">
|
<ul class="dock_child hh2 thmc4" style="width: 180px;">
|
||||||
<li class="dock_item"><a callback-method='' href="courses" class="widget_fn wh2 hh2" id='d_courses' onclick="return false;"><span class="widget_icon"><img src="" alt="Courses" id="courses_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="courses" class="widget_fn wh2 hh2" id='d_courses' onclick="return false;"><span class="widget_icon"><img src="" alt="Courses" id="courses_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="homework" class="widget_fn wh2 hh2" id='d_homework' onclick="return false;"><span class="widget_icon"><img src="" alt="Homework" id="homework_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="homework" class="widget_fn wh2 hh2" id='d_homework' onclick="return false;"><span class="widget_icon"><img src="" alt="Homework" id="homework_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="certification" class="widget_fn wh2 hh2" id='d_certification' onclick="return false;"><span class="widget_icon"><img src="" alt="Certification" id="certification_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="certification" class="widget_fn wh2 hh2" id='d_certification' onclick="return false;"><span class="widget_icon"><img src="" alt="Certification" id="certification_icon" width="30" height="30"/></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="d_cate"><a callback-method='' href="" class="widget_fn wh2 hh2" id='d_personal' onclick="return false;"><span class="widget_icon"><img src="" alt="Personal" id="personal_icon" width="30" height="30"/></span></a>
|
<li class="d_cate"><a callback-method='' href="" class="widget_fn wh2 hh2" id='d_personal' onclick="return false;"><span class="widget_icon"><img src="" alt="Personal" id="personal_icon" width="30" height="30"/></span></a>
|
||||||
<ul class="dock_child hh2 thmc4" style="width: 300px;">
|
<ul class="dock_child hh2 thmc4" style="width: 300px;">
|
||||||
<li class="dock_item"><a callback-method='' href="mypage" class="widget_fn wh2 hh2" id='d_mypage' onclick="return false;"><span class="widget_icon"><img src="" alt="myPage" id="mypage_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="mypage" class="widget_fn wh2 hh2" id='d_mypage' onclick="return false;"><span class="widget_icon"><img src="" alt="myPage" id="mypage_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="blog" class="widget_fn wh2 hh2" id='d_blog' onclick="return false;"><span class="widget_icon"><img src="" alt="Blog" id="blog_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="blog" class="widget_fn wh2 hh2" id='d_blog' onclick="return false;"><span class="widget_icon"><img src="" alt="Blog" id="blog_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="album" class="widget_fn wh2 hh2" id='d_album' onclick="return false;"><span class="widget_icon"><img src="" alt="Album" id="album_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="album" class="widget_fn wh2 hh2" id='d_album' onclick="return false;"><span class="widget_icon"><img src="" alt="Album" id="album_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="calendar" class="widget_fn wh2 hh2" id='d_calendar' onclick="return false;"><span class="widget_icon"><img src="" alt="Calendar" id="calendar_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="calendar" class="widget_fn wh2 hh2" id='d_calendar' onclick="return false;"><span class="widget_icon"><img src="" alt="Calendar" id="calendar_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='' href="files" class="widget_fn wh2 hh2" id='d_files' onclick="return false;"><span class="widget_icon"><img src="" alt="Files" id="files_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="files" class="widget_fn wh2 hh2" id='d_files' onclick="return false;"><span class="widget_icon"><img src="" alt="Files" id="files_icon" width="30" height="30"/></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="d_cate"><a callback-method='initializeOrbitTimeline' href="<%= desktop_orbit_orbit_path %>" class="widget_fn wh2 hh2" id='d_orbit' onclick="return false;"><span class="widget_icon"><img src="" alt="Orbit" id="orbit_icon" width="30" height="30"/></span></a>
|
<li class="d_cate"><a callback-method='initializeOrbitTimeline' href="<%= desktop_orbit_orbit_path %>" class="widget_fn wh2 hh2" id='d_orbit' onclick="return false;"><span class="widget_icon"><img src="" alt="Orbit" id="orbit_icon" width="30" height="30"/></span></a>
|
||||||
<ul class="dock_child hh2 thmc4" style="width: 60px;">
|
<ul class="dock_child hh2 thmc4" style="width: 60px;">
|
||||||
<li class="dock_item"><a callback-method='' href="" class="widget_fn wh2 hh2" id='d_connection' onclick="return false;"><span class="widget_icon"><img src="" alt="Academia Connection" id="connection_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item disable"><a callback-method='' href="" class="widget_fn wh2 hh2" id='d_connection' onclick="return false;"><span class="widget_icon"><img src="" alt="Academia Connection" id="connection_icon" width="30" height="30"/></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="d_cate"><a callback-method='initializeAppstore' href="<%= desktop_appstore_appstore_path %>" class="widget_fn wh2 hh2" id='d_appstore' onclick="return false;"><span class="widget_icon"><img src="" alt="AppStore" id="appstore_icon" width="30" height="30"/></span></a></li>
|
<li class="d_cate disable"><a callback-method='initializeAppstore' href="<%= desktop_appstore_appstore_path %>" class="widget_fn wh2 hh2" id='d_appstore' onclick="return false;"><span class="widget_icon"><img src="" alt="AppStore" id="appstore_icon" width="30" height="30"/></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="fn_des hh2 admbg admtxt"></div>
|
<div class="fn_des hh2 admbg admtxt"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -92,10 +92,22 @@
|
|||||||
orbitDesktop.prototype.sectionId = "<%= @section.id %>";
|
orbitDesktop.prototype.sectionId = "<%= @section.id %>";
|
||||||
orbitDesktop.prototype.currentLanguage = "<%= I18n.locale %>";
|
orbitDesktop.prototype.currentLanguage = "<%= I18n.locale %>";
|
||||||
orbitDesktop.prototype.currentUsername = "<%= @currentusername %>";
|
orbitDesktop.prototype.currentUsername = "<%= @currentusername %>";
|
||||||
//uselessfunction();
|
|
||||||
var od = new orbitDesktop("#ajax_container");
|
var od = new orbitDesktop("#ajax_container");
|
||||||
if($.browser.msie){
|
var getInternetExplorerVersion = function(){
|
||||||
if($.browser.version < 9){
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
var version = getInternetExplorerVersion();
|
||||||
|
if( version != -1){
|
||||||
|
if(version < 9){
|
||||||
$.fx.off = true;
|
$.fx.off = true;
|
||||||
o.notify("We turn off the animation (javascript) for you, but still you can turn it on",10);
|
o.notify("We turn off the animation (javascript) for you, but still you can turn it on",10);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,30 +1,64 @@
|
|||||||
<h1 class="login-logo"><%= t(:ruling_site) %></h1>
|
<!-- Orbit Bar -->
|
||||||
<div id="signin-header">
|
<!--#include virtual="include/orbit_bar.html"-->
|
||||||
<h3><%= t(:login) %></h3>
|
<section id="main-wrap">
|
||||||
</div>
|
<div class="sign-in have-other-sign-in">
|
||||||
<div id="container" class="sign-in">
|
<!-- <p class="alert alert-error in fade">You need to sign in.</p>
|
||||||
<%= form_for resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => 'user_new form-horizontal'} do |f| %>
|
-->
|
||||||
<div class="content">
|
<% flash.each do |key, msg| %>
|
||||||
<% flash.each do |key, msg| %>
|
<%= content_tag :p, msg, :class => [key, "alert alert-error in fade"] %>
|
||||||
<%= content_tag :span, msg, :class => [key, "notice label label-warning"] %>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
<p class="alert hide">You need to sign in or sign up before continuing.</p>
|
<div class="form">
|
||||||
<div class="main">
|
<h3 class="login-logo">Log In to Orbit</h3>
|
||||||
<div class="control-group clear">
|
<div>
|
||||||
<%= f.label :user_id ,t("users.user_id")%>
|
<input name="utf8" type="hidden" value="" />
|
||||||
<%= f.text_field :user_id, :placeholder => t("users.user_id"), :style => "width: 330px;" %>
|
<input name="authenticity_token" type="hidden" value="" />
|
||||||
<span class="help-inline">Please correct the error</span>
|
</div>
|
||||||
</div>
|
<!-- <div class="other-sign-in">
|
||||||
<div class="control-group clear">
|
<a class="btn btn-primary" type="submit">Other Sign In</a>
|
||||||
<%= f.label :password,t("password") %>
|
<p>or</p>
|
||||||
<%= f.password_field :password, :placeholder => t(:dots), :style => "width: 330px;" %>
|
</div> -->
|
||||||
<span class="help-inline">Please correct the error</span>
|
<div class="form-block">
|
||||||
<%= link_to t(:forgot_password), new_user_password_path, :class => 'pull-right forgot hide' %>
|
<div class="form-list clearfix">
|
||||||
</div>
|
<form class="content" accept-charset="UTF-8" action="/users/sign_in" method="post">
|
||||||
</div>
|
<%= form_for resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => 'content'} do |f| %>
|
||||||
</div>
|
|
||||||
<div class="form-actions clear">
|
<div class="control-group clear">
|
||||||
<%= content_tag :button, t(:login), :type => :submit, :class => 'btn btn-primary pull-right' %>
|
<label for="user_email">
|
||||||
</div>
|
<i class="icon-user"></i>
|
||||||
<% end %>
|
</label>
|
||||||
</div>
|
<%= f.text_field :user_id, :placeholder => t("users.user_id"), :id=>"user_email" %>
|
||||||
|
</div>
|
||||||
|
<div class="control-group clear">
|
||||||
|
<label for="user_password">
|
||||||
|
<i class="icon-lock"></i>
|
||||||
|
</label>
|
||||||
|
<%= f.password_field :password, :placeholder => t(:dots), :id=>"user_password" %>
|
||||||
|
</div>
|
||||||
|
<%= content_tag :button, t(:login), :type => :submit, :class => 'btn btn-primary' %>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form class="content" accept-charset="UTF-8" action="/users/sign_in" method="post">
|
||||||
|
<div class="control-group clear">
|
||||||
|
<label for="user_email">
|
||||||
|
<i class="icon-user"></i>
|
||||||
|
</label>
|
||||||
|
<input type="text" id="user_id" name="user[id]" placeholder="帳號" />
|
||||||
|
</div>
|
||||||
|
<div class="control-group clear">
|
||||||
|
<label for="user_password">
|
||||||
|
<i class="icons-mail"></i>
|
||||||
|
</label>
|
||||||
|
<input type="text" id="user_email" name="user[email]" placeholder="電子郵件" />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="register">
|
||||||
|
<button class="btn btn-inverse" type="submit">Register</button>
|
||||||
|
</div> -->
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<script type='text/javascript' src='/assets/jquery.cycle.all.latest.js'></script>
|
<%= javascript_include_tag "lib/jquery.cycle.all.latest.js"%>
|
||||||
<div style='position:relative'>
|
<div style='position:relative'>
|
||||||
<ul id='banner_nav' class='clear banner_nav-<%= @ad_banner.title.dehumanize %>'></ul>
|
<ul id='banner_nav' class='clear banner_nav-<%= @ad_banner.title.dehumanize %>'></ul>
|
||||||
<div id='slideshow-<%= @ad_banner.title.dehumanize %>' class='slideshow'>
|
<div id='slideshow-<%= @ad_banner.title.dehumanize %>' class='slideshow'>
|
||||||
@@ -24,4 +24,4 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<%= @terms.html_safe %>
|
||||||
@@ -27,4 +27,20 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<% @url_path = "#{request.fullpath}".scan(/admin/)%>
|
||||||
|
<% if (@site.default_image.present? && (!@url_path.include? "admin"))%>
|
||||||
|
<style>
|
||||||
|
#orbit-bar .orbitlogo {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
background-size: 70%;
|
||||||
|
display: inline-block;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-image: url(<%= @site.default_image %>);
|
||||||
|
/* For Suck IE */
|
||||||
|
background-image: url(<%= @site.default_image%>)\9;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<% end %>
|
||||||
@@ -3,5 +3,4 @@
|
|||||||
<%= link_to content_tag(:i, nil, :class => (local_assigns.has_key? :icon) ? icon : 'icons-gauge'), (local_assigns.has_key? :link_url) ? link_url : admin_dashboards_path %>
|
<%= link_to content_tag(:i, nil, :class => (local_assigns.has_key? :icon) ? icon : 'icons-gauge'), (local_assigns.has_key? :link_url) ? link_url : admin_dashboards_path %>
|
||||||
</h2>
|
</h2>
|
||||||
<%= render ((local_assigns.has_key? :side_bar_content) ? side_bar_content : 'layouts/side_bar_content') %>
|
<%= render ((local_assigns.has_key? :side_bar_content) ? side_bar_content : 'layouts/side_bar_content') %>
|
||||||
<div class="sub-nav-arrow"></div>
|
|
||||||
</nav>
|
</nav>
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="sub-nav-arrow"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sub-nav-block-list">
|
<div class="sub-nav-block-list">
|
||||||
|
|||||||
@@ -6,15 +6,23 @@
|
|||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<%= javascript_include_tag "html5" %>
|
<%= javascript_include_tag "html5" %>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<%= stylesheet_link_tag "devise" %>
|
<%= render 'layouts/meta' %>
|
||||||
<%= javascript_include_tag "devise" %>
|
<%= render 'layouts/google_font' %>
|
||||||
<%= csrf_meta_tag %>
|
<%= stylesheet_link_tag "basic/global" %>
|
||||||
|
<%= stylesheet_link_tag "basic" %>
|
||||||
|
|
||||||
|
<%= render 'layouts/ie_html5_fix' %>
|
||||||
|
<%= javascript_include_tag "basic" %>
|
||||||
|
<%= yield :page_specific_css %>
|
||||||
|
<%= yield :page_specific_javascript %>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<%= csrf_meta_tag %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= render 'layouts/orbit_bar' %>
|
<%= render 'layouts/orbit_bar' %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
<div id="sign-footer">
|
|
||||||
<p>Rulingcom</p>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -44,6 +44,7 @@ public_r_tags:
|
|||||||
- sitemap
|
- sitemap
|
||||||
- breadcrumb
|
- breadcrumb
|
||||||
- tag_cloud
|
- tag_cloud
|
||||||
|
- terms_of_use
|
||||||
|
|
||||||
page_part_kinds:
|
page_part_kinds:
|
||||||
- text
|
- text
|
||||||
|
|||||||
@@ -390,6 +390,7 @@ en:
|
|||||||
footer: Site footer
|
footer: Site footer
|
||||||
footer_help: Footer Guide
|
footer_help: Footer Guide
|
||||||
frontend_closed: Frontend Closed
|
frontend_closed: Frontend Closed
|
||||||
|
frontend_open: Frontend Open
|
||||||
header: Site header
|
header: Site header
|
||||||
info: Site information
|
info: Site information
|
||||||
keywords: Site keywords
|
keywords: Site keywords
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ en:
|
|||||||
add_category: Add category
|
add_category: Add category
|
||||||
add_link: Add link
|
add_link: Add link
|
||||||
add_page: Add page
|
add_page: Add page
|
||||||
|
add_tags: Add Tags
|
||||||
add_to_default: Add to default
|
add_to_default: Add to default
|
||||||
alternative: Alternative
|
alternative: Alternative
|
||||||
approval_setting: Approval Setting
|
approval_setting: Approval Setting
|
||||||
@@ -16,6 +17,7 @@ en:
|
|||||||
deselect_all: Deselect all
|
deselect_all: Deselect all
|
||||||
detail: Detail
|
detail: Detail
|
||||||
edit_category: Edit Categorie
|
edit_category: Edit Categorie
|
||||||
|
edit_order: Edit order
|
||||||
editing:
|
editing:
|
||||||
tag: Editing tag
|
tag: Editing tag
|
||||||
file:
|
file:
|
||||||
@@ -37,6 +39,7 @@ en:
|
|||||||
no_date: No date
|
no_date: No date
|
||||||
no_file: No file
|
no_file: No file
|
||||||
path: Path
|
path: Path
|
||||||
|
position: Position
|
||||||
previous: Previous
|
previous: Previous
|
||||||
remove: Remove
|
remove: Remove
|
||||||
remove_default: Remove default
|
remove_default: Remove default
|
||||||
@@ -68,4 +71,5 @@ en:
|
|||||||
error:
|
error:
|
||||||
tag: Error when updating category
|
tag: Error when updating category
|
||||||
tag: Error when updating tag
|
tag: Error when updating tag
|
||||||
url_alt: Alternative text
|
url_alt: Alternative text
|
||||||
|
use_default: Use Default
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
zh_tw:
|
||||||
|
add_category: 新增類別
|
||||||
|
add_link: 新增連結
|
||||||
|
add_page: 新增頁面
|
||||||
|
add_tags: Add Tags
|
||||||
|
add_to_default: 加入預設
|
||||||
|
alternative: 註解
|
||||||
|
approval_setting: 審核設定
|
||||||
|
authorization_: 授權
|
||||||
|
change: 更換
|
||||||
|
change_file: 更換檔案
|
||||||
|
create:
|
||||||
|
error:
|
||||||
|
category: 建立類別時發生錯誤
|
||||||
|
tag: 建立標籤時發生錯誤
|
||||||
|
delete_warning: 刪除後無法還原,您確定要刪除嗎?
|
||||||
|
deselect_all: 取消全選
|
||||||
|
detail: 細節
|
||||||
|
edit_category: 編輯類別
|
||||||
|
edit_order: 編輯排序
|
||||||
|
editing:
|
||||||
|
tag: 編輯標籤
|
||||||
|
file:
|
||||||
|
name: 檔案名稱
|
||||||
|
front_page:
|
||||||
|
name_language: 網站標題
|
||||||
|
select_template: 選擇樣版
|
||||||
|
select_themes: 選擇主題
|
||||||
|
select_module: 選擇模組
|
||||||
|
language: 語言
|
||||||
|
login_orbit: 登入 Orbit
|
||||||
|
merge: 合併
|
||||||
|
new:
|
||||||
|
tag: 新增標籤
|
||||||
|
next: 下一頁
|
||||||
|
no_app: 無模組
|
||||||
|
no_category: 無可用類別
|
||||||
|
no_data: 無資料
|
||||||
|
no_date: 無日期
|
||||||
|
no_file: 無檔案
|
||||||
|
path: 路徑
|
||||||
|
position: 排序
|
||||||
|
previous: 上一頁
|
||||||
|
remove: 移除
|
||||||
|
remove_default: 移除預設
|
||||||
|
restful_actions:
|
||||||
|
create: 建立
|
||||||
|
delete: 刪除
|
||||||
|
edit: 編輯
|
||||||
|
index: Index
|
||||||
|
new: 新增
|
||||||
|
show: Show
|
||||||
|
update: 更新
|
||||||
|
search:
|
||||||
|
tags: 搜尋標籤
|
||||||
|
select_all: 全選
|
||||||
|
select_file: 選擇檔案
|
||||||
|
select_image: 選擇圖片
|
||||||
|
sort_number: 排序數
|
||||||
|
tag:
|
||||||
|
add: 新增標籤
|
||||||
|
delete: 刪除標籤
|
||||||
|
new_name: 新標籤名稱
|
||||||
|
merge_help: 自訂新標籤名稱或點選下方標籤
|
||||||
|
merger: 合併標籤
|
||||||
|
remove_default: 移除預設標籤
|
||||||
|
warning:
|
||||||
|
delete: 刪除後無法還原,您確定要刪除嗎?
|
||||||
|
remove_default: 您確定要移除此預設標籤嗎?
|
||||||
|
update:
|
||||||
|
error:
|
||||||
|
tag: 更新類別時發生錯誤
|
||||||
|
tag: 更新標籤時發生錯誤
|
||||||
|
url_alt: 註解
|
||||||
|
use_default: Use Default
|
||||||
@@ -385,6 +385,7 @@ zh_tw:
|
|||||||
thumbnail: 縮圖
|
thumbnail: 縮圖
|
||||||
site:
|
site:
|
||||||
frontend_closed: 前台關閉?
|
frontend_closed: 前台關閉?
|
||||||
|
frontend_open: 前台關閉 ?
|
||||||
backend_openness_on: 開啟開放式後台(訪客可遊覽)
|
backend_openness_on: 開啟開放式後台(訪客可遊覽)
|
||||||
default_image: 預設圖像
|
default_image: 預設圖像
|
||||||
description: 網站描述
|
description: 網站描述
|
||||||
|
|||||||
+8
-2
@@ -214,6 +214,12 @@ Orbit::Application.routes.draw do
|
|||||||
member do
|
member do
|
||||||
get 'temp_edit'
|
get 'temp_edit'
|
||||||
end
|
end
|
||||||
|
collection do
|
||||||
|
get 'edit_order_card'
|
||||||
|
get 'edit_order_list'
|
||||||
|
post 'update_order_card'
|
||||||
|
post 'update_order_list'
|
||||||
|
end
|
||||||
match "edit_passwd" => "users_new_interface#edit_passwd" ,:as => :edit_passwd
|
match "edit_passwd" => "users_new_interface#edit_passwd" ,:as => :edit_passwd
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -267,7 +273,7 @@ Orbit::Application.routes.draw do
|
|||||||
|
|
||||||
match "/desktop/compatibility" => "desktop#compatibility"
|
match "/desktop/compatibility" => "desktop#compatibility"
|
||||||
match "desktop" => "desktop#index"
|
match "desktop" => "desktop#index"
|
||||||
match "/desktop/desktop" => "desktop#desktop"
|
match "/desktop/desktop_container" => "desktop#desktop_container"
|
||||||
match '/desktop/appactivation'=>'desktop#appactivation'
|
match '/desktop/appactivation'=>'desktop#appactivation'
|
||||||
match '/desktop/app_manager'=>'desktop#app_manager'
|
match '/desktop/app_manager'=>'desktop#app_manager'
|
||||||
match '/desktop/allsections'=>'desktop#allsections'
|
match '/desktop/allsections'=>'desktop#allsections'
|
||||||
@@ -322,7 +328,7 @@ Orbit::Application.routes.draw do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
controller_paths :front, %w[show_breadcrumb show_banner show_footer show_menu show_page_sub_menu show_site_sub_menu show_sitemap show_tag_cloud]
|
controller_paths :front, %w[show_breadcrumb show_banner show_footer show_menu show_page_sub_menu show_site_sub_menu show_sitemap show_tag_cloud show_terms_of_use]
|
||||||
# controller_paths :mobile, %w[index announcement announcement_content dialog_contact dialog_copyright dialog_language map page page_content]
|
# controller_paths :mobile, %w[index announcement announcement_content dialog_contact dialog_copyright dialog_language map page page_content]
|
||||||
|
|
||||||
# scope 'app' do
|
# scope 'app' do
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ module OrbitApp
|
|||||||
current_priority = @context_links.count
|
current_priority = @context_links.count
|
||||||
if @approvable_with_link
|
if @approvable_with_link
|
||||||
context_link 'approval_setting',
|
context_link 'approval_setting',
|
||||||
:link_path => "admin_authorizations_path(get_module_app.key, 'approval')",
|
:link_path => "admin_authorizations_path(get_module_app.key, 'category_approval')",
|
||||||
:priority => current_priority + 1,
|
:priority => current_priority + 1,
|
||||||
:available_for => [:manager]
|
:available_for => [:manager]
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ module OrbitApp
|
|||||||
def initialize(name,partial=nil,*args ,&block)
|
def initialize(name,partial=nil,*args ,&block)
|
||||||
@base_path = args[0][:base_path]
|
@base_path = args[0][:base_path]
|
||||||
@name = partial[0][:i18n].nil? ? name : lambda{ I18n.t(partial[0][:i18n]) }
|
@name = partial[0][:i18n].nil? ? name : lambda{ I18n.t(partial[0][:i18n]) }
|
||||||
|
@sort_number = partial[0][:sort_number]
|
||||||
@app_name = partial[0][:app_name]
|
@app_name = partial[0][:app_name]
|
||||||
@intro_app_name = partial[0][:intro_app_name]
|
@intro_app_name = partial[0][:intro_app_name]
|
||||||
@partial_path = ''
|
@partial_path = ''
|
||||||
@@ -68,6 +69,10 @@ module OrbitApp
|
|||||||
block.arity < 1 ? instance_eval(&block) : block.call(self) if block_given?
|
block.arity < 1 ? instance_eval(&block) : block.call(self) if block_given?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sort_number
|
||||||
|
return @sort_number
|
||||||
|
end
|
||||||
|
|
||||||
def app_name
|
def app_name
|
||||||
return @app_name
|
return @app_name
|
||||||
end
|
end
|
||||||
|
|||||||
+41
-27
@@ -197,37 +197,48 @@ module OrbitCoreLib
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def skip_authorization(arg = nil)
|
||||||
|
if arg
|
||||||
|
key = arg.shift
|
||||||
|
prepend_before_filter key[0] => key[1] {|f| f.no_authorization}
|
||||||
|
else
|
||||||
|
prepend_before_filter {|f| f.no_authorization}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
module InstanceMethods
|
module InstanceMethods
|
||||||
protected
|
protected
|
||||||
def can_use
|
def can_use
|
||||||
setup_vars
|
setup_vars
|
||||||
set_current_user
|
unless @no_authorization
|
||||||
if @user_type
|
if @user_type
|
||||||
@user_type.each do |user_type|
|
@user_type.each do |user_type|
|
||||||
open = false
|
open = false
|
||||||
visitor = false
|
visitor = false
|
||||||
case user_type
|
case user_type
|
||||||
when :admin
|
when :admin
|
||||||
open ||= check_admin
|
open ||= check_admin
|
||||||
when :manager
|
when :manager
|
||||||
open ||= check_manager
|
open ||= check_manager
|
||||||
when :sub_manager
|
when :sub_manager
|
||||||
open ||= check_sub_manager
|
open ||= check_sub_manager
|
||||||
when :approver
|
when :approver
|
||||||
open ||= check_sub_manager
|
open ||= check_sub_manager
|
||||||
when :visitor
|
when :visitor
|
||||||
open ||= true
|
set_current_user
|
||||||
visitor ||= true
|
open ||= true
|
||||||
|
visitor ||= true
|
||||||
|
end
|
||||||
|
check_backend_openness if visitor
|
||||||
|
authenticate_user! unless visitor
|
||||||
|
redirect_to root_url unless open
|
||||||
end
|
end
|
||||||
check_backend_openness if visitor
|
else
|
||||||
authenticate_user! unless visitor
|
authenticate_user!
|
||||||
redirect_to root_url unless open
|
check_user_can_use
|
||||||
end
|
end
|
||||||
else
|
|
||||||
authenticate_user!
|
|
||||||
check_user_can_use
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -248,10 +259,14 @@ module OrbitCoreLib
|
|||||||
end
|
end
|
||||||
|
|
||||||
def open_for(var)
|
def open_for(var)
|
||||||
@user_type ||= []
|
@user_type ||= []
|
||||||
@user_type << var
|
@user_type << var
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def no_authorization
|
||||||
|
@no_authorization = true
|
||||||
|
end
|
||||||
|
|
||||||
def check_user_can_use
|
def check_user_can_use
|
||||||
unless current_or_guest_user.admin? || @module_app.is_manager?(current_or_guest_user) || @module_app.is_sub_manager?(current_or_guest_user) || @module_app.can_approve?(current_or_guest_user)
|
unless current_or_guest_user.admin? || @module_app.is_manager?(current_or_guest_user) || @module_app.is_sub_manager?(current_or_guest_user) || @module_app.can_approve?(current_or_guest_user)
|
||||||
redirect_to root_url
|
redirect_to root_url
|
||||||
@@ -259,9 +274,8 @@ module OrbitCoreLib
|
|||||||
end
|
end
|
||||||
|
|
||||||
def setup_vars
|
def setup_vars
|
||||||
@app_title ||= controller_path.split('/')[1].singularize
|
@app_title ||= controller_path.split('/')[1].singularize rescue nil
|
||||||
@module_app ||= ModuleApp.first(conditions: {:key => @app_title} )
|
@module_app ||= ModuleApp.first(conditions: {:key => @app_title} ) rescue nil
|
||||||
# raise ModuleAppError, 'Can not find ModuleApp' if @module_app.nil?
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ module OrbitTag
|
|||||||
|
|
||||||
def tags=(tag_ids)
|
def tags=(tag_ids)
|
||||||
tag_ids = [tag_ids].flatten
|
tag_ids = [tag_ids].flatten
|
||||||
tag_ids.delete('')
|
tag_ids.delete_if{|e| e.match(/^[0-1]$|^$/)}
|
||||||
ids = self.taggings.blank? ? [] : self.taggings.map{|t| t.tag.id}
|
ids = self.taggings.blank? ? [] : self.taggings.map{|t| t.tag.id}
|
||||||
tag_ids.each do |tag_id|
|
tag_ids.each do |tag_id|
|
||||||
unless ids.include? tag_id
|
unless ids.include? tag_id
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ module ParserCommon
|
|||||||
def parse_sub_menus_edit(body = nil, page = nil, edit=nil)
|
def parse_sub_menus_edit(body = nil, page = nil, edit=nil)
|
||||||
body.css('sub_menu').each do |sub_menu|
|
body.css('sub_menu').each do |sub_menu|
|
||||||
menu_page = Page.find(sub_menu['id']) rescue nil
|
menu_page = Page.find(sub_menu['id']) rescue nil
|
||||||
|
|
||||||
res = ''
|
res = ''
|
||||||
if menu_page && menu_page.visible_children.size > 0
|
if menu_page && menu_page.visible_children.size > 0
|
||||||
res << "<div class='category_list'>"
|
res << "<div class='category_list'>"
|
||||||
@@ -245,6 +246,15 @@ module ParserCommon
|
|||||||
sitemap.swap(fragment)
|
sitemap.swap(fragment)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# terms_of_use
|
||||||
|
def parse_terms_of_uses_edit(body = nil, page = nil, edit=nil)
|
||||||
|
terms_of_use = body.css('terms_of_use').first
|
||||||
|
url = front_show_terms_of_use_path
|
||||||
|
options = "?inner=true"
|
||||||
|
fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div class='dymanic_load' path='#{url + options}'></div>")
|
||||||
|
terms_of_use.swap(fragment)
|
||||||
|
end
|
||||||
|
|
||||||
# page_contents
|
# page_contents
|
||||||
def parse_contents_edit(body, page, edit=nil)
|
def parse_contents_edit(body, page, edit=nil)
|
||||||
public_r_tags = []
|
public_r_tags = []
|
||||||
@@ -286,8 +296,8 @@ module ParserCommon
|
|||||||
when 'default_widget'
|
when 'default_widget'
|
||||||
"/panel/orbit_app/widget/#{part.widget_style}?inner=true"
|
"/panel/orbit_app/widget/#{part.widget_style}?inner=true"
|
||||||
else
|
else
|
||||||
raise ModuleAppError,"PagePart can't find ModuleApp" if part.module_app.nil?
|
# raise ModuleAppError,"PagePart can't find ModuleApp" if part.module_app.nil?
|
||||||
"/panel/#{part.module_app.key}/widget/#{part.widget_path}?inner=true"
|
"/panel/#{part.module_app.key}/widget/#{part.widget_path}?inner=true" rescue ''
|
||||||
end
|
end
|
||||||
|
|
||||||
categories_str=(!part[:category].blank? ? part[:category] : category).collect{|t| "category_id[]=#{t}"}.join('&')
|
categories_str=(!part[:category].blank? ? part[:category] : category).collect{|t| "category_id[]=#{t}"}.join('&')
|
||||||
|
|||||||
@@ -222,4 +222,9 @@ module ParserFrontEnd
|
|||||||
def generate_tag_clouds(*args)
|
def generate_tag_clouds(*args)
|
||||||
"<div class='dymanic_load' path='#{front_show_tag_cloud_path(args[0])}'></div>"
|
"<div class='dymanic_load' path='#{front_show_tag_cloud_path(args[0])}'></div>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# tag_cloud
|
||||||
|
def generate_terms_of_uses(*args)
|
||||||
|
"<div class='dymanic_load' path='#{front_show_terms_of_use_path}'></div>"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
@@ -91,4 +91,11 @@ namespace :new_ui do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :reset_user_position => :environment do
|
||||||
|
User.where(email: /guest/).each{|d|d.update_attribute(:position, nil)}
|
||||||
|
User.not_guest_user.each_with_index do |user, i|
|
||||||
|
user.update_attribute(:position, i)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
+1
-1
@@ -27,7 +27,7 @@ namespace :site do
|
|||||||
site.design = design
|
site.design = design
|
||||||
site.save
|
site.save
|
||||||
theme = design.themes.first
|
theme = design.themes.first
|
||||||
home = Page.new( :design_id => design.id, :name => 'home', :is_published => true, :theme_id => theme.id )
|
home = Page.new( :design_id => design.id, :name => 'home', :is_published => true, :theme_id => theme.id, :menu_enabled_for => [] )
|
||||||
|
|
||||||
home.title_translations = {"zh_tw"=>"首頁", "en"=>"Home"}
|
home.title_translations = {"zh_tw"=>"首頁", "en"=>"Home"}
|
||||||
home.save
|
home.save
|
||||||
|
|||||||
Vendored
+9
-9
@@ -21,7 +21,7 @@ class Panel::Archive::FrontEnd::ArchiveFilesController < OrbitWidgetController
|
|||||||
def index
|
def index
|
||||||
@item = Page.find(params[:page_id])
|
@item = Page.find(params[:page_id])
|
||||||
@title = @item.title
|
@title = @item.title
|
||||||
@frontend_style = @item.frontend_style
|
@frontend_style = !@item.frontend_style.blank? ? @item.frontend_style : "1"
|
||||||
if !@item.frontend_data_count.blank?
|
if !@item.frontend_data_count.blank?
|
||||||
@page_num = @item.frontend_data_count
|
@page_num = @item.frontend_data_count
|
||||||
else
|
else
|
||||||
@@ -43,15 +43,15 @@ class Panel::Archive::FrontEnd::ArchiveFilesController < OrbitWidgetController
|
|||||||
if @frontend_style == "1"
|
if @frontend_style == "1"
|
||||||
|
|
||||||
if !params[:category_id].blank? && !params[:tag_id].blank?
|
if !params[:category_id].blank? && !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
# @current_category = ArchiveFileCategory.from_id(params[:category_id]) rescue nil
|
# @current_category = ArchiveFileCategory.from_id(params[:category_id]) rescue nil
|
||||||
elsif !params[:category_id].blank?
|
elsif !params[:category_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
# @current_category = ArchiveFileCategory.from_id(params[:category_id]) rescue nil
|
# @current_category = ArchiveFileCategory.from_id(params[:category_id]) rescue nil
|
||||||
elsif !params[:tag_id].blank?
|
elsif !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids,:tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids,:tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
else
|
else
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
end
|
end
|
||||||
|
|
||||||
elsif @frontend_style == "2"
|
elsif @frontend_style == "2"
|
||||||
@@ -61,13 +61,13 @@ class Panel::Archive::FrontEnd::ArchiveFilesController < OrbitWidgetController
|
|||||||
@archive_file_categorys.each do |afcg|
|
@archive_file_categorys.each do |afcg|
|
||||||
|
|
||||||
if !params[:category_id].blank? && !params[:tag_id].blank?
|
if !params[:category_id].blank? && !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id], :tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort])
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id], :tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort])
|
||||||
elsif !params[:category_id].blank?
|
elsif !params[:category_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id]).desc( :is_top ).default_sort(params[:sort])
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort])
|
||||||
elsif !params[:tag_id].blank?
|
elsif !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id, :tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort])
|
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id, :tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort])
|
||||||
else
|
else
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id).desc( :is_top ).default_sort(params[:sort])
|
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id, :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort])
|
||||||
end
|
end
|
||||||
|
|
||||||
archive_file_datas = Array.new
|
archive_file_datas = Array.new
|
||||||
|
|||||||
Vendored
+9
-8
@@ -23,6 +23,7 @@ class Panel::Archive::Widget::ArchiveFilesController < OrbitWidgetController
|
|||||||
end
|
end
|
||||||
|
|
||||||
@widget_style = @part.widget_style
|
@widget_style = @part.widget_style
|
||||||
|
@widget_style = !@part.widget_style.blank? ? @part.widget_style : "1"
|
||||||
|
|
||||||
@category_id = @part.category
|
@category_id = @part.category
|
||||||
|
|
||||||
@@ -64,13 +65,13 @@ class Panel::Archive::Widget::ArchiveFilesController < OrbitWidgetController
|
|||||||
if @widget_style == "1"
|
if @widget_style == "1"
|
||||||
|
|
||||||
if !params[:category_id].blank? && !params[:tag_id].blank?
|
if !params[:category_id].blank? && !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
elsif !params[:category_id].blank?
|
elsif !params[:category_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
elsif !params[:tag_id].blank?
|
elsif !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids,:tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids,:tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
else
|
else
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => @archive_file_category_ids, :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).page( params[:page_main] ).per(@page_num)
|
||||||
end
|
end
|
||||||
|
|
||||||
elsif @widget_style == "2"
|
elsif @widget_style == "2"
|
||||||
@@ -80,13 +81,13 @@ class Panel::Archive::Widget::ArchiveFilesController < OrbitWidgetController
|
|||||||
@archive_file_categorys.each do |afcg|
|
@archive_file_categorys.each do |afcg|
|
||||||
|
|
||||||
if !params[:category_id].blank? && !params[:tag_id].blank?
|
if !params[:category_id].blank? && !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id], :tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id], :tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
||||||
elsif !params[:category_id].blank?
|
elsif !params[:category_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id]).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id.in => [afcg.id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
||||||
elsif !params[:tag_id].blank?
|
elsif !params[:tag_id].blank?
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id, :tagged_ids.in => params[:tag_id]).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id, :tagged_ids.in => params[:tag_id], :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
||||||
else
|
else
|
||||||
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
@archive_files = ArchiveFile.can_display.where(:category_id => afcg.id, :title.nin=>[""]).desc( :is_top ).default_sort(params[:sort]).limit(@page_num)
|
||||||
end
|
end
|
||||||
|
|
||||||
archive_file_datas = Array.new
|
archive_file_datas = Array.new
|
||||||
|
|||||||
Vendored
+6
-4
@@ -87,9 +87,11 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="pull_right">
|
<div class="pull_right">
|
||||||
<% if !params[:category_id].blank? %>
|
<% if !@archive_files.blank? or !@archive_file_datas.blank? %>
|
||||||
<%= link_to t(:more_plus), panel_archive_front_end_archive_files_path(:category_id => @part.category) %>
|
<% if !params[:category_id].blank? %>
|
||||||
<% else %>
|
<%= link_to t(:more_plus), panel_archive_front_end_archive_files_path(:category_id => @part.category) %>
|
||||||
<%= link_to t(:more_plus), panel_archive_front_end_archive_files_path %>
|
<% else %>
|
||||||
|
<%= link_to t(:more_plus), panel_archive_front_end_archive_files_path %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
Vendored
+7
@@ -50,6 +50,13 @@ class Panel::Member::FrontEnd::MemberListsController < OrbitWidgetController
|
|||||||
|
|
||||||
@plugins = OrbitApp::Plugin::Registration.all
|
@plugins = OrbitApp::Plugin::Registration.all
|
||||||
|
|
||||||
|
@ppname = Array.new
|
||||||
|
@plugins.each do |aa|
|
||||||
|
@ppname << [aa.sort_number.to_i, [aa.name, aa.app_name, aa.intro_app_name, aa.front_partial_path]]
|
||||||
|
end
|
||||||
|
@plugin_shows = @ppname.sort.collect {|v| {"name"=>v[1][0],"app_name"=>v[1][1],"intro_app_name"=>v[1][2],"front_partial_path"=>v[1][3]} }
|
||||||
|
|
||||||
|
|
||||||
@profile_data = []
|
@profile_data = []
|
||||||
|
|
||||||
attribute_values = @member.attribute_values.asc("_id")
|
attribute_values = @member.attribute_values.asc("_id")
|
||||||
|
|||||||
Vendored
+21
-2
@@ -18,6 +18,8 @@
|
|||||||
<div class="o-members">
|
<div class="o-members">
|
||||||
|
|
||||||
<% @member_status.each do |ms| %>
|
<% @member_status.each do |ms| %>
|
||||||
|
|
||||||
|
<% if @member_lists.where(:role_status_ids=>ms.id).count > 0 %>
|
||||||
|
|
||||||
<h3 class="o-members-category h3"><%= ms.title %></h3>
|
<h3 class="o-members-category h3"><%= ms.title %></h3>
|
||||||
<ul class="o-members-list">
|
<ul class="o-members-list">
|
||||||
@@ -28,7 +30,14 @@
|
|||||||
<div class="o-members-pic"><%= show_avatar(member) %></div>
|
<div class="o-members-pic"><%= show_avatar(member) %></div>
|
||||||
<ul class="o-members-info">
|
<ul class="o-members-info">
|
||||||
<li><b class="o-members-label"><%= t("users.name")%></b><%= link_to member.name, panel_member_front_end_member_list_path(member.id), {:class => "o-members-link"} %></li>
|
<li><b class="o-members-label"><%= t("users.name")%></b><%= link_to member.name, panel_member_front_end_member_list_path(member.id), {:class => "o-members-link"} %></li>
|
||||||
<li><b class="o-members-label"><%= @member_lists.get_member_list_attribute_field_name("teacher","job_title") %></b><%= show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"teacher","job_title").get_value_by_locale(I18n.locale)) %></li>
|
<% @job_title = show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"teacher","job_title").get_value_by_locale(I18n.locale))
|
||||||
|
if @job_title != 'NoData' and !@job_title.blank?
|
||||||
|
%>
|
||||||
|
<li><b class="o-members-label">
|
||||||
|
<%= @member_lists.get_member_list_attribute_field_name("teacher","job_title") %></b>
|
||||||
|
<%= @job_title %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
<li><b class="o-members-label"><%= t("users.email")%></b><%= member.email %></li>
|
<li><b class="o-members-label"><%= t("users.email")%></b><%= member.email %></li>
|
||||||
<li><b class="o-members-label"><%= t("users.office_tel")%></b><%= member.office_tel %></li>
|
<li><b class="o-members-label"><%= t("users.office_tel")%></b><%= member.office_tel %></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -40,6 +49,8 @@
|
|||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% elsif @item.frontend_style == 'Two' or @item.frontend_style.blank? %>
|
<% elsif @item.frontend_style == 'Two' or @item.frontend_style.blank? %>
|
||||||
@@ -52,6 +63,8 @@
|
|||||||
|
|
||||||
<% @member_status.each do |ms| %>
|
<% @member_status.each do |ms| %>
|
||||||
|
|
||||||
|
<% if @member_lists.where(:role_status_ids=>ms.id).count > 0 %>
|
||||||
|
|
||||||
<h3 class="o-members-category h3"><%= ms.title %></h3>
|
<h3 class="o-members-category h3"><%= ms.title %></h3>
|
||||||
<ul class="o-members-list">
|
<ul class="o-members-list">
|
||||||
|
|
||||||
@@ -61,7 +74,11 @@
|
|||||||
<div class="o-members-pic"><%= show_avatar(member) %></div>
|
<div class="o-members-pic"><%= show_avatar(member) %></div>
|
||||||
<ul class="o-members-info">
|
<ul class="o-members-info">
|
||||||
<li><b class="o-members-label"><%= t("users.name")%></b><%= link_to member.name, panel_member_front_end_member_list_path(member.id), {:class => "o-members-link"} %></li>
|
<li><b class="o-members-label"><%= t("users.name")%></b><%= link_to member.name, panel_member_front_end_member_list_path(member.id), {:class => "o-members-link"} %></li>
|
||||||
<li><b class="o-members-label"><%= @member_lists.get_member_list_attribute_field_name("teacher","job_title") %></b><%= show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"teacher","job_title").get_value_by_locale(I18n.locale)) %></li>
|
<% @job_title = show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"teacher","job_title").get_value_by_locale(I18n.locale))
|
||||||
|
if @job_title != 'NoData' and !@job_title.blank?
|
||||||
|
%>
|
||||||
|
<li><b class="o-members-label"><%= @member_lists.get_member_list_attribute_field_name("teacher","job_title") %></b><%= @job_title %></li>
|
||||||
|
<% end %>
|
||||||
<li><b class="o-members-label"><%= t("users.email")%></b> <%= member.email %></li>
|
<li><b class="o-members-label"><%= t("users.email")%></b> <%= member.email %></li>
|
||||||
<li><b class="o-members-label"><%= t("users.office_tel")%></b><%= member.office_tel %></li>
|
<li><b class="o-members-label"><%= t("users.office_tel")%></b><%= member.office_tel %></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -73,6 +90,8 @@
|
|||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
+12
-12
@@ -43,29 +43,29 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="member-pic">
|
<div class="member-pic">
|
||||||
<%= show_avatar(@member) %>
|
<%= image_tag(@member.avatar) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="member-module">
|
<div class="member-module">
|
||||||
<div class="module-nav">
|
<div class="module-nav">
|
||||||
<ul>
|
<ul>
|
||||||
<%
|
<%
|
||||||
@plugins.each do |plugin|
|
@plugin_shows.each do |plugin|
|
||||||
|
|
||||||
@data = plugin.app_name.classify.constantize.where(is_hidden: false, :create_user_id=>@member.id)
|
@data = plugin["app_name"].classify.constantize.where(is_hidden: false, :create_user_id=>@member.id)
|
||||||
@intro_data = plugin.intro_app_name.classify.constantize.where(:user_id=>@member.id).first
|
@intro_data = plugin["intro_app_name"].classify.constantize.where(:user_id=>@member.id).first
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<% if !@intro_data.blank? %>
|
<% if !@intro_data.blank? %>
|
||||||
|
|
||||||
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
|
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
|
||||||
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li>
|
<li><a href="#<%= plugin["name"].gsub(' ', '') %>"><%= plugin["name"] %></a></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
||||||
<% if !@data.blank? %>
|
<% if !@data.blank? %>
|
||||||
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li>
|
<li><a href="#<%= plugin["name"].gsub(' ', '') %>"><%= plugin["name"] %></a></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -75,18 +75,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="module-content">
|
<div class="module-content">
|
||||||
<%
|
<%
|
||||||
@plugins.each do |plugin|
|
@plugin_shows.each do |plugin|
|
||||||
|
|
||||||
@plugin_partial = !plugin.front_partial_path.blank? ? OrbitApp::Plugin::Registration.find_by_key(plugin.name).front_partial_path : nil
|
@plugin_partial = !plugin["front_partial_path"].blank? ? OrbitApp::Plugin::Registration.find_by_key(plugin["name"]).front_partial_path : nil
|
||||||
|
|
||||||
@data = plugin.app_name.classify.constantize.where(:create_user_id=>@member.id)
|
@data = plugin["app_name"].classify.constantize.where(:create_user_id=>@member.id)
|
||||||
@intro_data = plugin.intro_app_name.classify.constantize.where(:user_id=>@member.id).first
|
@intro_data = plugin["intro_app_name"].classify.constantize.where(:user_id=>@member.id).first
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<% if !@intro_data.blank? %>
|
<% if !@intro_data.blank? %>
|
||||||
|
|
||||||
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
|
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
|
||||||
<div class="module-pane" id="<%= plugin.name %>">
|
<div class="module-pane" id="<%= plugin["name"].gsub(' ', '') %>">
|
||||||
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
|
|
||||||
<% if !@data.blank? %>
|
<% if !@data.blank? %>
|
||||||
<div class="module-pane" id="<%= plugin.name %>">
|
<div class="module-pane" id="<%= plugin["name"].gsub(' ', '') %>">
|
||||||
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
vendor/built_in_modules/personal_book/app/assets/javascripts/personal_book/desktop/personal_books.js
Vendored
+1
@@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalBook = function(target,url,cache){ // t
|
|||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalBook.bookDelete = function(data,dom){
|
this.initializePersonalBook.bookDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|||||||
+1
@@ -282,6 +282,7 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
|
|||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingBook")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingBook")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+13
-7
@@ -2,23 +2,29 @@ module Panel::PersonalBook::Desktop::PersonalBooksHelper
|
|||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
content(publication, view) + \
|
content_tag :div,
|
||||||
edit_or_delete(publication)
|
:class => "inner" do
|
||||||
|
marker(publication.id) + \
|
||||||
|
content(publication, view) + \
|
||||||
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -65,11 +71,11 @@ module Panel::PersonalBook::Desktop::PersonalBooksHelper
|
|||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_book_files.map{|file|
|
publication.writing_book_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
link_to(image_tag(check_file_type(file.file.url)) + \
|
||||||
content_tag(:span, file.title_translations[I18n.locale.to_s], :class => "filetitle"),
|
content_tag(:span, (file.title_translations[I18n.locale.to_s] rescue nil), :class => "filetitle"),
|
||||||
file.file.url,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank",
|
"target" => "_blank",
|
||||||
"title" => file.title_translations[I18n.locale.to_s])
|
"title" => (file.title_translations[I18n.locale.to_s] rescue nil))
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -83,13 +83,14 @@ class WritingBook
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create_link
|
def create_link
|
||||||
|
title = []
|
||||||
title = ["\"#{self.extracted_chapters}\""]
|
# title = ["#{self.extracted_chapters}"] if self.extracted_chapters.present?
|
||||||
title << self.book_title
|
title << self.paper_title if self.paper_title.present?
|
||||||
title << self.publisher
|
title << self.book_title if self.book_title.present?
|
||||||
title << self.pages
|
title << self.publisher if self.publisher.present?
|
||||||
# title << "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})"
|
title << self.pages if self.pages.present?
|
||||||
title.join(', ')
|
# title << "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})"
|
||||||
|
title.join(', ')
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|||||||
Loaded 100 of 176 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user