Changes for i18n yml
This commit is contained in:
parent
a579e16109
commit
8b2bc207de
14
Gemfile.lock
14
Gemfile.lock
|
@ -58,7 +58,7 @@ GEM
|
|||
ruby2ruby (~> 1.2)
|
||||
ruport (~> 1.6)
|
||||
sass (~> 3.0)
|
||||
bson (1.6.1)
|
||||
bson (1.6.4)
|
||||
bson_ext (1.6.1)
|
||||
bson (~> 1.6.1)
|
||||
builder (3.0.0)
|
||||
|
@ -130,18 +130,18 @@ GEM
|
|||
mime-types (1.17.2)
|
||||
mini_magick (3.4)
|
||||
subexec (~> 0.2.1)
|
||||
mongo (1.6.1)
|
||||
bson (~> 1.6.1)
|
||||
mongo (1.6.2)
|
||||
bson (~> 1.6.2)
|
||||
mongo_session_store-rails3 (3.0.5)
|
||||
actionpack (>= 3.0)
|
||||
mongo
|
||||
mongoid (2.4.6)
|
||||
mongoid (2.4.12)
|
||||
activemodel (~> 3.1)
|
||||
mongo (~> 1.3)
|
||||
mongo (<= 1.6.2)
|
||||
tzinfo (~> 0.3.22)
|
||||
mongoid-tree (0.7.0)
|
||||
mongoid (~> 2.0)
|
||||
multi_json (1.1.0)
|
||||
multi_json (1.3.6)
|
||||
mysql2 (0.3.11)
|
||||
mysql2 (0.3.11-x86-mingw32)
|
||||
net-ldap (0.3.1)
|
||||
|
@ -301,7 +301,7 @@ GEM
|
|||
treetop (1.4.10)
|
||||
polyglot
|
||||
polyglot (>= 0.3.1)
|
||||
tzinfo (0.3.32)
|
||||
tzinfo (0.3.33)
|
||||
uglifier (1.2.3)
|
||||
execjs (>= 0.3.0)
|
||||
multi_json (>= 1.0.2)
|
||||
|
|
|
@ -10,7 +10,7 @@ $('.bulletin_files_block a.delete').live('click', function(){
|
|||
});
|
||||
|
||||
$(document).on('click', '.action a.remove_existing_record', function(){
|
||||
if(confirm("<%= I18n.t('announcement.sure?')%>")){
|
||||
if(confirm("<%= I18n.t(:sure?)%>")){
|
||||
$(this).next('.should_destroy').attr('value', 1);
|
||||
$("tr#" + $(this).prev().attr('value')).hide();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
jQuery(document).ajaxStart(function(){
|
||||
$('<div class="modal-backdrop fade in" id="sys_modal"><img src="/assets/ajax-loader.gif" style="margin-top: 25%;margin-left: 50%;"></div>').appendTo('body');
|
||||
});
|
||||
// jQuery(document).ajaxStart(function(){
|
||||
// $('<div class="modal-backdrop fade in" id="sys_modal"><img src="/assets/ajax-loader.gif" style="margin-top: 25%;margin-left: 50%;"></div>').appendTo('body');
|
||||
// });
|
||||
|
||||
jQuery(document).ajaxComplete(function(){
|
||||
$("#sys_modal").hide().remove();
|
||||
});
|
||||
// jQuery(document).ajaxComplete(function(){
|
||||
// $("#sys_modal").hide().remove();
|
||||
// });
|
||||
|
|
|
@ -40,11 +40,11 @@ $(".nav-tabs").find(".icons-pencil").click(function(){
|
|||
data: { body: content_holder.html() },
|
||||
success: function(json) {
|
||||
$(selector).attr("contenteditable",false)
|
||||
alert("<%= I18n.t('admin.contenteditable.update_done') %>");
|
||||
alert("<%= I18n.t('update.success_') %>");
|
||||
//content_holder.effect('highlight', {'color': '#0f0'}, 3000);
|
||||
},
|
||||
error: function() {
|
||||
alert("<%= I18n.t('admin.contenteditable.update_failed') %>");
|
||||
alert("<%= I18n.t('update.fail') %>");
|
||||
//content_holder.effect('highlight', {'color': '#f00'}, 3000);
|
||||
content_holder.html(content);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ $('.news_bulletin_files_block a.delete').live('click', function(){
|
|||
});
|
||||
|
||||
$(document).on('click', '.action a.remove_existing_record', function(){
|
||||
if(confirm("<%= I18n.t('news.sure?')%>")){
|
||||
if(confirm("<%= I18n.t(:sure?)%>")){
|
||||
$(this).next('.should_destroy').attr('value', 1);
|
||||
$("tr#" + $(this).prev().attr('value')).hide();
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ class Admin::AdImagesController < OrbitBackendController
|
|||
@ad_banner = AdBanner.find params[:ad_banner_id]
|
||||
@ad_image = @ad_banner.ad_images.find params[:id]
|
||||
if @ad_image.destroy
|
||||
flash[:notice] = t('admin.success_destroy_ad_image')
|
||||
flash[:notice] = t('ad.success_destroy_ad_image')
|
||||
redirect_to admin_ad_banner_path @ad_banner
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ class Admin::AssetCategoriesController < OrbitBackendController
|
|||
|
||||
respond_to do |format|
|
||||
if @asset_category.save
|
||||
format.html { redirect_to(admin_asset_categories_url, :notice => t('announcement.create_asset_category_success')) }
|
||||
format.html { redirect_to(admin_asset_categories_url, :notice => t('create.success.asset_category')) }
|
||||
format.js
|
||||
else
|
||||
format.html { render :action => "new" }
|
||||
|
@ -41,8 +41,8 @@ class Admin::AssetCategoriesController < OrbitBackendController
|
|||
|
||||
respond_to do |format|
|
||||
if @asset_category.update_attributes(params[:asset_category])
|
||||
# format.html { redirect_to(panel_announcement_back_end_asset_category_url(@asset_category), :notice => t('asset_category.update_asset_category_success')) }
|
||||
# format.html { redirect_to(panel_announcement_back_end_asset_categories_url, :notice => t('asset_category.update_asset_category_success')) }
|
||||
# format.html { redirect_to(panel_announcement_back_end_asset_category_url(@asset_category), :notice => t('create.success')) }
|
||||
# format.html { redirect_to(panel_announcement_back_end_asset_categories_url, :notice => t('create.success')) }
|
||||
# format.xml { head :ok }
|
||||
format.js
|
||||
else
|
||||
|
|
|
@ -44,7 +44,7 @@ class Admin::AssetsController < OrbitBackendController
|
|||
# render :json=>{"url"=>@asset.data.url,"title"=>"xxx","desc"=>"sss"}.to_json
|
||||
render :layout=>false
|
||||
else
|
||||
flash[:error] = t(:create_fail)
|
||||
flash[:error] = t('create.fail')
|
||||
@asset_categories = AssetCategory.all
|
||||
@tags = AssetTag.all
|
||||
respond_to do |format|
|
||||
|
@ -67,7 +67,7 @@ class Admin::AssetsController < OrbitBackendController
|
|||
format.js { render 'js/remove_pop_up_and_reload_content', :locals => {:function => 'replaceWith', :id => "asset_#{@asset.id}", :value => @asset, :values => nil, :partial => 'admin/assets/asset', :locals => nil} }
|
||||
end
|
||||
else
|
||||
flash[:error] = t(:update_fail)
|
||||
flash[:error] = t('update.fail')
|
||||
@asset_categories = AssetCategory.all
|
||||
@tags = AssetTag.all
|
||||
respond_to do |format|
|
||||
|
|
|
@ -4,7 +4,6 @@ class Admin::ItemsController < ApplicationController
|
|||
|
||||
before_filter :authenticate_user!
|
||||
before_filter :find_parent_item
|
||||
before_filter :find_snippets, :only => :index
|
||||
before_filter :is_admin?
|
||||
before_filter :set_current_item
|
||||
|
||||
|
@ -22,10 +21,4 @@ class Admin::ItemsController < ApplicationController
|
|||
render :nothing => true
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def find_snippets
|
||||
@snippets = Snippet.where( { :parent_id => @parent_item.id } ) rescue nil
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -23,7 +23,7 @@ class Admin::LinksController < ApplicationController
|
|||
@item = Link.new(params[:link])
|
||||
|
||||
if @item.save
|
||||
flash.now[:notice] = t('admin.create_success_link')
|
||||
flash.now[:notice] = t('create.success.link')
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to admin_link_url(@item)
|
||||
|
@ -31,7 +31,7 @@ class Admin::LinksController < ApplicationController
|
|||
format.js {}
|
||||
end
|
||||
else
|
||||
flash.now[:error] = t('admin.create_error_link')
|
||||
flash.now[:error] = t('create.error.link')
|
||||
render :action => "new"
|
||||
end
|
||||
end
|
||||
|
@ -40,7 +40,7 @@ class Admin::LinksController < ApplicationController
|
|||
@item = Link.find(params[:id])
|
||||
|
||||
if @item.update_attributes(params[:link])
|
||||
flash.now[:notice] = t('admin.update_success_link')
|
||||
flash.now[:notice] = t('update.success.link')
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to admin_link_url(@item)
|
||||
|
@ -48,7 +48,7 @@ class Admin::LinksController < ApplicationController
|
|||
format.js {}
|
||||
end
|
||||
else
|
||||
flash.now[:error] = t('admin.update_error_link')
|
||||
flash.now[:error] = t('update.error.link')
|
||||
render :action => "edit"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -58,14 +58,14 @@ class Admin::ModuleAppsController < ApplicationController
|
|||
def assign_sub_manager
|
||||
unless @assign_to_user.nil? || @assign_to_user.admin?
|
||||
if @module_app.assign_sub_manager(@assign_to_user,current_user)
|
||||
flash[:notice] = t('admin.app_auth.assigning_manager.add_sub_manager_ok')
|
||||
flash[:notice] = t('app_auth.assigning_manager.add_manager_ok')
|
||||
else
|
||||
flash[:notice] = t('admin.app_auth.assigning_manager.add_sub_manager_fail')
|
||||
flash[:notice] = t('app_auth.assigning_manager.add_manager_fail')
|
||||
end
|
||||
else
|
||||
flash[:notice] = t('admin.app_auth.assigning_manager.failed_no_user')
|
||||
flash[:notice] = t('app_auth.failed_no_user')
|
||||
end
|
||||
flash[:notice] = t('admin.app_auth.can_not_add_this_user')
|
||||
flash[:notice] = t('app_auth.can_not_add_this_user')
|
||||
redirect_to :action => "edit"
|
||||
end
|
||||
|
||||
|
@ -73,14 +73,14 @@ class Admin::ModuleAppsController < ApplicationController
|
|||
def assign_manager
|
||||
unless @assign_to_user.nil? || @assign_to_user.admin?
|
||||
if @module_app.assign_manager(@assign_to_user,current_user)
|
||||
flash[:notice] = t('admin.app_auth.assigning_sub_manager.add_manager_ok')
|
||||
flash[:notice] = t('app_auth.assigning_sub_manager.add_sub_manager_ok')
|
||||
else
|
||||
flash[:notice] = t('admin.app_auth.assigning_sub_manager.add_manager_fail')
|
||||
flash[:notice] = t('app_auth.assigning_sub_manager.add_sub_manager_fail')
|
||||
end
|
||||
else
|
||||
flash[:notice] = t('admin.app_auth.assigning_sub_manager.failed_no_user')
|
||||
flash[:notice] = t('app_auth.failed_no_user')
|
||||
end
|
||||
flash[:notice] = t('admin.app_auth.can_not_add_this_user')
|
||||
flash[:notice] = t('app_auth.can_not_add_this_user')
|
||||
redirect_to :action => "edit"
|
||||
end
|
||||
|
||||
|
@ -88,9 +88,9 @@ class Admin::ModuleAppsController < ApplicationController
|
|||
def remove_manager
|
||||
@app_manager = AppManager.find(params[:app_manager_id])
|
||||
if @module_app.remove_manager(@app_manager.user)
|
||||
flash[:notice] = t('admin.app_auth.delete_manager.success')
|
||||
flash[:notice] = t('app_auth.delete_manager.success')
|
||||
else
|
||||
flash[:notice] = t('admin.app_auth.delete_manager.fail')
|
||||
flash[:notice] = t('app_auth.delete_manager.fail')
|
||||
end
|
||||
redirect_to :action => "edit"
|
||||
end
|
||||
|
@ -99,9 +99,9 @@ class Admin::ModuleAppsController < ApplicationController
|
|||
def remove_sub_manager
|
||||
@app_sub_manager = AppManager.find(params[:app_sub_manager_id])
|
||||
if @module_app.remove_sub_manager(@app_sub_manager.user)
|
||||
flash[:notice] = t('admin.app_auth.delete_sub_manager.success')
|
||||
flash[:notice] = t('app_auth.delete_sub_manager.success')
|
||||
else
|
||||
flash[:notice] = t('admin.app_auth.delete_sub_manager.fail')
|
||||
flash[:notice] = t('app_auth.delete_sub_manager.fail')
|
||||
end
|
||||
redirect_to :action => "edit"
|
||||
end
|
||||
|
@ -115,7 +115,7 @@ class Admin::ModuleAppsController < ApplicationController
|
|||
return
|
||||
end
|
||||
#user is not permited to do that
|
||||
flash[:notice] = t('admin.app_auth.operation_not_permitted')
|
||||
flash[:notice] = t('app_auth.operation_not_permitted')
|
||||
render :nothing => true, :status => 403
|
||||
end
|
||||
|
||||
|
@ -127,7 +127,7 @@ class Admin::ModuleAppsController < ApplicationController
|
|||
return
|
||||
end
|
||||
#user is not permited to do that
|
||||
flash[:notice] = t('admin.app_auth.operation_not_permitted')
|
||||
flash[:notice] = t('app_auth.operation_not_permitted')
|
||||
render :nothing => true, :status => 403
|
||||
end
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@ class Admin::ModuleAppsNewInterfaceController < OrbitBackendController
|
|||
def update_setting
|
||||
module_app = update_setting_by_params
|
||||
if module_app.save!
|
||||
flash[:notice] = t("admin.object_auth.update_done")
|
||||
flash[:notice] = t('update.success_')
|
||||
else
|
||||
flash[:notice] = t("admin.object_auth.update_failed")
|
||||
flash[:notice] = t('update.fail')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class Admin::ObjectAuthsController < ApplicationController
|
|||
if @object_auth.save
|
||||
redirect_to edit_admin_object_auth_path(@object_auth)
|
||||
else
|
||||
flash[:error] = t('admin.object.a_object_must_have_only_one_object_auth_profile_for_each_action')
|
||||
flash[:error] = t('object.a_object_must_have_only_one_object_auth_profile_for_each_action')
|
||||
redirect_to (:back)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -18,9 +18,9 @@ class Admin::ObjectAuthsNewInterfaceController < OrbitBackendController
|
|||
def update_setting
|
||||
ob_auth = update_setting_by_params
|
||||
if ob_auth.save!
|
||||
flash[:notice] = t("admin.object_auth.update_done")
|
||||
flash[:notice] = t('update.success_')
|
||||
else
|
||||
flash[:notice] = t("admin.object_auth.update_failed")
|
||||
flash[:notice] = t('update.fail')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ class Admin::PagePartsController < ApplicationController
|
|||
@part = PagePart.find(params[:id])
|
||||
if @part.update_attributes(params[:page_part])
|
||||
set_children_sub_menu(@part) if @part.public_r_tag && @part.public_r_tag.eql?('sub_menu')
|
||||
flash.now[:notice] = t('admin.update_success_content')
|
||||
flash.now[:notice] = t('update.success.content')
|
||||
|
||||
if @part.page.name == 'home'
|
||||
expire_page '/'
|
||||
|
|
|
@ -56,7 +56,7 @@ class Admin::PagesController < ApplicationController
|
|||
end
|
||||
|
||||
if @item.save
|
||||
flash.now[:notice] = t('admin.create_success_page')
|
||||
flash.now[:notice] = t('create.success.page')
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to admin_page_url(@item)
|
||||
|
@ -64,7 +64,7 @@ class Admin::PagesController < ApplicationController
|
|||
format.js {}
|
||||
end
|
||||
else
|
||||
flash.now[:error] = t('admin.create_error_page')
|
||||
flash.now[:error] = t('create.error.page')
|
||||
@apps = ModuleApp.all
|
||||
@designs = Design.all.entries
|
||||
@design = Design.first
|
||||
|
@ -80,7 +80,7 @@ class Admin::PagesController < ApplicationController
|
|||
end
|
||||
|
||||
if @item.update_attributes(params[:page])
|
||||
flash[:notice] = t('admin.update_success_page')
|
||||
flash[:notice] = t('update.success.page')
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to admin_page_url(@item)
|
||||
|
|
|
@ -1,81 +0,0 @@
|
|||
class Admin::TranslationsController < ApplicationController
|
||||
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :is_admin?
|
||||
|
||||
def index
|
||||
set_variables
|
||||
end
|
||||
|
||||
def edit
|
||||
set_variables
|
||||
end
|
||||
|
||||
# Update either the i18n_variables or the languages
|
||||
def update
|
||||
begin
|
||||
case params[:id]
|
||||
# Update the i18n_variables
|
||||
when 'all'
|
||||
params[:i18n_variables].each do |id, var|
|
||||
i18n_variable = I18nVariable.find(id)
|
||||
i18n_variable.update_attributes(var)
|
||||
end
|
||||
# Add a language
|
||||
when 'add'
|
||||
site = Site.find(session[:site])
|
||||
if !site.valid_locales.include?(params[:language])
|
||||
site.valid_locales << params[:language]
|
||||
site.save
|
||||
I18nVariable.create({:key => params[:language], :document_class => 'language'})
|
||||
end
|
||||
# Enable a language
|
||||
when 'enable'
|
||||
site = Site.find(session[:site])
|
||||
if !site.in_use_locales.include?(params[:enable_language])
|
||||
site.in_use_locales << params[:enable_language]
|
||||
site.save
|
||||
end
|
||||
# Disable a language
|
||||
when 'disable'
|
||||
site = Site.find(session[:site])
|
||||
if site.in_use_locales.include?(params[:disable_language])
|
||||
site.in_use_locales.delete(params[:disable_language])
|
||||
site.save
|
||||
end
|
||||
# Delete a language and the corresponding i18n_variables
|
||||
when 'delete'
|
||||
site = Site.find(session[:site])
|
||||
site.in_use_locales.delete(params[:delete_language])
|
||||
site.valid_locales.delete(params[:delete_language])
|
||||
site.save
|
||||
I18nVariable.destroy_all(:conditions => {:document_class => 'language', :key => params[:delete_language]})
|
||||
end
|
||||
redirect_to admin_translations_url
|
||||
rescue
|
||||
set_variables
|
||||
render :action => :edit
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
# Get the i18n_variables and languages
|
||||
def set_variables
|
||||
@i18n_variables = I18nVariable.all.entries
|
||||
@language_i18n_variables = @i18n_variables.inject([]) do |result, var|
|
||||
result << var if var.document_class.eql?('language')
|
||||
result
|
||||
end
|
||||
@role_i18n_variables = @i18n_variables.inject([]) do |result, var|
|
||||
result << var if var.document_class.eql?('Role')
|
||||
result
|
||||
end
|
||||
@info_i18n_variables = @i18n_variables.inject([]) do |result, var|
|
||||
result << var if var.document_class.eql?('UserInfoModel')
|
||||
result
|
||||
end
|
||||
end
|
||||
|
||||
end
|
|
@ -22,7 +22,7 @@ class Admin::UsersController < ApplicationController
|
|||
puts params.to_yaml
|
||||
@user = User.new(params[:user])
|
||||
if @user.save
|
||||
flash[:notice] = t('admin.create_success_user')
|
||||
flash[:notice] = t('create.success.user')
|
||||
redirect_to :action => :index
|
||||
else
|
||||
render :action => :new
|
||||
|
@ -42,10 +42,10 @@ class Admin::UsersController < ApplicationController
|
|||
@user.avatar = params[:file] if params[:file]
|
||||
|
||||
if @user.id.to_s.eql?(session['warden.user.user.key'][1].to_s) && @user.admin != params[:user][:admin].to_i.to_b
|
||||
flash.now[:error] = t('admin.cant_revoke_self_admin')
|
||||
flash.now[:error] = t(:cant_revoke_self_admin)
|
||||
end
|
||||
if !flash[:error] && @user.update_attributes(params[:user])
|
||||
flash[:notice] = t('admin.update_success_user')
|
||||
flash[:notice] = t('update.success.user')
|
||||
redirect_to :action => :index
|
||||
else
|
||||
get_info_and_roles
|
||||
|
@ -55,7 +55,7 @@ class Admin::UsersController < ApplicationController
|
|||
|
||||
def destroy
|
||||
if params[:id].eql?(session['warden.user.user.key'][1].to_s)
|
||||
flash[:error] = t('admin.cant_delete_self')
|
||||
flash[:error] = t(:cant_delete_self)
|
||||
else
|
||||
@user = User.find(params[:id])
|
||||
@user.destroy
|
||||
|
|
|
@ -61,7 +61,7 @@ class ApplicationController < ActionController::Base
|
|||
if is_admin?
|
||||
true
|
||||
else
|
||||
flash[:error] = t("admin.access.denied.not_admin")
|
||||
flash[:error] = t("access.denied.not_admin")
|
||||
auth_failed_in_backend
|
||||
end
|
||||
end
|
||||
|
@ -70,7 +70,7 @@ class ApplicationController < ActionController::Base
|
|||
if is_manager?
|
||||
true
|
||||
else
|
||||
flash[:error] = t("admin.access.denied.app.not_manager")
|
||||
flash[:error] = t("access.denied.app.not_manager")
|
||||
auth_failed_in_backend
|
||||
end
|
||||
end
|
||||
|
@ -79,7 +79,7 @@ class ApplicationController < ActionController::Base
|
|||
if (@module_app.sub_managing_users.include?(current_user) || is_manager?)
|
||||
true
|
||||
else
|
||||
flash[:error] = t("admin.access.denied.app.not_sub_manager")
|
||||
flash[:error] = t("access.denied.app.not_sub_manager")
|
||||
auth_failed_in_backend
|
||||
end
|
||||
end
|
||||
|
@ -88,13 +88,13 @@ class ApplicationController < ActionController::Base
|
|||
if (@module_app.app_auth.auth_users.include?(current_user) || for_app_sub_manager )
|
||||
true
|
||||
else
|
||||
flash[:error] = t("admin.access.denied.app.not_authed_user")
|
||||
flash[:error] = t("access.denied.app.not_authed_user")
|
||||
auth_failed_in_backend
|
||||
end
|
||||
end
|
||||
|
||||
def check_object_premission(obj,title)
|
||||
flash[:error] = t("admin.access.denied.object")
|
||||
flash[:error] = t("access.denied.object")
|
||||
auth_failed_in_backend unless (obj.get_object_auth_by_title(title).auth_users.include?(current_user) || is_manager? || is_admin? )
|
||||
end
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ class SessionsController < Devise::SessionsController
|
|||
result = false
|
||||
ldap_filter = "(uid=#{login_uid})"
|
||||
if /@rulingcom.com$/.match(login_uid).nil?
|
||||
MiddleSiteConnection.establish
|
||||
# MiddleSiteConnection.establish
|
||||
NccuLdapConnection.establish
|
||||
|
||||
if ($nccu_ldap_connection.bind rescue false)
|
||||
|
|
|
@ -22,8 +22,8 @@ module Admin::AdBannerHelper
|
|||
ad_banner.object_auths.new(title: type ).save
|
||||
oa = ad_banner.get_object_auth_by_title(type)
|
||||
end
|
||||
# link_to t('announcement.bulletin.cate_auth'), edit_admin_object_auth_path(oa)
|
||||
link_to t('admin.ad.cate_auth'),admin_object_auth_ob_auth_path(oa),:class => "btn btn-warning"
|
||||
# link_to t(:category_auth), edit_admin_object_auth_path(oa)
|
||||
link_to t(:category_auth),admin_object_auth_ob_auth_path(oa),:class => "btn btn-warning"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ module Admin::ItemHelper
|
|||
ret << (link_to node.title, dest, :class => 'js_history')
|
||||
ret << "<div class='quick-edit hide'>"
|
||||
ret << (link_to t('admin.edit'), eval("edit_admin_#{node.class.to_s.downcase}_path(node)"), :class => 'js_history') if node.class.to_s.eql?('Page')
|
||||
ret << (link_to t('admin.new_page'), new_admin_page_path(:parent_id => node.id), :class => 'new_page js_history') if node.class.to_s.eql?('Page')
|
||||
ret << (link_to t('admin.new_link'), new_admin_link_path(:parent_id => node.id), :class => 'new_link js_history') if node.class.to_s.eql?('Page')
|
||||
ret << (link_to t('new.page'), new_admin_page_path(:parent_id => node.id), :class => 'new_page js_history') if node.class.to_s.eql?('Page')
|
||||
ret << (link_to t('new.link'), new_admin_link_path(:parent_id => node.id), :class => 'new_link js_history') if node.class.to_s.eql?('Page')
|
||||
ret << (link_to t(:delete), eval("delete_admin_#{node.class.to_s.downcase}_path(node, :authenticity_token => form_authenticity_token)"), :confirm => t('sure?'), :class => 'delete js_history')
|
||||
ret << "</div>"
|
||||
ret << "</div>"
|
||||
|
|
|
@ -15,6 +15,6 @@ module Admin::ModuleAppHelper
|
|||
|
||||
def get_auth_by(manager_obj)
|
||||
showing_name = manager_obj.rule_creator==current_user ? t('me') : manager_obj.rule_creator.name
|
||||
t("admin.user_role.auth.auth_by",:user_display_name => showing_name)
|
||||
t("auth.auth_by",:user_display_name => showing_name)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -11,8 +11,8 @@ include ActionView::Helpers::UrlHelper
|
|||
page_context.object_auths.new(title: type ).save rescue
|
||||
oa = page_context.get_object_auth_by_title(type)
|
||||
end
|
||||
# link_to t('announcement.bulletin.cate_auth'), edit_admin_object_auth_path(oa)
|
||||
link_to t('admin.page_context.ob_auth.edit'),admin_object_auth_ob_auth_path(oa)
|
||||
# link_to t(:category_auth), edit_admin_object_auth_path(oa)
|
||||
link_to t(:category_auth),admin_object_auth_ob_auth_path(oa)
|
||||
end
|
||||
|
||||
end
|
|
@ -6,6 +6,6 @@ module Admin::WebLinkHelper
|
|||
web_link.object_auths.new(title: type ).save
|
||||
oa = web_link.get_object_auth_by_title(type)
|
||||
end
|
||||
link_to t('web_resource.cate_auth'),admin_object_auth_ob_auth_path(oa)
|
||||
link_to t(:category_auth),admin_object_auth_ob_auth_path(oa)
|
||||
end
|
||||
end
|
|
@ -43,7 +43,7 @@ module OrbitBackendHelper
|
|||
end
|
||||
|
||||
def show_toggle_archive_btn(object)
|
||||
object.disable ? t("object_disable.change_to_false") : t("object_disable.change_to_true")
|
||||
object.disable ? t(:disable) : t(:enable)
|
||||
end
|
||||
|
||||
end
|
|
@ -2,26 +2,26 @@
|
|||
<% if at_least_module_manager || sub_manager?(ad_banner_tab)%>
|
||||
<%= form_for ad_banner_tab,:url=> admin_ad_banner_path(ad_banner_tab),:method => :put,:class=>"input-medium" do |f| -%>
|
||||
<div class="adbanner-setup well">
|
||||
<!--<p><%#= t("admin.ad.banner_best_size") %>:</p>-->
|
||||
<%= f.label :ad_fx, t('admin.ad.ab_fx') %>
|
||||
<!--<p><%#= t("ad.banner_best_size") %>:</p>-->
|
||||
<%= f.label :ad_fx, t('ad.ab_fx') %>
|
||||
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
||||
<%= f.label :transition_sec, t('admin.ad.transition_sec') %>
|
||||
<%= f.text_field :transition_sec,:placeholder=>t('admin.ad.sec_place_holder'),:class=> "span3" %> <%= t("admin.ad.trans_unit_sec") %>
|
||||
<%= f.label :transition_sec, t('ad.transition_sec') %>
|
||||
<%= f.text_field :transition_sec,:placeholder=>t('ad.sec_place_holder'),:class=> "span3" %> <%= t("ad.trans_unit_sec") %>
|
||||
<%if at_least_module_manager%>
|
||||
<%= f.label :best_size, t('admin.ad.best_size') %>
|
||||
<%= f.label :best_size, t('ad.best_size') %>
|
||||
<%= f.text_field :best_size %> Ex: 500px x 300px
|
||||
<% end -%>
|
||||
<br>
|
||||
<%= f.submit t("admin.ad.update_banner"), :class => 'btn' %>
|
||||
<%= f.submit t("ad.update_banner"), :class => 'btn' %>
|
||||
<%= f.submit t("cancel"),:type=>'reset', :class => 'btn' %>
|
||||
</div>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<h3><%= t("admin.ad.picture_list")%></h3>
|
||||
<h3><%= t("ad.picture_list")%></h3>
|
||||
<div class="adbanner-list">
|
||||
<%if (at_least_module_manager || ad_banner_tab.cur_user_is_sub_manager_of(:edit) )%>
|
||||
<%= content_tag :div ,:class=>'adbanner-action' do%>
|
||||
<%= link_to t("admin.ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%>
|
||||
<%= link_to t("ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%>
|
||||
<%= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(ad_banner_tab.id) , :class=>'preview_trigger btn btn-success'%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
@ -30,7 +30,7 @@
|
|||
</ul>
|
||||
<% if at_least_module_manager %>
|
||||
<%= show_ad_banner_permission_link ad_banner_tab%>
|
||||
<%= link_to t('admin.ad.delete_banner'),admin_ad_banner_path(ad_banner_tab),:class => 'btn',:method => :delete,:confirm => t('sure?') %>
|
||||
<%= link_to t('ad.delete_banner'),admin_ad_banner_path(ad_banner_tab),:class => 'btn',:method => :delete,:confirm => t('sure?') %>
|
||||
<% end -%>
|
||||
|
||||
<%#= render :partial => 'new_add_banner_file', :object => ad_banner_tab.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<li class="span3">
|
||||
<%= image_tag ad_image.file rescue nil%>
|
||||
<p>
|
||||
<%= ad_image.display? ? "[#{t('admin.ad.showing')}]" : "[#{t('admin.ad.not_showing')}]" %>
|
||||
<%= ad_image.display? ? "[#{t('ad.showing')}]" : "[#{t('ad.not_showing')}]" %>
|
||||
<%= "#{ad_image.post_date ||'NeedReset' }~#{ad_image.unpost_date || 'NeedReset'}" %>
|
||||
</p>
|
||||
<%if at_least_module_manager || sub_manager?(ad_image.ad_banner) %>
|
||||
|
|
|
@ -4,33 +4,33 @@
|
|||
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h3><%= t("admin.ad.new_banner") %></h3>
|
||||
<h3><%= t('new.banner') %></h3>
|
||||
</div>
|
||||
|
||||
<div class="modal-body form-horizontal">
|
||||
<div class="control-group">
|
||||
<%= f.label :title,t('admin.ad.title'),:class => "control-label" %>
|
||||
<%= f.label :title, t(:title),:class => "control-label" %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :title %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :transition_sec, t('admin.ad.transition_sec'),:class => "control-label" %>
|
||||
<%= f.label :transition_sec, t('ad.transition_sec'),:class => "control-label" %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :transition_sec %> <%= t("admin.ad.trans_unit_sec") %>
|
||||
<%= f.text_field :transition_sec %> <%= t("ad.trans_unit_sec") %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :best_size, t('admin.ad.best_size'),:class => "control-label" %>
|
||||
<%= f.label :best_size, t('ad.best_size'),:class => "control-label" %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :best_size %> Ex: 500px x 300px
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :ad_fx, t('admin.ad.ab_fx') %>
|
||||
<%= f.label :ad_fx, t('ad.ab_fx') %>
|
||||
<div class="controls">
|
||||
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
||||
</div>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
<%= content_tag :li,link_to(t("admin.ad.new_banner"),"#new-a-banner",:data=>{:toggle=>"modal"}),:id=>'new_ad_banner_tab_but',:class => (@active.nil? ? 'active' : nil ) if at_least_module_manager%>
|
||||
<%= content_tag :li,link_to(t('new.banner'),"#new-a-banner",:data=>{:toggle=>"modal"}),:id=>'new_ad_banner_tab_but',:class => (@active.nil? ? 'active' : nil ) if at_least_module_manager%>
|
||||
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
<%= image_tag @ad_image.file rescue ''%>
|
||||
</div>
|
||||
<% if !@ad_image.ad_banner.best_size.empty?%>
|
||||
<span class="alert widgetInfo"><%= t("admin.ad.widget_info_for_ad_image_size",:best_size=> @ad_image.ad_banner.best_size) %>
|
||||
<span class="alert widgetInfo"><%= t("ad.widget_info_for_ad_image_size",:best_size=> @ad_image.ad_banner.best_size) %>
|
||||
</span>
|
||||
<% end -%>
|
||||
<div class="controls file-upload input-prepend">
|
||||
|
|
|
@ -5,18 +5,18 @@
|
|||
<div class="main_list">
|
||||
<%= flash_messages %>
|
||||
<div class="button_bar up">
|
||||
<% #link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
|
||||
<% #link_to t('new.user'), new_admin_user_path, :class => 'new' %>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><%= t('admin.app.title') %></td>
|
||||
<td><%= t('admin.app.description') %></td>
|
||||
<td><%= t('admin.app.use_status') %></td>
|
||||
<td><%= t('admin.app.autdor') %></td>
|
||||
<td><%= t('admin.app.organization') %></td>
|
||||
<td><%= t('admin.app.version') %></td>
|
||||
<td class="action"><%= t('admin.action') %></td>
|
||||
<td><%= t(:title) %></td>
|
||||
<td><%= t(:description) %></td>
|
||||
<td><%= t(:use_status) %></td>
|
||||
<td><%= t(:author) %></td>
|
||||
<td><%= t(:organization) %></td>
|
||||
<td><%= t(:version) %></td>
|
||||
<td class="action"><%= t(':action') %></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -47,6 +47,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="button_bar">
|
||||
<%# link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
|
||||
<%# link_to t('new.user'), new_admin_user_path, :class => 'new' %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
|
||||
<li><%= link_to t('asset_category.edit'), edit_admin_asset_category_path(asset_category), :remote => true %></li>
|
||||
<li><%= link_to t('asset_category.delete'), admin_asset_category_path(asset_category), :confirm => t('announcement.sure?'), :method => :delete, :remote => true %></li>
|
||||
<li><%= link_to t(:edit), edit_admin_asset_category_path(asset_category), :remote => true %></li>
|
||||
<li><%= link_to t(:delete), admin_asset_category_path(asset_category), :confirm => t(:sure?), :method => :delete, :remote => true %></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span2"><%= t('asset_category.key') %></th>
|
||||
<th class="span2"><%= t(:key) %></th>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<th class="span2"><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></th>
|
||||
<% end %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div id='pop_up_content' class="main2">
|
||||
<h1><%= t('editing_asset') %></h1>
|
||||
<h1><%= t('editing.asset') %></h1>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
|||
<%= link_back %>
|
||||
<%= f.submit t(:edit) %>
|
||||
<% else %>
|
||||
<a id='ajax_form_submit' class="btn btn-primary"><%= t(:update) %></a>
|
||||
<a id='ajax_form_submit' class="btn btn-primary"><%= t(:update_) %></a>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="control-group">
|
||||
<label for="title" class="control-label"><%= t 'admin.title' %></label>
|
||||
<label for="title" class="control-label"><%= t :title %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :title_translations do |f| %>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
|
@ -14,13 +14,13 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= f.label :category, t('admin.category') %></label>
|
||||
<label class="control-label"><%= f.label :category, t(:category) %></label>
|
||||
<div class="controls">
|
||||
<%= f.select :asset_category_id, @asset_categories.collect{|t| [ t.title, t.id ]}, {}, :class => "input-large" %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.tags' %></label>
|
||||
<label class="control-label"><%= t :tags %></label>
|
||||
<div class="controls">
|
||||
<% @tags.each do |tag| %>
|
||||
<%= content_tag :label, :class => "checkbox inline" do -%>
|
||||
|
@ -32,7 +32,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= f.label :data, t('admin.data') %></label>
|
||||
<label class="control-label"><%= f.label :data, t(:data) %></label>
|
||||
<div class="controls">
|
||||
<%= f.file_field :data, :class => 'upload' %>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div id='pop_up_content' class="main2">
|
||||
<h1><%= t('admin.new_asset') %></h1>
|
||||
<h1><%= t('new.asset') %></h1>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
|||
<%= f.error_messages %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<div class="button_bar">
|
||||
<a id='ajax_form_submit' class="btn btn-primary"><%= t(:create) %></a>
|
||||
<a id='ajax_form_submit' class="btn btn-primary"><%= t(:create_) %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<%= render_sort_bar(true, delete_admin_assets_path(:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]),
|
||||
['title', 'title','span4', 'admin.title'],
|
||||
['description', 'description', 'span1-2', 'admin.data'],
|
||||
['intro', 'intro', 'span1-2', 'admin.file_type'],
|
||||
['intro', 'intro', 'span1-2', 'admin.file_length'],
|
||||
['intro', 'intro', 'span1-2', 'admin.description'],
|
||||
['intro', 'intro', 'span1-2', 'admin.tags']).html_safe %>
|
||||
['title', 'title','span4', :title],
|
||||
['description', 'description', 'span1-2', :data],
|
||||
['intro', 'intro', 'span1-2', :type],
|
||||
['intro', 'intro', 'span1-2', :size],
|
||||
['intro', 'intro', 'span1-2', :description],
|
||||
['intro', 'intro', 'span1-2', :tags]).html_safe %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% content_for :secondary do %>
|
||||
<div class="assets_setup">
|
||||
<ul class="list">
|
||||
<li><%= link_to t(:new_asset, :scope => :admin), new_admin_asset_path, :remote => true, :class => 'button positive' %></li>
|
||||
<li><%= link_to t('admin.new_asset'), new_admin_asset_path, :remote => true, :class => 'button positive' %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<body onload="tinyMCEPopup.executeOnLoad('init();')">
|
||||
<%= form_for :asset, :url => admin_assets_path(:uploader => true), :html => {:id => 'ajaxForm', :multipart => true } do |f| %>
|
||||
<div class="modal-header">
|
||||
<h3><%= t 'admin.file_upload' %></h3>
|
||||
<h3><%= t 'file.upload' %></h3>
|
||||
</div>
|
||||
<label class="control-label error" id="dyn_error"></label>
|
||||
<div class="modal-body form-horizontal">
|
||||
<div class="control-group">
|
||||
<label for="title" class="control-label error"><%= t 'admin.title' %></label>
|
||||
<label for="title" class="control-label error"><%= t :title %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :title_translations do |f| %>
|
||||
<div>
|
||||
|
@ -29,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="description" class="control-label error"><%= t 'admin.description' %></label>
|
||||
<label for="description" class="control-label error"><%= t :description %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :description_translations do |f| %>
|
||||
<div>
|
||||
|
@ -46,7 +46,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<%#= f.label :data, t('admin.data'), :class => "control-label" %>
|
||||
<%#= f.label :data, t(:data), :class => "control-label" %>
|
||||
<div class="controls">
|
||||
<%= f.file_field :data, :class => 'upload' %>
|
||||
</div>
|
||||
|
@ -54,7 +54,7 @@
|
|||
</div>
|
||||
<div style="position: absolute; width: 100%; bottom: 0;">
|
||||
<div class="modal-footer">
|
||||
<a id='ajax_form_submit' class="btn btn-primary"><%= t(:create) %></a>
|
||||
<a id='ajax_form_submit' class="btn btn-primary"><%= t(:create_) %></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</table>
|
||||
|
||||
<div class="form-actions form-fixed pagination-right">
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('admin.add'), new_admin_asset_path, :remote => true, :class => 'btn btn-primary pull-right' %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:add), new_admin_asset_path, :remote => true, :class => 'btn btn-primary pull-right' %>
|
||||
<div id="asset_pagination" class="paginationFixed">
|
||||
<%= paginate @assets, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]}, :remote => true %>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% content_for :secondary do %>
|
||||
<div class="assets_setup">
|
||||
<ul class="list">
|
||||
<li><%= link_to t(:new_asset, :scope => :admin), new_admin_asset_path, :remote => true, :class => 'button positive' %></li>
|
||||
<li><%= link_to t('admin.new_asset'), new_admin_asset_path, :remote => true, :class => 'button positive' %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<td class='select_type'>
|
||||
<%= f.select :markup, LIST[:markups], {}, {:style => "width:90px"} %>
|
||||
<div <%= attribute_field[:markup].eql?('select') ? nil : "style='display:none'"%>>
|
||||
<%= t('admin.options') %>:
|
||||
<%= t(:options) %>:
|
||||
<%= f.select "select_list_options", attribute_field.select_list_options, :style => "width:130px" %>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
<div class="main_list">
|
||||
<div class="button_bar up">
|
||||
<%= link_to t("admin.new_#{@attribute_type}"), eval("new_admin_#{@attribute_type}_path"), :class => 'new' %>
|
||||
<%= link_to t("new.#{@attribute_type}"), eval("new_admin_#{@attribute_type}_path"), :class => 'new' %>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="<%= @attribute_type %>s"><%= t("admin.#{@attribute_type}") %></td>
|
||||
<td class="action"><%= t('admin.action') %></td>
|
||||
<td class="action"><%= t(':action') %></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -34,6 +34,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="button_bar">
|
||||
<%= link_to t("admin.new_#{@attribute_type}"), eval("new_admin_#{@attribute_type}_path"), :class => 'new' %>
|
||||
<%= link_to t("new.#{@attribute_type}"), eval("new_admin_#{@attribute_type}_path"), :class => 'new' %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
<div id="open_for_all_user">
|
||||
<h1><%= t("admin.user_role.auth.all_member") %></h1>
|
||||
<h1><%= t("auth.all_member") %></h1>
|
||||
<%= form_tag(submit_url) do %>
|
||||
<%= check_box_tag 'auth_all',true,(auth.all rescue true) %><%= submit_tag t("admin.user_role.auth.all_member") %><br/>
|
||||
<%= check_box_tag 'auth_all',true,(auth.all rescue true) %><%= submit_tag t("auth.all_member") %><br/>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div id="user_role_management">
|
||||
<h1><%= t("admin.user_role.auth.user") %></h1>
|
||||
<h1><%= t(:user) %></h1>
|
||||
<%= form_tag(submit_url) do %>
|
||||
<%= collection_select(:new,:role, Role.all, :id, :key, :prompt => true) %>
|
||||
<%= submit_tag t("admin.user_role.auth.by_role") %><br/>
|
||||
<%= submit_tag t("auth.by_role") %><br/>
|
||||
<%= collection_select(:new,:sub_role, SubRole.all, :id, :key, :prompt => true) %>
|
||||
<%= submit_tag t("admin.user_role.auth.by_sub_role") %><br/>
|
||||
<%= submit_tag t("auth.by_sub_role") %><br/>
|
||||
<%= collection_select(:new,:privilege_user, User.all, :id, :name, :prompt => true) %>
|
||||
<%= submit_tag t("admin.user_role.auth.add_to_privilege_list") %><br/>
|
||||
<%= submit_tag t("auth.add_to_privilege_list") %><br/>
|
||||
<%= collection_select(:new,:blocked_user, User.all, :id, :name, :prompt => true) %>
|
||||
<%= submit_tag t("admin.user_role.auth.add_to_block_list") %><br/>
|
||||
<%= submit_tag t("auth.add_to_block_list") %><br/>
|
||||
<% end %>
|
||||
<% unless auth.nil? %>
|
||||
<% auth.roles.each do |role| %>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="item element">
|
||||
<h3><i class="icons-asset"></i><a href=""><%= t(:file) %></a></a></h3>
|
||||
<h3><i class="icons-asset"></i><a href=""><%= t(:file_) %></a></a></h3>
|
||||
<div class="detail w-a h-a">
|
||||
<p class="totle"><span><%= t(:all_file) %></span>3,422</p>
|
||||
<table class="table table-striped">
|
||||
|
|
|
@ -6,21 +6,21 @@
|
|||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= f.label :title, t('admin.title') %>
|
||||
<%= f.label :title, t(:title) %>
|
||||
<%= f.text_field :title, :class => 'text' %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :author, t('admin.author') %>
|
||||
<%= f.label :author, t(:author) %>
|
||||
<%= f.text_field :author, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :intro, t('admin.intro') %>
|
||||
<%= f.label :intro, t(:intro) %>
|
||||
<%= f.text_field :intro, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label "layout", t('admin.layout') %>
|
||||
<%= f.label "layout", t(:layout) %>
|
||||
<% if @design.layout.blank? %>
|
||||
<%= fields_for 'design[layout]' do |f| %>
|
||||
<%= f.file_field :file %>
|
||||
|
@ -31,7 +31,7 @@
|
|||
<% end %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label "default_css", t('admin.default_css') %>
|
||||
<%= f.label "default_css", t(:default_css) %>
|
||||
<% if @design.default_css.blank? %>
|
||||
<%= fields_for 'design[default_css]' do |f| %>
|
||||
<%= f.file_field :file %>
|
||||
|
@ -42,7 +42,7 @@
|
|||
<% end %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :themes, t('admin.themes') %>
|
||||
<%= f.label :themes, t(:themes) %>
|
||||
<ul>
|
||||
<% @design.themes.each do |theme| %>
|
||||
<%= render :partial => 'design_file', :object => theme, :locals => { :field_name => "themes", :f => f, :classes => "r_destroy, r_edit" } %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h1><%= t('admin.new_design') %></h1>
|
||||
<h1><%= t('new.design') %></h1>
|
||||
|
||||
<%= form_for @design, :url => admin_design_path(@design),:html => {:multipart => true} do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<%= render_sort_bar(true, delete_admin_designs_path(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]),
|
||||
['title', 'title','span7', 'admin.title'],
|
||||
['author', 'author', 'span2', 'admin.author'],
|
||||
['intro', 'intro', 'span2', 'admin.intro']).html_safe %>
|
||||
['title', 'title','span7', :title],
|
||||
['author', 'author', 'span2', :author],
|
||||
['intro', 'intro', 'span2', :intro]).html_safe %>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<%= render 'admin/sites/side_bar' %>
|
||||
<% end %>
|
||||
|
||||
<h1><%= t('admin.editing_design') %></h1>
|
||||
<h1><%= t('editing.design') %></h1>
|
||||
|
||||
<%= form_for @design, :url => admin_design_path(@design),:html => {:multipart => true} do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
</table>
|
||||
|
||||
<div class="form-actions form-fixed pagination-right">
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('admin.add'), new_admin_design_path, :class => 'btn btn-primary pull-right' %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:add), new_admin_design_path, :class => 'btn btn-primary pull-right' %>
|
||||
</div>
|
|
@ -2,7 +2,7 @@
|
|||
<%= render 'admin/sites/side_bar' %>
|
||||
<% end %>
|
||||
|
||||
<h1><%= t('admin.new_design') %></h1>
|
||||
<h1><%= t('new.design') %></h1>
|
||||
|
||||
<%= form_for :design, :url => admin_designs_path, :html => {:multipart => true} do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<thead class="list_head">
|
||||
<tr>
|
||||
<td><%= t('admin.key') %></td>
|
||||
<td><%= t(:key) %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
|
||||
<% end %>
|
||||
|
@ -31,12 +31,12 @@
|
|||
<table id='attributes' border="0" cellspacing="0" cellpadding="0">
|
||||
<thead class="list_head">
|
||||
<tr>
|
||||
<td><%= t('admin.key') %></td>
|
||||
<td><%= t('admin.multilingual') %></td>
|
||||
<td><%= t(:key) %></td>
|
||||
<td><%= t(:multilingual) %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
|
||||
<% end %>
|
||||
<td><%= t('admin.type')%></td>
|
||||
<td><%= t(:type)%></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h1><%= t('admin.editing_link') %></h1>
|
||||
<h1><%= t('editing.link') %></h1>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
|
@ -7,6 +7,6 @@
|
|||
<%= render :partial => "admin/links/form", :locals => { :f => f } %>
|
||||
|
||||
<p>
|
||||
<%= f.submit t(:update) %> <%= link_back %>
|
||||
<%= f.submit t(:update_) %> <%= link_back %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
|
@ -1,26 +1,59 @@
|
|||
<%= f.error_messages %>
|
||||
<%= f.hidden_field :parent, :value => @item.parent.id %>
|
||||
<%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
|
||||
|
||||
<p>
|
||||
<%= f.label :name, "Name" %>
|
||||
<%= f.text_field :name, :class => 'text' %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :name, t(:name), :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :name, :class => 'text input-xlarge' %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= f.fields_for :title_translations do |f| %>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<p>
|
||||
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %>
|
||||
<%= f.text_field locale, :value => (@item.title_translations[locale] rescue nil) %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field locale, :class => 'text input-xlarge', :value => (@item.title_translations[locale] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= f.label :is_published, t('admin.is_published') %>
|
||||
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :is_published, "#{t(:is_published)} ?", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<label class="radio">
|
||||
<%= f.radio_button :is_published, true %>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<%= f.radio_button :is_published, false %>
|
||||
No
|
||||
</label>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<%= f.label :url, "URL" %>
|
||||
<%= f.text_field :url %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<%= f.label :menu_enabled_for, "#{t(:menu_enabled_for)}:", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<% @site_valid_locales.each do |valid_locale| %>
|
||||
<label class="checkbox">
|
||||
<%= check_box_tag 'link[menu_enabled_for][]', valid_locale, (@item.menu_enabled_for.nil? ? true : @item.menu_enabled_for.include?(valid_locale)) %>
|
||||
<%= I18nVariable.from_locale(valid_locale) %>
|
||||
</label>
|
||||
<% end %>
|
||||
<%= hidden_field_tag 'link[menu_enabled_for][]', '' %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :url, "#{t(:url)}:", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :url, :class => 'text input-xlarge', :value => (@item.url rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h1><%= t('admin.new_link') %></h1>
|
||||
<h1><%= t('new.link') %></h1>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
|||
<%= render :partial => "admin/links/form", :locals => { :f => f } %>
|
||||
|
||||
<p>
|
||||
<%= f.submit t(:create) %> <%= link_back %>
|
||||
<%= f.submit t(:create_) %> <%= link_back %>
|
||||
</p>
|
||||
|
||||
<% end %>
|
||||
|
|
|
@ -1,24 +1,37 @@
|
|||
<%= flash_messages %>
|
||||
<p>
|
||||
<b><%= t('admin.name') %></b>
|
||||
<%= @item.name %>
|
||||
</p>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:url) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.name %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<p>
|
||||
<b><%= "#{t('admin.title')} #{locale}" %></b>
|
||||
<%= @item.title_translations[locale] if @item.title %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:title) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.title_translations[locale] if @item.title %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<b><%= t('admin.is_published') %></b>
|
||||
<%= @item.is_published.to_s %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:is_published) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.is_published.to_s %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<b><%= t('admin.url') %></b>
|
||||
<%= @item.url %>
|
||||
</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t(:url) %></label>
|
||||
<div class="controls">
|
||||
<%= @item.url %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= link_to t(:edit), edit_admin_link_path(@item), :class => 'nav' %>
|
|
@ -5,26 +5,26 @@
|
|||
|
||||
<div id="manager_management">
|
||||
<dl id="manager">
|
||||
<dt><%= t("admin.user_role.auth.manager") %></ht>
|
||||
<dt><%= t(:manager) %></ht>
|
||||
<% @module_app.managers.each do |manager| %>
|
||||
<dd><%= manager.user.name %> <%= get_auth_by(manager) %> <%= link_to '[X]',remove_manager_admin_module_app_path(@module_app,manager),:method => :delete if if_permit_to_delete(:manager) && manager.user != current_user %> </dd>
|
||||
<% end %>
|
||||
<dd>
|
||||
<%= form_tag(assign_manager_admin_module_app_path) do %>
|
||||
<%= collection_select(:manager,:id, User.all, :id, :name, :prompt => true,:disabled => !if_permit_to_assign(:manager))%>
|
||||
<%= submit_tag t("admin.user_role.auth.add_manager") %>
|
||||
<%= submit_tag t("auth.add_manager") %>
|
||||
<% end %>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl id="sub_manager">
|
||||
<dt><%#= t("admin.user_role.auth.sub_manager") %></ht>
|
||||
<dt><%#= t(:sub_manager) %></ht>
|
||||
<%# @module_app.sub_managers.each do |manager| %>
|
||||
<dd><%#= manager.user.name %> <%#= get_auth_by(manager) %><%#= link_to '[X]',remove_sub_manager_admin_module_app_path(@module_app,manager),:method => :delete if if_permit_to_delete(:sub_manager) && manager.user != current_user %> </dd>
|
||||
<%# end %>
|
||||
<dd>
|
||||
<%#= form_tag(assign_sub_manager_admin_module_app_path) do %>
|
||||
<%#= collection_select(:sub_manager,:id, User.all, :id, :name, :prompt => true,:disabled => !if_permit_to_assign(:sub_manager))%>
|
||||
<%#= submit_tag t("admin.user_role.auth.add_sub_manager") %>
|
||||
<%#= submit_tag t("auth.add_sub_manager") %>
|
||||
<%# end %>
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="modal hide fade in" id="module_app-<%=module_app.id%>">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h3><%= t("admin.user_role.auth.manager") %></h3>
|
||||
<h3><%= t(:manager) %></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="clear">
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<%= javascript_include_tag "inc/search" %>
|
||||
<%= javascript_include_tag "inc/modal-preview" %>
|
||||
<% end %>
|
||||
<%#= label_tag :fact_check_setting, t("announcement.bulletin.fact_check_setting") %>
|
||||
<%= form_tag('', :remote => true,:class => "prevent_enter_submit_form") %>
|
||||
<div class="subnav clear">
|
||||
<ul class="nav nav-pills filter pull-left">
|
||||
|
@ -19,10 +18,10 @@
|
|||
|
||||
</li>
|
||||
</ul>
|
||||
<%= link_to t("admin.user_role.auth.manager"), admin_module_app_manager_auth_show_path , :class=>'preview_trigger btn btn-success pull-right'%>
|
||||
<%= link_to t(:manager), admin_module_app_manager_auth_show_path , :class=>'preview_trigger btn btn-success pull-right'%>
|
||||
|
||||
</div>
|
||||
<%#= label_tag :role, t("admin.roles") %>
|
||||
<%#= label_tag :role, t(:roles) %>
|
||||
<div class="clear">
|
||||
<%= content_tag :div do -%>
|
||||
<% form_tag admin_module_app_manager_auth_proc_path do %>
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
<div class="main_list">
|
||||
<%= flash_messages %>
|
||||
<div class="button_bar up">
|
||||
<% #link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
|
||||
<% #link_to t('new.user'), new_admin_user_path, :class => 'new' %>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><%= t('admin.object_auth.title') %></td>
|
||||
<td><%= t('admin.object_auth.obj_type') %></td>
|
||||
<td><%= t(:title) %></td>
|
||||
<td><%= t(:type) %></td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -34,6 +34,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="button_bar">
|
||||
<%# link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
|
||||
<%# link_to t('new.user'), new_admin_user_path, :class => 'new' %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="modal hide fade in" id="ob_auth-<%=ob_auth.id%>">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h3><%= t("admin.object_auth.list_title_of_users",:auth_title => ob_auth.title) %></h3>
|
||||
<h3><%= t("object_auth.list_title_of_users",:auth_title => ob_auth.title) %></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="clear">
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<%= javascript_include_tag "inc/search" %>
|
||||
<%= javascript_include_tag "inc/modal-preview" %>
|
||||
<% end %>
|
||||
<%#= label_tag :fact_check_setting, t("announcement.bulletin.fact_check_setting") %>
|
||||
<%= form_tag('', :remote => true,:class => "prevent_enter_submit_form") %>
|
||||
<div class="subnav clear">
|
||||
<ul class="nav nav-pills filter pull-left">
|
||||
|
@ -20,10 +19,10 @@
|
|||
|
||||
</li>
|
||||
</ul>
|
||||
<%= link_to t("admin.object_auth.list_title_of_users",:auth_title => @ob_auth.title), admin_object_auth_ob_auth_show_path , :class=>'preview_trigger btn btn-success pull-right'%>
|
||||
<%= link_to t("object_auth.list_title_of_users",:auth_title => @ob_auth.title), admin_object_auth_ob_auth_show_path , :class=>'preview_trigger btn btn-success pull-right'%>
|
||||
|
||||
</div>
|
||||
<%#= label_tag :role, t("admin.roles") %>
|
||||
<%#= label_tag :role, t(:roles) %>
|
||||
<div class="clear">
|
||||
<%= content_tag :div do -%>
|
||||
<% form_tag admin_object_auth_ob_auth_path do %>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<% LIST[:page_part_kinds].each do |kind| %>
|
||||
<%= f.radio_button :kind, kind, :class => 'part_kind' %>
|
||||
<%= t(kind, :scope => 'admin.page_part_kinds') %>
|
||||
<%= t(kind, :scope => 'page_part_kinds' %>
|
||||
<% end %>
|
||||
|
||||
<% LIST[:page_part_kinds].each do |kind| %>
|
||||
|
@ -12,6 +12,6 @@
|
|||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= f.submit t(:update) %> <%= link_back %>
|
||||
<%= f.submit t(:update_) %> <%= link_back %>
|
||||
</p>
|
||||
<% end %>
|
|
@ -2,7 +2,7 @@
|
|||
<%= f.fields_for :title_translations do |f| %>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<p>
|
||||
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %>
|
||||
<%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}" %>
|
||||
<%= f.text_field locale, :value => (@part.title_translations[locale] rescue nil) %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<%= flash_messages %>
|
||||
<div id="poststuff">
|
||||
<h1><%= t('admin.editing_page') %></h1>
|
||||
<h1><%= t('editing.page') %></h1>
|
||||
<%= form_for @item, :url => admin_page_path(@item), :html => { :class => 'form-horizontal edit_page' } do |f| %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<div class="form-actions">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :name, t('admin.name'), :class => 'control-label' %>
|
||||
<%= f.label :name, t(:name), :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field :name, :class => 'text input-xlarge' %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
|
@ -12,7 +12,7 @@
|
|||
<%= f.fields_for :title_translations do |f| %>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<div class="control-group">
|
||||
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
|
||||
<%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.text_field locale, :class => 'text input-xlarge', :value => (@item.title_translations[locale] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
|
@ -22,21 +22,21 @@
|
|||
<% end %>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :name, t('admin.design_name'), :class => 'control-label' %>
|
||||
<%= f.label :name, t(:template_name), :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.collection_select :design, @designs, :id, :title, {:selected => @design.id}, {:rel => admin_pages_path} %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<%= f.label :name, t('admin.theme'), :class => 'control-label' %>
|
||||
<%= f.label :name, t(:theme), :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= f.select :theme_id, @design.themes.collect { |t| [t.name.capitalize, t.id] }, :include_blank => true %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<%= f.label :name, t('admin.module_app'), :class => 'control-label' %>
|
||||
<%= f.label :name, t(:module), :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<%= render :partial => "app_selector", :locals => { :f => f } %>
|
||||
<span id="app_page_url">
|
||||
|
@ -52,7 +52,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<%= f.label :is_published, "#{t('admin.is_published')} ?", :class => 'control-label' %>
|
||||
<%= f.label :is_published, "#{t(:is_published)} ?", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<label class="radio">
|
||||
<%= f.radio_button :is_published, true %>
|
||||
|
@ -66,7 +66,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<%= f.label :menu_enabled_for, "#{t('admin.menu_enabled_for')}:", :class => 'control-label' %>
|
||||
<%= f.label :menu_enabled_for, "#{t(:menu_enabled_for)}:", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<% @site_valid_locales.each do |valid_locale| %>
|
||||
<label class="checkbox">
|
||||
|
@ -80,7 +80,7 @@
|
|||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<%= f.label :enabled_for, "#{t('admin.enabled_for')}:", :class => 'control-label' %>
|
||||
<%= f.label :enabled_for, "#{t(:enabled_for)}:", :class => 'control-label' %>
|
||||
<div class="controls">
|
||||
<% @site_valid_locales.each do |valid_locale| %>
|
||||
<label class="checkbox">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<%= flash_messages %>
|
||||
<div id="poststuff">
|
||||
<h1><%= t('admin.new_page') %></h1>
|
||||
<h1><%= t('new.page') %></h1>
|
||||
<%= form_for @item, :url => admin_pages_path, :html => { :class => 'form-horizontal edit_page' } do |f| %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<div class="form-actions">
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<div class="main2">
|
||||
<h1><%= t('admin.list_puchases') %></h1>
|
||||
<h1><%= t('list.puchase') %></h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><%= t('admin.title') %></td>
|
||||
<td><%= t('admin.intro') %></td>
|
||||
<td><%= t('admin.author') %></td>
|
||||
<td><%= t('admin.action') %></td>
|
||||
<td><%= t(:title) %></td>
|
||||
<td><%= t(:intro) %></td>
|
||||
<td><%= t(:author) %></td>
|
||||
<td><%= t(':action') %></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<%# @purchases.each do |purchase| %>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<thead class="list_head">
|
||||
<tr>
|
||||
<td><%= t('admin.key') %></td>
|
||||
<td><%= t(:key) %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
|
||||
<% end %>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<thead class="list_head">
|
||||
<tr>
|
||||
<td><%= t('admin.key') %></td>
|
||||
<td><%= t(:key) %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
|
||||
<% end %>
|
||||
|
@ -25,12 +25,12 @@
|
|||
<table class="sub_role_attributes" border="0" cellspacing="0" cellpadding="0">
|
||||
<thead class="list_head">
|
||||
<tr>
|
||||
<td><%= t('admin.key') %></td>
|
||||
<td><%= t('admin.multilingual') %></td>
|
||||
<td><%= t(:key) %></td>
|
||||
<td><%= t(:multilingual) %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
|
||||
<% end %>
|
||||
<td><%= t('admin.type')%></td>
|
||||
<td><%= t(:type)%></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% if @site && @site.registered? %>
|
||||
<%# if @site %>
|
||||
<div class="bought_btn">
|
||||
<%= t('admin.registered') %>
|
||||
<%= t(:registered) %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="buy_btn">
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
<%= content_tag :li, :class => active_for_controllers('sites') do -%>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-cog') + t('admin.site_settings'), admin_site_site_info_path(@site) %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-cog') + t('site.settings'), admin_site_site_info_path(@site) %>
|
||||
|
||||
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('sites')) do -%>
|
||||
<%= content_tag :li, link_to(t('admin.site_info'), admin_site_site_info_path(@site)), :class => active_for_action('sites', 'site_info') %>
|
||||
<%#= content_tag :li, link_to(t('admin.system_info'), admin_site_system_info_path(@site)), :class => active_for_action('sites', 'system_info') %>
|
||||
<%#= content_tag :li, link_to(t('admin.site_language'), admin_site_language_path(@site)), :class => active_for_action('sites', 'language') %>
|
||||
<%= content_tag :li, link_to(t('admin.mail_setting'), admin_site_mail_setting_path(@site)), :class => active_for_action('sites', 'mail_setting') %>
|
||||
<%#= content_tag :li, link_to(t('admin.ui_theme'), admin_site_ui_theme_path(@site)), :class => active_for_action('sites', 'ui_theme') %>
|
||||
<%= content_tag :li, link_to(t('site_map'), admin_site_sitemap_path(@site)), :class => active_for_action('sites', 'sitemap') %>
|
||||
<%= content_tag :li, link_to(t('site.info'), admin_site_site_info_path(@site)), :class => active_for_action('sites', 'site_info') %>
|
||||
<%#= content_tag :li, link_to(t(:system_info), admin_site_system_info_path(@site)), :class => active_for_action('sites', 'system_info') %>
|
||||
<%#= content_tag :li, link_to(t('site.language'), admin_site_language_path(@site)), :class => active_for_action('sites', 'language') %>
|
||||
<%= content_tag :li, link_to(t('mail.setting'), admin_site_mail_setting_path(@site)), :class => active_for_action('sites', 'mail_setting') %>
|
||||
<%#= content_tag :li, link_to(t(:theme), admin_site_ui_theme_path(@site)), :class => active_for_action('sites', 'ui_theme') %>
|
||||
<%= content_tag :li, link_to(t('sitemap'), admin_site_sitemap_path(@site)), :class => active_for_action('sites', 'sitemap') %>
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<%= content_tag :li, :class => active_for_controllers('designs') do -%>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-window-block') + t('admin.design'), admin_designs_path %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-window-block') + t(:template), admin_designs_path %>
|
||||
<% end -%>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<%# if @site.up_to_date? %>
|
||||
<% if true %>
|
||||
<div class="bought_btn">
|
||||
<%= t('admin.up_to_date') %>
|
||||
<%= t(:up_to_date) %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="buy_btn">
|
||||
<%= link_to t(:update), site_update_path %>
|
||||
<%= link_to t(:update_), site_update_path %>
|
||||
</div>
|
||||
<% end %>
|
|
@ -9,56 +9,56 @@
|
|||
<%= f.fields_for :site_settings, @site['site_settings'] do |f| %>
|
||||
<div class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_address' %></label>
|
||||
<label class="control-label"><%= t 'mail.address' %></label>
|
||||
<div class="controls">
|
||||
<%= f.text_field :address, :value => (@site['site_settings']['address'] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_port' %></label>
|
||||
<label class="control-label"><%= t 'mail.port' %></label>
|
||||
<div class="controls">
|
||||
<%= f.text_field :port, :value => (@site['site_settings']['port'] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_domain' %></label>
|
||||
<label class="control-label"><%= t 'mail.domain' %></label>
|
||||
<div class="controls">
|
||||
<%= f.text_field :domain, :value => (@site['site_settings']['domain'] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_authentication' %></label>
|
||||
<label class="control-label"><%= t 'mail.authentication' %></label>
|
||||
<div class="controls">
|
||||
<%= f.text_field :authentication, :value => (@site['site_settings']['authentication'] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_user_name' %></label>
|
||||
<label class="control-label"><%= t 'mail.user_name' %></label>
|
||||
<div class="controls">
|
||||
<%= f.text_field :user_name, :value => (@site['site_settings']['user_name'] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_password' %></label>
|
||||
<label class="control-label"><%= t 'mail.password' %></label>
|
||||
<div class="controls">
|
||||
<%= f.text_field :password, :value => (@site['site_settings']['password'] rescue nil) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_tls' %></label>
|
||||
<label class="control-label"><%= t 'mail.tls' %></label>
|
||||
<div class="controls">
|
||||
<%= f.check_box :tls, :checked => (@site['site_settings']['tls'].eql?('1') rescue false) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.mail_enable_starttls_auto' %></label>
|
||||
<label class="control-label"><%= t 'mail.enable_starttls_auto' %></label>
|
||||
<div class="controls">
|
||||
<%= f.check_box 'enable_starttls_auto', :checked => (@site['site_settings']['enable_starttls_auto'].eql?('1') rescue false) %>
|
||||
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
|
||||
|
|
|
@ -16,63 +16,63 @@
|
|||
<div class="control-group" style="margin-bottom: 0;">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<%= f.check_box :title_always_on %> <%= t 'admin.always_display_title' %>
|
||||
<%= f.check_box :title_always_on %> <%= t :always_display_title %>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<% @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"><%= t 'admin.site_title' %></label>
|
||||
<label class="control-label"><%= t 'site.title' %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :title_translations do |f| %>
|
||||
<%= f.text_field locale, :class => "input-xxlarge", :value => (@site.title_translations[locale] rescue nil) %>
|
||||
<% end %>
|
||||
<p class="help-block"><%= (t 'admin.site_title_help').html_safe %></p>
|
||||
<p class="help-block"><%= (t 'site.title_help').html_safe %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'search.site_search' %></label>
|
||||
<label class="control-label"><%= t 'site.search' %></label>
|
||||
<div class="controls">
|
||||
<%= text_field_tag 'site[search][domains]',(@site.search["domains"] rescue nil), {:class => "input-xxlarge" ,:placeholder => t("search.domains") }%>
|
||||
<%= text_field_tag 'site[search][sitesearch]',(@site.search["sitesearch"] rescue nil),{ :class => "input-xxlarge" ,:placeholder => t("search.sitesearch") }%>
|
||||
<p class="help-block"><%= (t 'search.site_setting_help').html_safe %></p>
|
||||
<p class="help-block"><%= (t 'site.search_help').html_safe %></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% @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"><%= t 'admin.site_keywords' %></label>
|
||||
<label class="control-label"><%= t 'site.keywords' %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :keywords do |f| %>
|
||||
<%= f.text_area locale, :class => "input-xxlarge textarea-height-s", :value => (@site.keywords(locale) rescue nil) %>
|
||||
<% end %>
|
||||
<p class="help-block"><%= (t 'admin.site_keywords_help').html_safe %></p>
|
||||
<p class="help-block"><%= (t 'site.keywords_help').html_safe %></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.site_description' %></label>
|
||||
<label class="control-label"><%= t 'site.description' %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :description do |f| %>
|
||||
<%= f.text_area locale, :class => "input-xxlarge textarea-height-s", :value => (@site.description(locale) rescue nil) %>
|
||||
<% end %>
|
||||
<p class="help-block"><%= (t 'admin.site_description_help').html_safe %></p>
|
||||
<p class="help-block"><%= (t 'site.description_help').html_safe %></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.site_footer' %></label>
|
||||
<label class="control-label"><%= t 'site.footer' %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :footer_translations do |f| %>
|
||||
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge", :value => (@site.footer_translations[locale] rescue nil) %>
|
||||
<% end %>
|
||||
<p class="help-block"><%= (t 'admin.site_footer_help').html_safe %></p>
|
||||
<p class="help-block"><%= (t 'site.footer_help').html_safe %></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= t 'admin.site_sub_menu' %></label>
|
||||
<label class="control-label"><%= t 'site.sub_menu' %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :sub_menu_translations do |f| %>
|
||||
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge", :value => (@site.sub_menu_translations[locale] rescue nil) %>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<a href="#" class="edit"><%= t(:edit) %></a> | <a href="#" class="hide"><%= t(:hide) %></a>
|
|
@ -1,16 +0,0 @@
|
|||
<table>
|
||||
<tr>
|
||||
<th><%= t('admin.key') %></th>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<th style="color:<%= colorize_in_use_locale(locale) %>"><%= locale %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% @language_i18n_variables.each do |var| %>
|
||||
<tr>
|
||||
<td><%= var.key %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= text_field_tag "i18n_variables[#{var.id}][#{locale}]", var[locale] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
|
@ -1,34 +0,0 @@
|
|||
<% @vars = @i18n_variables.inject([]) do |result, var|
|
||||
result << var if var.parent_id.to_s.eql?(edit_user_attribute_model.id.to_s)
|
||||
result
|
||||
end %>
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= edit_user_attribute_model.key %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<th><%= t('admin.key') %></th>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<th style="color:<%= colorize_in_use_locale(locale) %>"><%= locale %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%= edit_user_attribute_model.key %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= text_field_tag "i18n_variables[#{edit_user_attribute_model.id}][#{locale}]", edit_user_attribute_model[locale] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
||||
<% @vars.each do |var| %>
|
||||
<tr>
|
||||
<td><%= var.key %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= text_field_tag "i18n_variables[#{var.id}][#{locale}]", var[locale] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
</fieldset>
|
|
@ -1,16 +0,0 @@
|
|||
<table>
|
||||
<tr>
|
||||
<th><%= t('admin.key') %></th>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<th style="color:<%= colorize_in_use_locale(locale) %>"><%= locale %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% @language_i18n_variables.each do |var| %>
|
||||
<tr>
|
||||
<td><%= var.key %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= var[locale] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
|
@ -1,34 +0,0 @@
|
|||
<% @vars = @i18n_variables.inject([]) do |result, var|
|
||||
result << var if var.parent_id.to_s.eql?(user_attribute_model.id.to_s)
|
||||
result
|
||||
end %>
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= user_attribute_model.key %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<th><%= t('admin.key') %></th>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<th style="color:<%= colorize_in_use_locale(locale) %>"><%= locale %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%= user_attribute_model.key %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= user_attribute_model[locale] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
||||
<% @vars.each do |var| %>
|
||||
<tr>
|
||||
<td><%= var.key %></td>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
<td><%= var[locale] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
</fieldset>
|
|
@ -1,39 +0,0 @@
|
|||
<div class="main2">
|
||||
<%= form_tag admin_translation_path('all'), :method => :put do %>
|
||||
<% if @language_i18n_variables.size > 0 %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= t('admin.language') %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<div><%= render :partial => 'edit_language' %></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<% if @info_i18n_variables.size > 0 %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= t('admin.user_info') %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<div><%= render :partial => 'edit_user_attribute_model', :collection => @info_i18n_variables %></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<% if @role_i18n_variables.size > 0 %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= t('admin.user_role') %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<div><%= render :partial => 'edit_user_attribute_model', :collection => @role_i18n_variables %></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<div class="button_bar">
|
||||
<%= link_back %>
|
||||
<%= submit_tag t('update') %>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
</div>
|
|
@ -1,72 +0,0 @@
|
|||
<div class="main2">
|
||||
<% content_for :secondary do %>
|
||||
<div class="translations_setup">
|
||||
<h1><%= t('admin.setup_translations') %></h1>
|
||||
<ul class="list">
|
||||
<li><%= link_to t(:edit), edit_admin_translation_path('all'), :class => 'button positive' %></li>
|
||||
<li>
|
||||
<%= t('admin.add_language') %>:
|
||||
<%= form_tag admin_translation_path('add'), :method => :put do %>
|
||||
<%= text_field_tag 'language', '', :style => "width:100px" %>
|
||||
<%= submit_tag t(:add) %>
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<%= t('admin.enable_language') %>:
|
||||
<%= form_tag admin_translation_path('enable'), :method => :put do %>
|
||||
<%= select_tag 'enable_language', options_for_select(@site_valid_locales - @site_in_use_locales), :style => "width:100px" %>
|
||||
<%= submit_tag t(:enable) %>
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<%= t('admin.disable_language') %>:
|
||||
<%= form_tag admin_translation_path('disable'), :method => :put do %>
|
||||
<%= select_tag 'disable_language', options_for_select(@site_in_use_locales), :style => "width:100px" %>
|
||||
<%= submit_tag t(:disable) %>
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<%= t('admin.delete_language') %>:
|
||||
<%= form_tag admin_translation_path('delete'), :method => :put do %>
|
||||
<%= select_tag 'delete_language', options_for_select(@site_valid_locales), :style => "width:100px" %>
|
||||
<%= submit_tag t(:delete), :confirm => t('sure?') %>
|
||||
<% end %>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
<% if @language_i18n_variables.size > 0 %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= t('admin.language') %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<div><%= render :partial => 'language' %></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<% if @info_i18n_variables.size > 0 %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= t('admin.user_info') %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<div><%= render :partial => 'user_attribute_model', :collection => @user_info_model_i18n_variables %></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<% if @role_i18n_variables.size > 0 %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= t('admin.user_role') %>
|
||||
<%#= render :partial => 'action_bar' %>
|
||||
</legend>
|
||||
<div><%= render :partial => 'user_attribute_model', :collection => @user_role_model_i18n_variables %></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<% content_for :page_specific_javascript do %>
|
||||
<%= javascript_include_tag "translation_page" %>
|
||||
<% end -%>
|
||||
</div>
|
|
@ -7,15 +7,15 @@
|
|||
<%= file_field_tag 'file' %>
|
||||
<%= hidden_field_tag :avatar_cache %>
|
||||
<label>
|
||||
<span><%= t('admin.email') %>:</span>
|
||||
<%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t('admin.email')};}", :value => (@user.email.blank? ? t('admin.email') : @user.email), :class => 'user_mail' %>
|
||||
<span><%= t(:email) %>:</span>
|
||||
<%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t(:email)};}", :value => (@user.email.blank? ? t(:email) : @user.email), :class => 'user_mail' %>
|
||||
</label>
|
||||
<label>
|
||||
<%= f.check_box :admin %>
|
||||
<span><%= t('admin.admin') %>:</span>
|
||||
<span><%= t(:admin) %>:</span>
|
||||
</label>
|
||||
<label>
|
||||
<span><%= t('admin.role') %>:</span>
|
||||
<span><%= t(:role) %>:</span>
|
||||
<%= f.select :role_id, @roles.sort_by{|role| role.key }.collect {|role| [ role.title, role.id ]}, :selected => (@user.role_id || Role.get_role_from_key('student')) %>
|
||||
</label>
|
||||
</div>
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<input id="user_search" name="user[username]" size="30" type="text" />
|
||||
</div>
|
||||
<div class="member_setup <%= @class %>">
|
||||
<h1><%= t('admin.setup_member') %></h1>
|
||||
<h1><%= t(:setup_member) %></h1>
|
||||
<ul class="list">
|
||||
<li class="set_1"><%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %></li>
|
||||
<li class="set_2"><%= link_to content_tag(:span, t('admin.list_roles')), admin_roles_path %></li>
|
||||
<li class="set_3"><%= link_to content_tag(:span, t('admin.list_infos')), admin_infos_path %></li>
|
||||
<li class="set_1"><%= link_to content_tag(:span, t('list.user')), admin_users_path %></li>
|
||||
<li class="set_2"><%= link_to content_tag(:span, t('list.role')), admin_roles_path %></li>
|
||||
<li class="set_3"><%= link_to content_tag(:span, t('list.info')), admin_infos_path %></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -5,16 +5,16 @@
|
|||
<div class="main_list clear">
|
||||
<%= flash_messages %>
|
||||
<div class="button_bar up">
|
||||
<%= link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
|
||||
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="roles"><%= t('admin.role') %></td>
|
||||
<td class="name"><%= t('admin.name') %></td>
|
||||
<td class="email"><%= t('admin.email') %></td>
|
||||
<td class="admin"><%= t('admin.admin') %></td>
|
||||
<td class="action"><%= t('admin.action') %></td>
|
||||
<td class="roles"><%= t(:role) %></td>
|
||||
<td class="name"><%= t(:name) %></td>
|
||||
<td class="email"><%= t(:email) %></td>
|
||||
<td class="admin"><%= t(:admin) %></td>
|
||||
<td class="action"><%= t(':action') %></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -37,6 +37,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="button_bar">
|
||||
<%= link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
|
||||
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<ul id="orblist">
|
||||
<li><%= link_to t('homepage'), root_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t('admin.item'), admin_items_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t('admin.design'), admin_designs_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t('admin.purchase'), admin_purchases_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t('admin.asset'), admin_assets_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t('admin.member'), admin_users_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t('admin.translation'), admin_translations_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t('admin.site'), admin_sites_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t(:homepage), root_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t(:item), admin_items_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t(:template), admin_designs_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t(:purchase), admin_purchases_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t(:asset), admin_assets_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t(:member), admin_users_path, :class => 'orblink' %></li>
|
||||
<li><%= link_to t(:site_), admin_sites_path, :class => 'orblink' %></li>
|
||||
</ul>
|
|
@ -5,14 +5,14 @@
|
|||
<% if !current_user.nil? %>
|
||||
<a class="brand dropdown-toggle" data-toggle="dropdown" href="#">Orbit</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><%= link_to content_tag(:i, nil, :class => 'icons-dashboard') + t('admin.dashboard'), admin_dashboards_path %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-content') + t('admin.content') %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-member') + t('admin.member'), admin_users_path %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-asset') + t('admin.asset'), admin_assets_path %></li>
|
||||
<li><%= link_to content_tag(:i, nil, :class => 'icons-dashboard') + t(:dashboard_), admin_dashboards_path %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-content') + t(:content) %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-member') + t(:member), admin_users_path %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-asset') + t(:asset), admin_assets_path %></li>
|
||||
<li class="divider"></li>
|
||||
<li><%= link_to content_tag(:i, nil, :class => 'icons-structure') + t('admin.structure'), admin_items_path %></li>
|
||||
<li><%= link_to content_tag(:i, nil, :class => 'icons-cog') + t('admin.site_settings'), admin_site_site_info_path(@site) %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-plus-cube') + t('admin.add_item') %></li>
|
||||
<li><%= link_to content_tag(:i, nil, :class => 'icons-structure') + t(:structure), admin_items_path %></li>
|
||||
<li><%= link_to content_tag(:i, nil, :class => 'icons-cog') + t('site.settings'), admin_site_site_info_path(@site) %></li>
|
||||
<li><%#= link_to content_tag(:i, nil, :class => 'icons-plus-cube') + t(':add_item') %></li>
|
||||
</ul>
|
||||
<% else %>
|
||||
<a class="brand dropdown-toggle" data-toggle="dropdown" href="/">Orbit</a>
|
||||
|
|
|
@ -1,78 +1,78 @@
|
|||
<%#= content_tag :li, :class => active_for_controllers('purchases') do -%>
|
||||
<%#= link_to content_tag(:i, nil, :class => 'icons-purchase') + t('admin.purchase'), admin_purchases_path %>
|
||||
<%#= link_to content_tag(:i, nil, :class => 'icons-purchase') + t(:purchase), admin_purchases_path %>
|
||||
<%# end -%>
|
||||
<% content_for :page_specific_javascript do %>
|
||||
<%= javascript_include_tag "/static/kernel.js" %>
|
||||
<% end %>
|
||||
|
||||
<%= content_tag :li, :class => (active_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals') || active_for_app_auth('Announcement') || active_for_ob_auths_object("BulletinCategory") ) do -%>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t('admin.announcement'), panel_announcement_back_end_bulletins_path %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t('announcement.announcement'), panel_announcement_back_end_bulletins_path %>
|
||||
<%= content_tag :ul, :class => ("nav nav-list " + (visible_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals')||active_for_ob_auths_object("BulletinCategory"))) do -%>
|
||||
<%= content_tag :li, link_to(t('announcement.all_articles'), panel_announcement_back_end_bulletins_path), :class => active_for_action('bulletins', 'index') %>
|
||||
<%= content_tag :li, link_to(t('announcement.add_new'), new_panel_announcement_back_end_bulletin_path), :class => active_for_action('bulletins', 'new') %>
|
||||
<%= content_tag :li, link_to(t('announcement.categories'), panel_announcement_back_end_bulletin_categorys_path), :class =>( active_for_action('bulletin_categorys', 'index') || active_for_ob_auths_object("BulletinCategory") ) %>
|
||||
<%= content_tag :li, link_to(t('announcement.tags'), panel_announcement_back_end_tags_path), :class => active_for_action('/panel/announcement/back_end/tags', 'index') %>
|
||||
<%= content_tag :li, link_to(t('announcement.bulletin.approval_setting'), panel_announcement_back_end_approval_setting_path), :class => active_for_action('approvals', 'setting') if (is_manager? rescue true) %>
|
||||
<%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "Announcement"}))), :class => active_for_app_auth('Announcement') if (is_admin? rescue nil) %>
|
||||
<%= content_tag :li, link_to(t(:list_), panel_announcement_back_end_bulletins_path), :class => active_for_action('bulletins', 'index') %>
|
||||
<%= content_tag :li, link_to(t(:add), new_panel_announcement_back_end_bulletin_path), :class => active_for_action('bulletins', 'new') %>
|
||||
<%= content_tag :li, link_to(t(:categories), panel_announcement_back_end_bulletin_categorys_path), :class =>( active_for_action('bulletin_categorys', 'index') || active_for_ob_auths_object("BulletinCategory") ) %>
|
||||
<%= content_tag :li, link_to(t(:tags), panel_announcement_back_end_tags_path), :class => active_for_action('/panel/announcement/back_end/tags', 'index') %>
|
||||
<%= content_tag :li, link_to(t('approval.setting'), panel_announcement_back_end_approval_setting_path), :class => active_for_action('approvals', 'setting') if (is_manager? rescue true) %>
|
||||
<%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "Announcement"}))), :class => active_for_app_auth('Announcement') if (is_admin? rescue nil) %>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<%= content_tag :li, :class =>( active_for_controllers('news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals')|| active_for_app_auth('news') || active_for_ob_auths_object("NewsBulletinCategory")) do -%>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t('admin.news'), panel_news_back_end_news_bulletins_path %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t(:news), panel_news_back_end_news_bulletins_path %>
|
||||
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals')) do -%>
|
||||
<%= content_tag :li, link_to(t('announcement.all_articles'), panel_news_back_end_news_bulletins_path), :class => active_for_action('news_bulletins', 'index') %>
|
||||
<%= content_tag :li, link_to(t('announcement.add_new'), new_panel_news_back_end_news_bulletin_path), :class => active_for_action('news_bulletins', 'new') %>
|
||||
<%= content_tag :li, link_to(t('announcement.categories'), panel_news_back_end_news_bulletin_categorys_path), :class => active_for_action('news_bulletin_categorys', 'index') || active_for_ob_auths_object("NewsBulletinCategory") %>
|
||||
<%= content_tag :li, link_to(t('announcement.tags'), panel_news_back_end_tags_path), :class => active_for_action('/panel/news/back_end/tags', 'index') %>
|
||||
<%= content_tag :li, link_to(t('announcement.bulletin.approval_setting'), panel_news_back_end_approval_setting_path), :class => active_for_action('news_approvals', 'setting') if (is_manager? rescue true) %>
|
||||
<%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "news"}))), :class => active_for_app_auth('news') if (is_admin? rescue nil) %>
|
||||
<%= content_tag :li, link_to(t(:list_), panel_news_back_end_news_bulletins_path), :class => active_for_action('news_bulletins', 'index') %>
|
||||
<%= content_tag :li, link_to(t(:add), new_panel_news_back_end_news_bulletin_path), :class => active_for_action('news_bulletins', 'new') %>
|
||||
<%= content_tag :li, link_to(t(:categories), panel_news_back_end_news_bulletin_categorys_path), :class => active_for_action('news_bulletin_categorys', 'index') || active_for_ob_auths_object("NewsBulletinCategory") %>
|
||||
<%= content_tag :li, link_to(t(:tags), panel_news_back_end_tags_path), :class => active_for_action('/panel/news/back_end/tags', 'index') %>
|
||||
<%= content_tag :li, link_to(t('approval.setting'), panel_news_back_end_approval_setting_path), :class => active_for_action('news_approvals', 'setting') if (is_manager? rescue true) %>
|
||||
<%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "news"}))), :class => active_for_app_auth('news') if (is_admin? rescue nil) %>
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<%#= content_tag :li, :class => active_for_controllers('users') do -%>
|
||||
<%#= link_to content_tag(:i, nil, :class => 'icons-member') + t('admin.member'), admin_users_path %>
|
||||
<%#= link_to content_tag(:i, nil, :class => 'icons-member') + t(:member), admin_users_path %>
|
||||
<%# end -%>
|
||||
|
||||
<%= content_tag :li, :class => active_for_controllers('page_contexts') || active_for_app_auth('page_content') || active_for_ob_auths_object("PageContext") do -%>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-page') + t('admin.page'), panel_page_content_back_end_page_contexts_path %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-page') + t(:page), panel_page_content_back_end_page_contexts_path %>
|
||||
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('page_contexts')) do -%>
|
||||
<%#= content_tag :li, link_to(t('admin.all_articles'), panel_page_content_back_end_page_contexts_path), :class => active_for_action('page_context', 'index') %>
|
||||
<%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "page_content"}))), :class => active_for_app_auth('page_content') if (is_admin? rescue nil) %>
|
||||
<%#= content_tag :li, link_to(t(:list_), panel_page_content_back_end_page_contexts_path), :class => active_for_action('page_context', 'index') %>
|
||||
<%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "page_content"}))), :class => active_for_app_auth('page_content') if (is_admin? rescue nil) %>
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<%= content_tag :li, :class => active_for_controllers('ad_banners', 'ad_images') ||active_for_ob_auths_object("AdBanner") ||active_for_app_auth('ad_banners') do -%>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-link') + t('admin.ad_banner'), admin_ad_banners_path %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-link') + t(':ad_banner'), admin_ad_banners_path %>
|
||||
|
||||
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('ad_banners', 'ad_images') ) do -%>
|
||||
<%#= content_tag :li, link_to(t('admin.ad.all_banners'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %>
|
||||
<%#= content_tag :li, link_to(t('admin.ad.new_banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
|
||||
<%#= content_tag :li, link_to(t('admin.ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
|
||||
<%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "ad_banners"}))), :class => active_for_app_auth('ad_banners') if (is_admin? rescue nil) %>
|
||||
<%#= content_tag :li, link_to(t('list.ad_banner'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %>
|
||||
<%#= content_tag :li, link_to(t('new.banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
|
||||
<%#= content_tag :li, link_to(t('ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
|
||||
<%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "ad_banners"}))), :class => active_for_app_auth('ad_banners') if (is_admin? rescue nil) %>
|
||||
<% end -%>
|
||||
<% end %>
|
||||
|
||||
<%= content_tag :li, :class => active_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys') || active_for_app_auth('web_resource') || active_for_ob_auths_object("WebLinkCategory") do -%>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-link') + t('admin.link'), panel_web_resource_back_end_web_links_path %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icons-link') + t(:link), panel_web_resource_back_end_web_links_path %>
|
||||
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys')) do -%>
|
||||
<%= content_tag :li, link_to(t('admin.all_articles'), panel_web_resource_back_end_web_links_path), :class => active_for_action('web_links', 'index') %>
|
||||
<%= content_tag :li, link_to(t('announcement.add_new'), new_panel_web_resource_back_end_web_link_path), :class => active_for_action('web_links', 'new') %>
|
||||
<%= content_tag :li, link_to(t('announcement.categories'), panel_web_resource_back_end_web_link_categorys_path), :class => (active_for_action('web_link_categorys', 'index') || active_for_ob_auths_object("WebLinkCategory")) %>
|
||||
<%= content_tag :li, link_to(t('announcement.tags'), panel_web_resource_back_end_tags_path), :class => active_for_action('/panel/web_resource/back_end/tags', 'index') %>
|
||||
<%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "web_resource"}))), :class => active_for_app_auth('web_resource') if (is_admin? rescue nil) %>
|
||||
<%= content_tag :li, link_to(t(:list_), panel_web_resource_back_end_web_links_path), :class => active_for_action('web_links', 'index') %>
|
||||
<%= content_tag :li, link_to(t(:add), new_panel_web_resource_back_end_web_link_path), :class => active_for_action('web_links', 'new') %>
|
||||
<%= content_tag :li, link_to(t(:categories), panel_web_resource_back_end_web_link_categorys_path), :class => (active_for_action('web_link_categorys', 'index') || active_for_ob_auths_object("WebLinkCategory")) %>
|
||||
<%= content_tag :li, link_to(t(:tags), panel_web_resource_back_end_tags_path), :class => active_for_action('/panel/web_resource/back_end/tags', 'index') %>
|
||||
<%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "web_resource"}))), :class => active_for_app_auth('web_resource') if (is_admin? rescue nil) %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
<%#= content_tag :li, :class => active_for_controllers('assets', '/admin/asset_tags', 'asset_categories') do -%>
|
||||
<%#= link_to content_tag(:i, nil, :class => 'icons-link') + t('admin.asset'), admin_assets_path %>
|
||||
<%#= link_to content_tag(:i, nil, :class => 'icons-link') + t(:asset), admin_assets_path %>
|
||||
<%#= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('assets', '/admin/asset_tags', 'asset_categories')) do -%>
|
||||
<%#= content_tag :li, link_to(t('admin.all_assets'), admin_assets_path), :class => active_for_action('assets', 'index') %>
|
||||
<%#= content_tag :li, link_to(t('list.asset'), admin_assets_path), :class => active_for_action('assets', 'index') %>
|
||||
<%#= content_tag :li, link_to(t('admin.categories'), admin_asset_categories_path), :class => active_for_action('asset_categories', 'index') %>
|
||||
<%#= content_tag :li, link_to(t('admin.tags'), admin_asset_tags_path), :class => active_for_action('/admin/asset_tags', 'index') %>
|
||||
<%#= content_tag :li, link_to(t(:tags), admin_asset_tags_path), :class => active_for_action('/admin/asset_tags', 'index') %>
|
||||
<%# end -%>
|
||||
<%# end -%>
|
||||
<div class="content">
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>R4</title>
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<%= yield :page_specific_link %>
|
||||
<%= stylesheet_link_tag "application" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
<%= csrf_meta_tag %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
|
||||
<div id="banner_link" style='text-align:right'>
|
||||
<ul class="hmenu">
|
||||
<li>
|
||||
<%= render 'layouts/lang_menu' %>
|
||||
</li>
|
||||
<%= render 'devise/menu/login_items' %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="header">
|
||||
|
||||
<h1>RulingSite Panel</h1>
|
||||
|
||||
<ul id="nav">
|
||||
<li><%= link_to t('panel.home'), root_path %></li>
|
||||
<li><%= link_to t('panel.user'), panel_users_path %></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="main"><%= yield %></div>
|
||||
<div class="secondary"><%= yield :secondary %></div>
|
||||
<div class="tertiary"><%= yield :tertiary %></div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<p>Rulingcom</p>
|
||||
</div>
|
||||
</div>
|
||||
<%= yield :page_specific_javascript %>
|
||||
</body>
|
||||
</html>
|
|
@ -1,6 +1,6 @@
|
|||
<div class="checkblock">
|
||||
<div class="for_unit" style="display:none;"> <%= user.cache_dept[I18n.locale.to_s] rescue ''%></div>
|
||||
<%= content_tag :div,:data=>{'original-title'=>t('announcement.bulletin.approval_setting_window_title'),:content => (user.cache_dept[I18n.locale.to_s] rescue '')},:class=>"checkbox clear" do %>
|
||||
<%= content_tag :div,:data=>{'original-title' => t('approval.setting_window_title'),:content => (user.cache_dept[I18n.locale.to_s] rescue '')},:class=>"checkbox clear" do %>
|
||||
<div class="check-icon">
|
||||
</div>
|
||||
<div class='member-avatar'>
|
||||
|
|
|
@ -15,7 +15,7 @@ module MiddleSiteConnection
|
|||
}
|
||||
|
||||
def self.establish
|
||||
$mid_site_connection = Mysql2::Client.new(@mid_host)
|
||||
# $mid_site_connection = Mysql2::Client.new(@mid_host)
|
||||
end
|
||||
|
||||
end
|
|
@ -1,315 +1,314 @@
|
|||
# Sample localization file for English. Add more files in this directory for other locales.
|
||||
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
||||
|
||||
en:
|
||||
|
||||
|
||||
_locale: English
|
||||
|
||||
me: Me
|
||||
|
||||
access:
|
||||
denied:
|
||||
app:
|
||||
not_sub_manager: Access Denied for you are not SubManager for this app
|
||||
not_manager: Access Denied for you are not SubManager for this app
|
||||
not_authed_user: Access Denied for you are not User for this app
|
||||
object: Access Denied for you don't have permission for this object
|
||||
not_admin: Access Denied for you are not Admin
|
||||
account_settings: Account settings
|
||||
action: Action
|
||||
ad:
|
||||
ab_fx: FX
|
||||
banner_best_size: Banner Best Size
|
||||
best_size: Best size
|
||||
new_image: New image
|
||||
not_showing: Not showing
|
||||
picture_list: Picture List
|
||||
sec_place_holder: Enter 3 if 3 sec
|
||||
showing: Showing
|
||||
success_destroy_ad_image: Image successfully destroyed
|
||||
trans_unit_sec: sec
|
||||
transition_sec: Transition time
|
||||
update_banner: Update Banner
|
||||
widget_info_for_ad_image_size: "Best size with: %{best_size}"
|
||||
ad_banner: AD Banner
|
||||
add: Add
|
||||
back: Back
|
||||
browse: Browse
|
||||
cancel: Cancel
|
||||
cant_empty_star: Cannot be empty (*)
|
||||
create_fail: Creation failed
|
||||
create: Create
|
||||
continued: continued
|
||||
delete: Delete
|
||||
desktop: Desktop
|
||||
disable: Disable
|
||||
dots: ●●●●●●
|
||||
downloaded: Downloaded
|
||||
download: Download
|
||||
edit: Edit
|
||||
email: Email
|
||||
enable: Enable
|
||||
forgot_password: Forgot your password?
|
||||
help: Help
|
||||
hide: Hide
|
||||
homepage: Homepage
|
||||
login: Login
|
||||
logout: Logout
|
||||
no_: "No"
|
||||
nothing: Nothing
|
||||
nccu: NCCU
|
||||
nccu_c:
|
||||
nccu_ldap_uid: NCCU LDAP Account
|
||||
off_upcase: "OFF"
|
||||
on_upcase: "ON"
|
||||
or_lower: or
|
||||
password: Password
|
||||
register: Register
|
||||
remember_me: Remember me
|
||||
search_nccu: Search NCCU
|
||||
show: Show
|
||||
submit: Submit
|
||||
preview: Preview
|
||||
sure?: Are you sure?
|
||||
update: Update
|
||||
update_failed: Update failed
|
||||
view: View
|
||||
view_count: View count
|
||||
yes_: "Yes"
|
||||
add_item: Add item
|
||||
addthis_tools:
|
||||
add_to_bookmark: Add this to bookmark
|
||||
admin: Admin
|
||||
all_content: All Content
|
||||
all_file: All File
|
||||
all_member: All Member
|
||||
always_display_title: Always displayed in the title bar
|
||||
app_auth:
|
||||
assigning_manager:
|
||||
add_manager_fail: Manager successfully added
|
||||
add_manager_ok: Adding manager failed
|
||||
assigning_sub_manager:
|
||||
add_sub_manager_fail: Sub-manager successfully added
|
||||
add_sub_manager_ok: Adding sub-manager failed
|
||||
can_not_add_this_user: This user cannot be added
|
||||
delete_manager:
|
||||
fail: Removal of manager failed
|
||||
success: Manager successfully removed
|
||||
delete_sub_manager:
|
||||
fail: Removal of sub-manager failed
|
||||
success: Sub-manager successfully removed
|
||||
failed_no_user: Failed, no user
|
||||
approval:
|
||||
not_pass: Not pass
|
||||
not_pass_reason: Not pass reason
|
||||
pass: Pass
|
||||
setting: Approval setting
|
||||
stat: Approval status
|
||||
user_list: Unit
|
||||
approval_: Approval
|
||||
asset: Asset
|
||||
auth:
|
||||
add_manager: Add Manager
|
||||
add_sub_manager: Add SubManager
|
||||
add_to_block_list: Add to block List
|
||||
add_to_privilege_list: Add to privilege List
|
||||
all_member: All Member
|
||||
auth_by: - Authorized by %{user_display_name}
|
||||
by_role: By Role
|
||||
by_sub_role: By SubRole
|
||||
author: Author
|
||||
back: Back
|
||||
basic: Basic
|
||||
browse: Browse
|
||||
cancel: Cancel
|
||||
cant_delete_self: You can not delete yourself.
|
||||
cant_empty_star: Cannot be empty (*)
|
||||
cant_revoke_self_admin: You can not revoke your admin role yourself.
|
||||
category: Category
|
||||
category_auth: Category Authorization
|
||||
clear: Clear
|
||||
content: Content
|
||||
create:
|
||||
error:
|
||||
link: Error when creating link.
|
||||
page: Error when creating page.
|
||||
fail: Creation failed
|
||||
success:
|
||||
asset_category: Asset category was successfully created.
|
||||
link: Link was successfully created.
|
||||
page: Page was successfully created.
|
||||
user: User was successfully created.
|
||||
create_: Create
|
||||
data: Data
|
||||
file: File
|
||||
file_type: File Type
|
||||
hits: Hits
|
||||
item: Item
|
||||
member: Member
|
||||
module: Module
|
||||
most_visited_page: Most Visited Page
|
||||
quantity: Quantity
|
||||
recent_update: Recent Update
|
||||
referral_in_links: Referral in Links
|
||||
role: Role
|
||||
site_info: Site Info
|
||||
site_name: Site Name
|
||||
sitemap: Sitemap
|
||||
statistics: Statistics
|
||||
title: Title
|
||||
total_visitors: Total Visitors
|
||||
traffic: Traffic
|
||||
|
||||
visitors_today: Today's visitors
|
||||
visitors_this_week: This week's visitors
|
||||
visitors_this_month: This month's visitors
|
||||
visitors_this_year: This year's visitors
|
||||
|
||||
errors:
|
||||
at_least_one: must at least have one value
|
||||
|
||||
admin:
|
||||
access:
|
||||
denied:
|
||||
app:
|
||||
not_sub_manager: Access Denied for you are not SubManager for this app
|
||||
not_manager: Access Denied for you are not SubManager for this app
|
||||
not_authed_user: Access Denied for you are not User for this app
|
||||
not_admin: Access Denied for you are not Admin
|
||||
object: "Access Denied for you don't have permission for this object"
|
||||
action: Action
|
||||
ad_banner: AD Banner
|
||||
ad:
|
||||
sec_place_holder: Enter 3 if 3 sec
|
||||
ab_fx: FX
|
||||
all_banners: AdBanner list
|
||||
banner_best_size: Banner Best Size
|
||||
best_size: Best size
|
||||
new_banner: New banner
|
||||
new_image: New image
|
||||
showing: Showing
|
||||
not_showing: NotShowing
|
||||
picture_list: Picture List
|
||||
title: Title
|
||||
transition_sec: Transition time
|
||||
trans_unit_sec: sec
|
||||
update_banner: Update Banner
|
||||
widget_info_for_ad_image_size: "Best size with: %{best_size}"
|
||||
add: Add
|
||||
add_item: Add item
|
||||
add_language: Add language
|
||||
add_drop_down_item: +Add Menu Item
|
||||
admin: Admin
|
||||
action: Action
|
||||
all_articles: List
|
||||
always_display_title: Always displayed in the title bar
|
||||
announcement: Announcement
|
||||
asset: Asset
|
||||
assets:
|
||||
file: File
|
||||
album: Album
|
||||
video: Video
|
||||
book: Book
|
||||
attributes: Attributes
|
||||
author: Author
|
||||
calendar: Calendar
|
||||
cant_delete_self: You can not delete yourself.
|
||||
cant_revoke_self_admin: You can not revoke your admin role yourself.
|
||||
category: Category
|
||||
choose_file: Choose a file...
|
||||
class: Class
|
||||
content: Content
|
||||
create_error_link: Error when creating link.
|
||||
create_error_page: Error when creating page.
|
||||
create_success_home: Homepage was successfully created.
|
||||
create_success_layout: Layout was successfully created.
|
||||
create_success_link: Link was successfully created.
|
||||
create_success_page: Page was successfully created.
|
||||
create_success_snippet: Snippet was successfully created.
|
||||
create_success_user: User was successfully created.
|
||||
data: Data
|
||||
dashboard: Dashboard
|
||||
delete_language: Delete language
|
||||
description: Description
|
||||
design: Template
|
||||
disable_language: Disable language
|
||||
editing_home: Editing homepage
|
||||
editing_layout: Editing layout
|
||||
editing_link: Editing link
|
||||
editing_page: Editing page
|
||||
editing_snippet: Editing snippet
|
||||
editing_info: Editing user information
|
||||
editing_role: Editing user role
|
||||
email: Email
|
||||
enable_language: Enable language
|
||||
enabled_for: Enabled for
|
||||
file_name: Filename
|
||||
file_size: File size
|
||||
file_upload: File upload
|
||||
format: Format
|
||||
home: Home
|
||||
id: ID
|
||||
info: Information
|
||||
intro: Introduction
|
||||
is_published: Is published
|
||||
item: Item
|
||||
key: Key
|
||||
keywords: Keywords
|
||||
language: Language
|
||||
layout: Layout
|
||||
layout_name: Layout name
|
||||
links: Links
|
||||
link: Links
|
||||
list_assets: Assets list
|
||||
list_designs: Designs list
|
||||
list_items: Items list
|
||||
list_puchases: Purchases list
|
||||
list_snippets: Snippets list
|
||||
list_users: Users list
|
||||
list_infos: User information list
|
||||
list_roles: User roles list
|
||||
mail_address: Address
|
||||
mail_port: Port
|
||||
mail_domain: Domain
|
||||
mail_authentication: Authentication
|
||||
mail_user_name: User Name
|
||||
mail_password: Password
|
||||
mail_tls: TLS
|
||||
mail_enable_starttls_auto: Enable Start TLS Auto
|
||||
member: Member
|
||||
menu_enabled_for: Menu enabled for
|
||||
module:
|
||||
authorization: Module Authorization
|
||||
move_down: Move down
|
||||
move_up: Move up
|
||||
multilingual: Multilingual
|
||||
my_avatar: My Avatar
|
||||
no_home_page: You don't have a homepage
|
||||
no_layout: You don't have a layout
|
||||
name: Name
|
||||
nccu: NCCU Custom
|
||||
nccu_c:
|
||||
nccu_ldap_uid: NCCU LDAP Account
|
||||
new_asset: New asset
|
||||
new_component: New component
|
||||
new_design: New design
|
||||
new_home: New homepage
|
||||
new_layout: New layout
|
||||
new_link: New link
|
||||
new_page: New page
|
||||
new_snippet: New snippet
|
||||
new_user: New user
|
||||
new_info: New user information
|
||||
new_role: New user role
|
||||
news: News
|
||||
non_multilingual: Non multilingual
|
||||
object_auth:
|
||||
list_title_of_users: %{auth_title} Auth List
|
||||
update_done: Update done,reulst showing in list
|
||||
update_failed: Update failed
|
||||
options: Options
|
||||
orig_upload_file: Original filename
|
||||
page: Page
|
||||
page_context:
|
||||
edit: Edit
|
||||
ob_auth:
|
||||
edit: Category authorization
|
||||
page_part_kinds:
|
||||
text: Text Area
|
||||
public_r_tag: System Widget
|
||||
module_widget: Plug-in Module Widget
|
||||
position: Position
|
||||
published?: Published?
|
||||
purchase: Purchase
|
||||
registered: Registered
|
||||
role: Role
|
||||
roles: Roles
|
||||
setup_member: Member setup
|
||||
setup_translations: Translations setup
|
||||
setup_designs: Designs setup
|
||||
site: Site
|
||||
site_description: Site description
|
||||
site_footer: Site footer
|
||||
site_settings: Site Setting
|
||||
site_sub_menu: Site sub-menu
|
||||
site_title: Site title
|
||||
super_pages: Super pages
|
||||
structure: Structure
|
||||
tags: Tags
|
||||
title: Title
|
||||
translation: Translation
|
||||
type: Type
|
||||
up_to_date: Up-to-date
|
||||
update_error_link: Error when updating link.
|
||||
update_error_page: Error when updating page.
|
||||
update_success_content: Content was successfully updated.
|
||||
update_success_home: Homepage was successfully updated.
|
||||
update_success_layout: Layout was successfully updated.
|
||||
update_success_link: Link was successfully updated.
|
||||
update_success_page: Page was successfully updated.
|
||||
update_success_snippet: Snippet was successfully updated.
|
||||
update_success_user: User was successfully updated.
|
||||
upload_design: Upload design
|
||||
url: URL
|
||||
user: User
|
||||
user_role:
|
||||
auth:
|
||||
all_member: All Member
|
||||
manager: Manager
|
||||
sub_mamanger: SubManager
|
||||
by_role: By Role
|
||||
by_sub_role: By SubRole
|
||||
block_list: Block List
|
||||
privilege_list: Privilege List
|
||||
add_manager: Add Manager
|
||||
add_sub_manager: Add SubManager
|
||||
add_to_block_list: Add to block List
|
||||
add_to_privilege_list: Add to privilege List
|
||||
auth_by: -AuthBy %{user_display_name}
|
||||
info: User information
|
||||
panel: User panel
|
||||
role: User role
|
||||
|
||||
dashboard:
|
||||
bulletin: Announcement
|
||||
news_bulletin: News
|
||||
page_context: Page
|
||||
web_link: Link
|
||||
|
||||
panel:
|
||||
|
||||
dashboard_: Dashboard
|
||||
deadline: Deadline
|
||||
default_css: Default CSS
|
||||
delete: Delete
|
||||
delete_file: Delete file
|
||||
description: Description
|
||||
desktop: Desktop
|
||||
disable: Disable
|
||||
dots: ●●●●●●
|
||||
download: Download
|
||||
downloaded: Downloaded
|
||||
edit: Edit
|
||||
editing:
|
||||
asset: Editing asset
|
||||
design: Editing design
|
||||
link: Editing link
|
||||
page: Editing page
|
||||
email: Email
|
||||
enable: Enable
|
||||
enabled_for: Enabled for
|
||||
end: End
|
||||
end_date: End date
|
||||
errors:
|
||||
at_least_one: must at least have one value
|
||||
file:
|
||||
size: File size
|
||||
type: File type
|
||||
upload: File upload
|
||||
file_: File
|
||||
file_type: File Type
|
||||
forgot_password: Forgot your password?
|
||||
help: Help
|
||||
hidden: Hidden
|
||||
hide: Hide
|
||||
hits: Hits
|
||||
homepage: Homepage
|
||||
horizontal: Horizontal
|
||||
hot: Hot
|
||||
image: Image
|
||||
intro: Introduction
|
||||
is_published: Is published
|
||||
item: Item
|
||||
key: Key
|
||||
last_modified: Last modified
|
||||
layout: Layout
|
||||
link: Link
|
||||
list:
|
||||
ad_banner: AdBanner list
|
||||
asset: Asset list
|
||||
info: User information list
|
||||
link: Link list
|
||||
purchase: Purchases list
|
||||
role: User roles list
|
||||
user: Users list
|
||||
list_: List
|
||||
list_lower: list
|
||||
login: Login
|
||||
logout: Logout
|
||||
mail:
|
||||
address: Address
|
||||
authentication: Authentication
|
||||
domain: Domain
|
||||
enable_starttls_auto: Enable Start TLS Auto
|
||||
password: Password
|
||||
port: Port
|
||||
setting: Mail settings
|
||||
tls: TLS
|
||||
user_name: User Name
|
||||
manager: Manager
|
||||
me: Me
|
||||
member: Member
|
||||
menu_enabled_for: Menu enabled for
|
||||
modal:
|
||||
close: Close
|
||||
preview: Preview
|
||||
sys:
|
||||
not_previewable: "Preview not support"
|
||||
limit_of_upload_file_size: "Upload file must be less than: %{best_size}"
|
||||
preview_only_for_img: "Preview only supprt with file type:jpg,png,gif,bmp"
|
||||
can_not_display_due_to_no_context: "Can not display due to no context for English"
|
||||
module_page_lang_not_support: "We are sorry, this page is not available for English"
|
||||
module: Module
|
||||
module_authorization: Module Authorization
|
||||
more_plus: more+
|
||||
most_visited_page: Most Visited Page
|
||||
multilingual: Multilingual
|
||||
name: Name
|
||||
nccu_c:
|
||||
nccu_ldap_uid: NCCU LDAP Account
|
||||
new:
|
||||
asset: New asset
|
||||
banner: New banner
|
||||
design: New design
|
||||
link: New link
|
||||
page: New page
|
||||
user: New user
|
||||
info: New user information
|
||||
role: New user role
|
||||
news: News
|
||||
no_: "No"
|
||||
no_deadline: No deadline
|
||||
object_auth:
|
||||
a_object_must_have_only_one_object_auth_profile_for_each_action: ''
|
||||
list_title_of_users: %{auth_title} authorization list
|
||||
new_object_auth: New authorization
|
||||
off_upcase: "OFF"
|
||||
on_upcase: "ON"
|
||||
options: Options
|
||||
or_lower: or
|
||||
organization: Organization
|
||||
page: Page
|
||||
page_part_kinds:
|
||||
module_widget: Plug-in Module Widget
|
||||
public_r_tag: System Widget
|
||||
text: Text Area
|
||||
passed: Approved
|
||||
password: Password
|
||||
pending: Pending
|
||||
picture: Picture
|
||||
postdate: Postdate
|
||||
posted_by: Posted by
|
||||
preview: Preview
|
||||
purchase: Purchase
|
||||
quantity: Quantity
|
||||
quick_edit: Quick edit
|
||||
recent_update: Recent Update
|
||||
referral_in_links: Referral in Links
|
||||
register: Register
|
||||
registered: Registered
|
||||
rejected: Rejected
|
||||
rejected_reason: 'Reason:'
|
||||
rejected_reason_empty: "Approval rejected, no referencable information"
|
||||
related_links: Related Links
|
||||
role: Role
|
||||
Roles: Roles
|
||||
ruling_site: Ruling Site
|
||||
search:
|
||||
not_found: "NOT FOUND"
|
||||
domains: Google Search Domains
|
||||
site_search: Site Search
|
||||
sitesearch: Google Site Search
|
||||
site_setting_help: Please Enter the search argument for Google search.
|
||||
not_found: "NOT FOUND"
|
||||
result_get: "Searched about ' %{search_word} ' Found %{item_num} items"
|
||||
sitesearch: Google Site Search
|
||||
too_many: "Search about ' %{search_word} 'resulted more than %{exceed_num} items maybe try to search with more specific terms?"
|
||||
unit_get: "Listed items created by :%{unit_name} Found %{item_num} items"
|
||||
search_nccu: Search NCCU
|
||||
setup_member: Member setup
|
||||
show: Show
|
||||
site:
|
||||
description: Site description
|
||||
description_help: ''
|
||||
footer: Site footer
|
||||
footer_help: ''
|
||||
info: Site information
|
||||
keywords: Site keywords
|
||||
keywords_help: ''
|
||||
language: Site language
|
||||
search: Site Search
|
||||
search_help: Please Enter the search argument for Google search.
|
||||
settings: Site setting
|
||||
sub_menu: Site sub-menu
|
||||
title: Site title
|
||||
title_help: ''
|
||||
site_: Site
|
||||
site_info: Site Info
|
||||
sitemap: Sitemap
|
||||
site_name: Site Name
|
||||
start: Start
|
||||
start_date: Start date
|
||||
statistics: Statistics
|
||||
status: Status
|
||||
structure: Structure
|
||||
sub_manager: SubManager
|
||||
submit: Submit
|
||||
submit_approval: Submit approval
|
||||
submit_user_list: Submit user list
|
||||
sure?: "Are you sure?"
|
||||
sys:
|
||||
can_not_display_due_to_no_context: "Can not display due to no context for English"
|
||||
limit_of_upload_file_size: "Upload file must be less than: %{best_size}"
|
||||
module_page_lang_not_support: "We are sorry, this page is not available for English"
|
||||
not_previewable: "Preview not support"
|
||||
preview_only_for_img: "Preview only supprt with file type: jpg, png, gif, bmp"
|
||||
system_info: System information
|
||||
tag_cloud: Tag cloud
|
||||
tags: Tags
|
||||
template: Template
|
||||
template_name: Template name
|
||||
text: Text
|
||||
theme: Theme
|
||||
themes: Themes
|
||||
title: Title
|
||||
top: Top
|
||||
total_visitors: Total Visitors
|
||||
traffic: Traffic
|
||||
type: Type
|
||||
unit_name: Unit name
|
||||
up_to_date: Up-to-date
|
||||
update:
|
||||
error:
|
||||
link: Error when updating link.
|
||||
fail: Update failed
|
||||
success:
|
||||
content: Content was successfully updated.
|
||||
link: Link was successfully updated.
|
||||
page: Page was successfully updated.
|
||||
user: User was successfully updated.
|
||||
success_: Successfully updated
|
||||
update_: Update
|
||||
update_at: Update at
|
||||
url: URL
|
||||
use_status: ''
|
||||
user: User
|
||||
version: Version
|
||||
vertical: Vertical
|
||||
view: View
|
||||
view_count: View count
|
||||
visitors_this_month: This month's visitors
|
||||
visitors_this_week: This week's visitors
|
||||
visitors_this_year: This year's visitors
|
||||
visitors_today: Today's visitors
|
||||
yes_: "Yes"
|
||||
|
|
|
@ -1,4 +1,319 @@
|
|||
zh_tw:
|
||||
en:
|
||||
|
||||
_locale: English
|
||||
|
||||
access:
|
||||
denied:
|
||||
app:
|
||||
not_sub_manager: 拒絕存取,因你不是此應用程式次管理員
|
||||
not_manager: 拒絕存取,因你不是此應用程式管理員
|
||||
not_authed_user: 拒絕存取,因你不是此應用程式授權使用者
|
||||
object: 拒絕存取,因你沒有權限
|
||||
not_admin: 拒絕存取,因你不是此應用程式管理員
|
||||
account_settings: 帳號設定
|
||||
action: 操作
|
||||
ad:
|
||||
ab_fx: 轉場效果
|
||||
banner_best_size: 輪播圖片尺寸
|
||||
best_size: 最佳尺寸
|
||||
new_image: 新增輪播圖片
|
||||
not_showing: 沒有顯示
|
||||
picture_list: 圖片列表
|
||||
sec_place_holder: 每張輪播圖片顯示秒數(3秒就請輸入3)
|
||||
showing: 顯示中
|
||||
success_destroy_ad_image: 刪除圖片成功
|
||||
trans_unit_sec: 秒
|
||||
transition_sec: 轉場單位時間
|
||||
update_banner: 更新輪播
|
||||
widget_info_for_ad_image_size: "此區塊圖片尺寸使用: %{best_size}"
|
||||
ad_banner: 廣告輪播
|
||||
add: 新增
|
||||
add_item: 新增項目
|
||||
addthis_tools:
|
||||
add_to_bookmark: 加入書籤
|
||||
admin: 管理員
|
||||
all_content: 所有內容
|
||||
all_file: 所有檔案
|
||||
all_member: 所有會員
|
||||
always_display_title: 永遠顯示標題
|
||||
app_auth: 應用程式作者
|
||||
assigning_manager: 指派管理員
|
||||
add_manager_fail: 新增管理員失敗
|
||||
add_manager_ok: 新增管理員成功
|
||||
assigning_sub_manager: 指派次管理員
|
||||
add_sub_manager_fail: 新增次管理員失敗
|
||||
add_sub_manager_ok: 新增次管理員成功
|
||||
can_not_add_this_user: 不能新增這個使用員
|
||||
delete_manager: 刪除管理員
|
||||
fail: 刪除管理員失敗
|
||||
success: 刪除管理員成功
|
||||
delete_sub_manager: 刪除次管理員
|
||||
fail: 刪除次管理員失敗
|
||||
success: 刪除次管理員成功
|
||||
failed_no_user: 失敗,不是使用者
|
||||
approval:
|
||||
not_pass: 無法通過
|
||||
not_pass_reason: 無法通過原因
|
||||
pass: 通過
|
||||
setting: 通過設定
|
||||
stat: 通過身份
|
||||
user_list: 使用者列表
|
||||
approval_: 核准
|
||||
asset: 資產
|
||||
auth:
|
||||
add_manager: 新增管理員
|
||||
add_sub_manager: 新增次管理員
|
||||
add_to_block_list: 增加到封鎖名單
|
||||
add_to_privilege_list: 增加到特許名單
|
||||
all_member: 所有會員
|
||||
auth_by: -由%{user_display_name}授權
|
||||
by_role: 用戶身份
|
||||
by_sub_role: 次用戶身份
|
||||
author: 作者
|
||||
back: 回上一步
|
||||
basic: 基本
|
||||
browse: 瀏覽
|
||||
cancel: 取消
|
||||
cant_delete_self: 不可以刪除自己
|
||||
cant_empty_star: 不能為空白 (*)
|
||||
cant_revoke_self_admin: 不可以撤銷自己的管理身份
|
||||
category: 類別
|
||||
category_auth: 類別授權
|
||||
clear: 清除
|
||||
content: 內容
|
||||
create: 建立
|
||||
error: 錯誤
|
||||
link: 建立連結時出錯
|
||||
page: 建立頁面時出錯
|
||||
fail: 建立失敗
|
||||
success:
|
||||
asset_category: 資產類別已成功建立
|
||||
link: 連結已成功建立
|
||||
page: 頁面已成功建立
|
||||
user: 使用者已成功建立
|
||||
create_: 建立
|
||||
data: 資料
|
||||
dashboard:
|
||||
bulletin: 公告
|
||||
news_bulletin: 新聞
|
||||
page_context: 頁面內容
|
||||
web_link: 連結
|
||||
dashboard_: 儀表版
|
||||
deadline: 最後期限
|
||||
default_css: 預設樣式表
|
||||
delete: 刪除
|
||||
delete_file: 刪除檔案
|
||||
description: 描述
|
||||
desktop: 桌面
|
||||
disable: 關閉
|
||||
dots: ●●●●●●
|
||||
download: 下載
|
||||
downloaded: 已下載
|
||||
edit: 編輯
|
||||
editing:
|
||||
asset: 編輯資產
|
||||
design: 編輯設計
|
||||
link: 編輯連結
|
||||
page: 編輯頁面
|
||||
email: 電子郵件
|
||||
enable: 開啟
|
||||
enabled_for: 啟用
|
||||
end: 結束
|
||||
end_date: 結束日期
|
||||
errors:
|
||||
at_least_one: 至少擁有一個值
|
||||
file:
|
||||
size: 檔案大小
|
||||
type: 檔案類型
|
||||
upload: 上傳檔案
|
||||
file_: 檔案
|
||||
file_type: 檔案類型
|
||||
forgot_password: 忘記密碼?
|
||||
help: 幫助
|
||||
hidden: 隱藏的
|
||||
hide: 隱藏
|
||||
hits: 點擊次數
|
||||
homepage: 首頁
|
||||
horizontal: 水平的
|
||||
hot: 熱門
|
||||
image: 圖片
|
||||
intro: 簡介
|
||||
is_published: 已發佈
|
||||
item: 項目
|
||||
key: 關鍵
|
||||
last_modified: 最後一次修改
|
||||
layout: 範本
|
||||
link: 連結
|
||||
list:
|
||||
ad_banner: 廣告輪播列表
|
||||
asset: 資產列表
|
||||
info: 使用者資訊列表
|
||||
link: 連結列表
|
||||
purchase: 已購買項目列表
|
||||
role: 使用者角色列表
|
||||
user: 使用者列表
|
||||
list_: 列表
|
||||
list_lower: 列表
|
||||
login: 登入
|
||||
logout: 登出
|
||||
mail:
|
||||
address: 電子郵件地址
|
||||
authentication: 電子郵件認證
|
||||
domain: 電子郵件網域名稱
|
||||
enable_starttls_auto: 啟用安全通訊
|
||||
password: 密碼
|
||||
port: 電子郵件傳輸埠
|
||||
setting: 電子郵件設定
|
||||
tls: 電子郵件TLS
|
||||
user_name: 電子郵件帳號
|
||||
manager: 管理者
|
||||
me: 我
|
||||
member: 會員
|
||||
menu_enabled_for: 選單啟用
|
||||
modal:
|
||||
close: 關閉
|
||||
preview: 預覽
|
||||
module: 模組
|
||||
module_authorization: 模組授權
|
||||
more_plus: 更多+
|
||||
most_visited_page: 最多瀏覽頁面
|
||||
multilingual: 多語系
|
||||
name: 名稱
|
||||
nccu_c:
|
||||
nccu_ldap_uid: 政治大學LDAP帳號
|
||||
new:
|
||||
asset: 新增資產
|
||||
banner: 新增橫幅
|
||||
design: 新增設計
|
||||
link: 新增連結
|
||||
page: 新增頁面
|
||||
user: 新增使用者
|
||||
info: 新增使用者資訊
|
||||
role: 新增使用者角色
|
||||
news: 公告
|
||||
no_: "不是"
|
||||
no_deadline: 沒有期限
|
||||
object_auth:
|
||||
a_object_must_have_only_one_object_auth_profile_for_each_action: ''
|
||||
list_title_of_users: %{auth_title} 授權列表
|
||||
new_object_auth: 新增授權
|
||||
off_upcase: "開啟"
|
||||
on_upcase: "關閉"
|
||||
options: 選項
|
||||
or_lower: 或
|
||||
organization: 組織
|
||||
page: 頁面
|
||||
page_part_kinds:
|
||||
module_widget: 外掛模塊
|
||||
public_r_tag: 系統模塊
|
||||
text: 文字區域
|
||||
passed: 已認可
|
||||
password: 密碼
|
||||
pending: 期間
|
||||
picture: 圖片
|
||||
postdate: 張貼日期
|
||||
posted_by: 張貼人
|
||||
preview: 預覽
|
||||
purchase: 購買
|
||||
quantity: 數量
|
||||
quick_edit: 快速編輯
|
||||
recent_update: 近期更新
|
||||
referral_in_links: 參考連結
|
||||
register: 註冊
|
||||
registered: 已註冊
|
||||
rejected: 拒絕
|
||||
rejected_reason: '拒絕原因:'
|
||||
rejected_reason_empty: "拒絕核准, 沒有參考資訊"
|
||||
related_links: 相關連結
|
||||
role: 角色
|
||||
Roles: 角色
|
||||
ruling_site: 銳綸網站
|
||||
search:
|
||||
domains: Google Search Domains
|
||||
not_found: "沒有搜尋結果"
|
||||
result_get: "搜尋標題有關 ' %{search_word} ' 共搜尋到%{item_num}筆資料"
|
||||
sitesearch: 全站搜尋
|
||||
too_many: "搜尋有關 ' %{search_word} '尋找到超過 %{exceed_num} 筆資料,請嘗試加入更多關鍵字縮小搜尋範圍,以作更精確的搜尋?"
|
||||
unit_get: "列出由 :%{unit_name}發佈的資料,共有%{item_num}筆"
|
||||
search_nccu: 搜尋政治大學
|
||||
setup_member: 會員設定
|
||||
show: 顯示
|
||||
site:
|
||||
description: 網站描述
|
||||
description_help: ''
|
||||
footer: 網站頁尾
|
||||
footer_help: ''
|
||||
info: 網站資訊
|
||||
keywords: 搜尋關鍵字
|
||||
keywords_help: ''
|
||||
language: 網站語言
|
||||
search: 網站搜尋
|
||||
search_help: 請輸入送交Google搜尋的參數
|
||||
settings: 基本設定
|
||||
sub_menu: 次選單
|
||||
title: 網站標題
|
||||
title_help: ''
|
||||
site_: 網站
|
||||
site_info: 網站資訊
|
||||
sitemap: 網站地圖
|
||||
site_name: 網站名稱
|
||||
start: 開始
|
||||
start_date: 開始日期
|
||||
statistics: 統計資訊
|
||||
status: 身份
|
||||
structure: 結構
|
||||
sub_manager: 次管理員
|
||||
submit: 送出
|
||||
submit_approval: 送出已核准
|
||||
submit_user_list: 送出使用者列表
|
||||
sure?: "您確定嗎?"
|
||||
sys:
|
||||
can_not_display_due_to_no_context: "因為沒有中文版本,所以無法顯示"
|
||||
limit_of_upload_file_size: "上傳檔案大小限制: %{best_size}"
|
||||
module_page_lang_not_support: "很抱歉,此頁面沒有開放中文版本"
|
||||
not_previewable: "不支援預覽"
|
||||
preview_only_for_img: "預覽僅支援:jpg,png,gif,bmp等圖片格式"
|
||||
system_info: 系統資訊
|
||||
tag_cloud: 標籤雲
|
||||
tags: 標籤
|
||||
template: 樣版
|
||||
template_name: 樣版名稱
|
||||
text: 文字
|
||||
theme: 主題
|
||||
themes: 主題
|
||||
title: 標題
|
||||
top: 置頂
|
||||
total_visitors: 總計造訪人次
|
||||
traffic: 流量
|
||||
type: 類型
|
||||
unit_name: 單位名稱
|
||||
up_to_date: 最新版本
|
||||
update:
|
||||
error:
|
||||
link: 更新連接時出錯
|
||||
fail: 更新消息
|
||||
success:
|
||||
content: 內容已更新成功
|
||||
link: 連結已更新成功
|
||||
page: 頁面已更新成功
|
||||
user: 使用者已更新成功
|
||||
success_: 更新成功
|
||||
update_: 更新
|
||||
update_at: 在…更新
|
||||
url: 網址
|
||||
use_status: ''
|
||||
user: 使用者
|
||||
version: 版本
|
||||
vertical: 垂直的
|
||||
view: 檢視
|
||||
view_count: 查看次數
|
||||
visitors_this_month: 本月造訪人次
|
||||
visitors_this_week: 本星期造訪人次
|
||||
visitors_this_year: 今年造訪人次
|
||||
visitors_today: 今日造訪人次
|
||||
yes_: "是"
|
||||
|
||||
|
||||
mongoid:
|
||||
models:
|
||||
news_bulletin: 新聞
|
||||
|
@ -15,543 +330,3 @@ zh_tw:
|
|||
web_link:
|
||||
title: 名稱
|
||||
url: 路徑
|
||||
|
||||
|
||||
_locale: 中文
|
||||
|
||||
me: 我
|
||||
account_settings: 帳號設定
|
||||
add: 新增
|
||||
back: 回上一步
|
||||
browse: 選擇檔案
|
||||
cancel: 取消
|
||||
cant_empty_star: 不能為空 (*)
|
||||
continued: 詳讀全文
|
||||
create: 新增
|
||||
create_fail: 創建失敗
|
||||
delete: 刪除
|
||||
desktop: 桌面
|
||||
disable: 禁用
|
||||
dots: …
|
||||
downloaded: 已下載
|
||||
download: 下載
|
||||
edit: 編輯
|
||||
email: 電子郵件
|
||||
enable: 啟用
|
||||
forgot_password: 忘記密碼?
|
||||
help: 協助
|
||||
hide: 隱藏
|
||||
homepage: 首頁
|
||||
login: 登入
|
||||
logout: 登出
|
||||
nccu: 政大
|
||||
nccu_c:
|
||||
nccu_ldap_uid: iNCCU帳號
|
||||
no_: "No"
|
||||
nothing: 無
|
||||
off_upcase: "OFF"
|
||||
on_upcase: "ON"
|
||||
or_lower: 或
|
||||
password: 密碼
|
||||
register: 註冊
|
||||
remember_me: 記住我
|
||||
search_nccu: 搜尋政大
|
||||
show: 顯示
|
||||
submit: 送出
|
||||
preview: 預覽
|
||||
sure?: 您肯定嗎?
|
||||
update: 更新
|
||||
update_failed: 更新失敗
|
||||
view: 檢視
|
||||
view_count: 查看次數
|
||||
yes_: "Yes"
|
||||
|
||||
addthis_tools:
|
||||
add_to_bookmark: 加入書籤
|
||||
all_content: 全部內容有
|
||||
all_file: 全部檔案有
|
||||
all_member: 成員總數
|
||||
content: 內容
|
||||
data: 數據
|
||||
file: 檔案
|
||||
file_type: 檔案類型
|
||||
hits: 點擊率
|
||||
item: 項目
|
||||
member: 會員
|
||||
module: 模組
|
||||
most_visited_page: 熱門頁面
|
||||
quantity: 數量
|
||||
recent_update: 近期更新
|
||||
referral_in_links: 外部推薦連結
|
||||
role: 角色
|
||||
site_info: 網站資訊
|
||||
site_name: 網站名稱
|
||||
sitemap: 網站地圖
|
||||
statistics: 統計
|
||||
title: 標題
|
||||
total_visitors: 造訪次數
|
||||
traffic: 流量
|
||||
|
||||
visitors_today: 今日造訪
|
||||
visitors_this_week: 本星期造訪
|
||||
visitors_this_month: 本月造訪
|
||||
visitors_this_year: 今年造訪
|
||||
|
||||
errors:
|
||||
at_least_one: 必須至少有一個值
|
||||
|
||||
admin:
|
||||
access:
|
||||
denied:
|
||||
app:
|
||||
not_sub_manager: 拒絕存取因你不是此應用程式次管理員
|
||||
not_manager: 拒絕存取因你不是此應用程式管理員
|
||||
not_authed_user: 拒絕存取因你不是此應用程式授權使用者
|
||||
not_admin: 拒絕存取因你不是此應用程式次管理員
|
||||
object: 拒絕存取因你不是網站管理者
|
||||
action: 操作
|
||||
ad_banner: 廣告輪播
|
||||
ad:
|
||||
sec_place_holder: 3秒請輸入3
|
||||
ab_fx: 轉場特效
|
||||
all_banners: 輪播清單
|
||||
banner_best_size: Banner 尺寸
|
||||
best_size: 最佳尺寸
|
||||
cate_auth: 分類授權
|
||||
delete_banner: 刪除整組輪播
|
||||
new_banner: 新增輪播
|
||||
new_image: 新增橫幅
|
||||
showing: 顯示中
|
||||
not_showing: 沒有顯示
|
||||
picture_list: 圖片列表
|
||||
title: 標題
|
||||
transition_sec: 轉場單位時間
|
||||
trans_unit_sec: 秒
|
||||
update_banner: 更新輪播
|
||||
widget_info_for_ad_image_size: "此區塊圖片尺寸請使用 %{best_size}"
|
||||
add: 新增
|
||||
add_item: 新增項目
|
||||
add_language: 新增語言
|
||||
add_drop_down_item: +增加Orbit選單
|
||||
admin: 網站管理者
|
||||
all_articles: 列表
|
||||
always_display_title: 永遠顯示於標題列
|
||||
announcement: 公告管理
|
||||
asset: 資產
|
||||
assets:
|
||||
file: 檔案
|
||||
album: 相簿
|
||||
video: 影片
|
||||
book: 書籍
|
||||
attributes: 屬性
|
||||
author: 作者
|
||||
calendar: 行事曆
|
||||
cant_delete_self: 您不可以刪除自己。
|
||||
cant_revoke_self_admin: 您不可以撤銷自己的管理身份。
|
||||
category: 類別
|
||||
choose_file: 請選擇一個文件...
|
||||
class: 階級
|
||||
content: 內容
|
||||
contenteditable:
|
||||
update_done: 更新完成
|
||||
update_failed: 更新失敗
|
||||
create_error_link: 新增連接時出錯。
|
||||
create_error_page: 新增頁面時出錯。
|
||||
create_success_home: 首頁已成功新增。
|
||||
create_success_layout: 樣板已成功新增。
|
||||
create_success_link: 連結已成功新增。
|
||||
create_success_page: 頁面已成功新增。
|
||||
create_success_home: 首頁已成功新增。
|
||||
create_success_layout: 佈局已成功新增。
|
||||
create_success_link: 連結已成功新增。
|
||||
create_success_page: 頁面已成功新增。
|
||||
create_success_snippet: 片段已成功新增。
|
||||
create_success_user: 用戶已成功新增。。
|
||||
dashboard: 儀表板
|
||||
data: 選擇檔案
|
||||
delete_language: 刪除語言
|
||||
description: 描述
|
||||
design: 版型管理
|
||||
disable_language: 禁用語言
|
||||
edit: 編輯
|
||||
editing_home: 編輯首頁
|
||||
editing_layout: 編輯樣板
|
||||
editing_link: 編輯連結
|
||||
editing_page: 編輯頁面
|
||||
editing_snippet: 編輯片段
|
||||
editing_info: 編輯用戶資料
|
||||
editing_role: 編輯用戶身份
|
||||
email: Email
|
||||
enable_language: 啟用語言
|
||||
enabled_for: 啟用
|
||||
file_name: 檔名
|
||||
file_size: 檔案大小
|
||||
file_upload: 文件上載
|
||||
format: 格式
|
||||
home: 首頁
|
||||
id: ID
|
||||
info: 資料
|
||||
intro: 簡介
|
||||
is_published: 被出版
|
||||
item: 網站架構
|
||||
key: 關鍵
|
||||
keywords: 關鍵字
|
||||
language: 語言
|
||||
layout: 佈局
|
||||
layout_name: 佈局名字
|
||||
link: 連結管理
|
||||
links: 網路資源
|
||||
list_assets: 資產列表
|
||||
list_designs: 設計列表
|
||||
list_items: 項目列表
|
||||
list_puchases: 購買清單
|
||||
list_snippets: 斷片列表
|
||||
list_users: 使用列表
|
||||
list_infos: 用戶資料列表
|
||||
list_roles: 用戶身份列表
|
||||
mail_address: 郵件地址
|
||||
mail_port: 傳輸埠
|
||||
mail_domain: 網域名稱
|
||||
mail_authentication: 認證
|
||||
mail_user_name: 帳號
|
||||
mail_password: 密碼
|
||||
mail_tls: TLS
|
||||
mail_enable_starttls_auto: Enable Start TLS Auto
|
||||
member: 會員
|
||||
menu_enabled_for: 選單啟用
|
||||
module:
|
||||
authorization: 模組授權
|
||||
move_down: 往下移
|
||||
move_up: 往上移
|
||||
multilingual: 多種語言
|
||||
my_avatar: 我的頭像
|
||||
no_home_page: 您沒有首頁
|
||||
no_layout: 您沒有佈局
|
||||
name: 名稱
|
||||
nccu: 政大客制
|
||||
nccu_c:
|
||||
nccu_ldap_uid: NCCU LDAP 帳號
|
||||
new_asset: 新增資產
|
||||
new_component: 新增元件
|
||||
new_design: 新設計
|
||||
new_home: 新增首頁
|
||||
new_layout: 新增樣板
|
||||
new_link: 新增連結
|
||||
new_page: 新增頁面
|
||||
new_snippet: 新增片段
|
||||
new_user: 新增使用
|
||||
new_info: 新增用戶資料
|
||||
new_role: 新增用戶身份
|
||||
news: 新聞
|
||||
non_multilingual:
|
||||
object_auth:
|
||||
list_title_of_users: 授權清單-%{auth_title}
|
||||
update_done: 更新完成,結果顯示於清單
|
||||
update_failed: 更新失敗
|
||||
options: 選項
|
||||
orig_upload_file: 原上傳檔名
|
||||
page: 頁面管理
|
||||
page_context:
|
||||
edit: 編輯
|
||||
ob_auth:
|
||||
edit: 分類授權
|
||||
page_part_kinds:
|
||||
text: 文字區塊
|
||||
public_r_tag: 系統模塊
|
||||
module_widget: 外掛模塊
|
||||
position: 位置
|
||||
published?: 發布?
|
||||
purchase: 購買
|
||||
role: 身份
|
||||
roles: 身份
|
||||
site_description: 網站描述
|
||||
site_footer: 網站頁尾
|
||||
site_settings: 基本設定
|
||||
site_sub_menu: 網站次選單
|
||||
site_title: 網站標題
|
||||
setup_member: 成員設置
|
||||
setup_translations: 語系設定
|
||||
setup_designs: 版型設定
|
||||
site: 網站
|
||||
site_setting: 網站設定
|
||||
super_pages: 可編頁面
|
||||
structure: 網站結構
|
||||
tags: 標籤
|
||||
title: 標題
|
||||
translation: 翻譯
|
||||
type: 類型
|
||||
up_to_date: 最新版本
|
||||
update_error_link: 更新鏈接時出現錯誤。
|
||||
update_error_page: 更新頁面時出現錯誤。
|
||||
update_success_content: 內容已成功更新。
|
||||
update_success_home: 首頁已成功更新。
|
||||
update_success_layout: 樣板已成功更新。
|
||||
update_success_link: 連結已成功更新。
|
||||
update_success_page: 頁面已成功更新。
|
||||
update_success_snippet: 片段已成功更新。
|
||||
update_success_user: 用戶已成功更新
|
||||
upload_design: 上傳設計
|
||||
url: URL
|
||||
user: 用戶
|
||||
user_role:
|
||||
auth:
|
||||
all_member: 所有會員
|
||||
manager: 管理員
|
||||
sub_manager: 次管理員
|
||||
by_role: 根據身份
|
||||
by_sub_role: 根據次身份
|
||||
block_list: 封鎖名單
|
||||
add_manager: 增加到管理員
|
||||
add_sub_manager: 增加到次管理員
|
||||
add_to_block_list: 封鎖名單
|
||||
add_to_privilege_list: 特許名單
|
||||
auth_by: -由%{user_display_name}授權
|
||||
user: 使用會員
|
||||
info: 用戶資料
|
||||
panel: 用戶面板
|
||||
role: 用戶身份
|
||||
|
||||
dashboard:
|
||||
bulletin: 公告
|
||||
news_bulletin: 新聞
|
||||
page_context: 頁面
|
||||
web_link: 鏈接
|
||||
|
||||
panel:
|
||||
|
||||
|
||||
|
||||
# Chinese (Taiwan) translations for Ruby on Rails
|
||||
# by tsechingho (http://github.com/tsechingho)
|
||||
date:
|
||||
formats:
|
||||
default: "%Y-%m-%d"
|
||||
short: "%b%d日"
|
||||
long: "%Y年%b%d日"
|
||||
day_names: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六]
|
||||
abbr_day_names: [日, 一, 二, 三, 四, 五, 六]
|
||||
month_names: [~, 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
|
||||
abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
|
||||
order: [ :year, :month, :day ]
|
||||
|
||||
time:
|
||||
formats:
|
||||
default: "%Y年%b%d日 %A %H:%M:%S %Z"
|
||||
short: "%b%d日 %H:%M"
|
||||
long: "%Y年%b%d日 %H:%M"
|
||||
am: "上午"
|
||||
pm: "下午"
|
||||
|
||||
datetime:
|
||||
distance_in_words:
|
||||
half_a_minute: "半分鐘"
|
||||
less_than_x_seconds:
|
||||
one: "不到一秒"
|
||||
other: "不到 %{count} 秒"
|
||||
x_seconds:
|
||||
one: "一秒"
|
||||
other: "%{count} 秒"
|
||||
less_than_x_minutes:
|
||||
one: "不到一分鐘"
|
||||
other: "不到 %{count} 分鐘"
|
||||
x_minutes:
|
||||
one: "一分鐘"
|
||||
other: "%{count} 分鐘"
|
||||
about_x_hours:
|
||||
one: "大約一小時"
|
||||
other: "大約 %{count} 小時"
|
||||
x_days:
|
||||
one: "一天"
|
||||
other: "%{count} 天"
|
||||
about_x_months:
|
||||
one: "大約一個月"
|
||||
other: "大約 %{count} 個月"
|
||||
x_months:
|
||||
one: "一個月"
|
||||
other: "%{count} 個月"
|
||||
about_x_years:
|
||||
one: "大約一年"
|
||||
other: "大約 %{count} 年"
|
||||
over_x_years:
|
||||
one: "一年多"
|
||||
other: "%{count} 年多"
|
||||
almost_x_years:
|
||||
one: "接近一年"
|
||||
other: "接近 %{count} 年"
|
||||
prompts:
|
||||
year: "年"
|
||||
month: "月"
|
||||
day: "日"
|
||||
hour: "時"
|
||||
minute: "分"
|
||||
second: "秒"
|
||||
|
||||
number:
|
||||
format:
|
||||
separator: "."
|
||||
delimiter: ","
|
||||
precision: 3
|
||||
significant: false
|
||||
strip_insignificant_zeros: false
|
||||
currency:
|
||||
format:
|
||||
format: "%u %n"
|
||||
unit: "NT$"
|
||||
separator: "."
|
||||
delimiter: ","
|
||||
precision: 2
|
||||
significant: false
|
||||
strip_insignificant_zeros: false
|
||||
percentage:
|
||||
format:
|
||||
delimiter: ""
|
||||
precision:
|
||||
format:
|
||||
delimiter: ""
|
||||
human:
|
||||
format:
|
||||
delimiter: ""
|
||||
precision: 1
|
||||
significant: false
|
||||
strip_insignificant_zeros: false
|
||||
storage_units:
|
||||
format: "%n %u"
|
||||
units:
|
||||
byte:
|
||||
one: "Byte"
|
||||
other: "Bytes"
|
||||
kb: "KB"
|
||||
mb: "MB"
|
||||
gb: "GB"
|
||||
tb: "TB"
|
||||
decimal_units:
|
||||
format: "%n %u"
|
||||
units:
|
||||
# 10^-21 zepto, 10^-24 yocto
|
||||
atto: "渺" # 10^-18
|
||||
femto: "飛" # 10^-15 毫微微
|
||||
pico: "漠" # 10^-12 微微
|
||||
nano: "奈" # 10^-9 毫微
|
||||
micro: "微" # 10^-6
|
||||
mili: "毫" # 10^-3 milli
|
||||
centi: "厘" # 10^-2
|
||||
deci: "分" # 10^-1
|
||||
unit: ""
|
||||
ten:
|
||||
one: "十"
|
||||
other: "十" # 10^1
|
||||
hundred: "百" # 10^2
|
||||
thousand: "千" # 10^3 kilo
|
||||
million: "百萬" # 10^6 mega
|
||||
billion: "十億" # 10^9 giga
|
||||
trillion: "兆" # 10^12 tera
|
||||
quadrillion: "千兆" # 10^15 peta
|
||||
# 10^18 exa, 10^21 zetta, 10^24 yotta
|
||||
|
||||
support:
|
||||
array:
|
||||
words_connector: ", "
|
||||
two_words_connector: " 和 "
|
||||
last_word_connector: ", 和 "
|
||||
select:
|
||||
prompt: "請選擇"
|
||||
|
||||
search:
|
||||
not_found: "沒有搜尋結果"
|
||||
domains: Google Search Domains
|
||||
site_search: "全站搜尋"
|
||||
sitesearch: Google Site Search
|
||||
site_setting_help: 請輸入送交Google搜尋的參數
|
||||
result_get: "搜尋有關 ' %{search_word} ' 共搜尋到%{item_num}筆資料"
|
||||
too_many: "搜尋有關 ' %{search_word} ' 尋找到超過 %{exceed_num} 筆資料,請嘗試加入更多關鍵字縮小搜尋範圍,以作更精確的搜尋"
|
||||
|
||||
result_get: "搜尋標題有關 ' %{search_word} ' 共搜尋到%{item_num}筆資料"
|
||||
unit_get: "列出由:%{unit_name}發佈的資料,共有%{item_num}筆"
|
||||
activerecord:
|
||||
errors:
|
||||
template: # ~ 2.3.5 backward compatible
|
||||
header:
|
||||
one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
|
||||
other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
|
||||
body: "以下欄位發生問題:"
|
||||
full_messages:
|
||||
format: "%{attribute} %{message}"
|
||||
messages:
|
||||
inclusion: "沒有包含在列表中"
|
||||
exclusion: "是被保留的關鍵字"
|
||||
invalid: "是無效的"
|
||||
confirmation: "不符合確認值"
|
||||
accepted: "必須是可被接受的"
|
||||
empty: "不能留空"
|
||||
blank: "不能是空白字元"
|
||||
too_long: "過長(最長是 %{count} 個字)"
|
||||
too_short: "過短(最短是 %{count} 個字)"
|
||||
wrong_length: "字數錯誤(必須是 %{count} 個字)"
|
||||
not_a_number: "不是數字"
|
||||
not_an_integer: "必須是整數"
|
||||
greater_than: "必須大於 %{count}"
|
||||
greater_than_or_equal_to: "必須大於或等於 %{count}"
|
||||
equal_to: "必須等於 %{count}"
|
||||
less_than: "必須小於 %{count}"
|
||||
less_than_or_equal_to: "必須小於或等於 %{count}"
|
||||
odd: "必須是奇數"
|
||||
even: "必須是偶數"
|
||||
taken: "已經被使用"
|
||||
record_invalid: "校驗失敗: %{errors}"
|
||||
|
||||
activemodel:
|
||||
errors:
|
||||
template:
|
||||
header:
|
||||
one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
|
||||
other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
|
||||
body: "以下欄位發生問題:"
|
||||
|
||||
errors:
|
||||
at_least_one: 至少要有一個
|
||||
format: "%{attribute} %{message}"
|
||||
messages:
|
||||
inclusion: "沒有包含在列表中"
|
||||
exclusion: "是被保留的關鍵字"
|
||||
invalid: "是無效的"
|
||||
confirmation: "不符合確認值"
|
||||
accepted: "必須是可被接受的"
|
||||
empty: "不能留空"
|
||||
blank: "不能是空白字元"
|
||||
too_long: "過長(最長是 %{count} 個字)"
|
||||
too_short: "過短(最短是 %{count} 個字)"
|
||||
wrong_length: "字數錯誤(必須是 %{count} 個字)"
|
||||
not_a_number: "不是數字"
|
||||
not_an_integer: "必須是整數"
|
||||
greater_than: "必須大於 %{count}"
|
||||
greater_than_or_equal_to: "必須大於或等於 %{count}"
|
||||
equal_to: "必須等於 %{count}"
|
||||
less_than: "必須小於 %{count}"
|
||||
less_than_or_equal_to: "必須小於或等於 %{count}"
|
||||
odd: "必須是奇數"
|
||||
even: "必須是偶數"
|
||||
template:
|
||||
header:
|
||||
one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
|
||||
other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
|
||||
body: "以下欄位發生問題:"
|
||||
|
||||
helpers:
|
||||
select:
|
||||
prompt: "請選擇"
|
||||
submit:
|
||||
create: "新增%{model}"
|
||||
update: "更新%{model}"
|
||||
submit: "儲存%{model}"
|
||||
modal:
|
||||
close: "關閉"
|
||||
preview: "預覽"
|
||||
sys:
|
||||
not_previewable: "不支援預覽"
|
||||
limit_of_upload_file_size: "上傳檔案大小限制: %{best_size}"
|
||||
preview_only_for_img: "預覽僅支援:jpg,png,gif,bmp...等圖片格式"
|
||||
can_not_display_due_to_no_context: "因為沒有中文版本,所以無法顯示"
|
||||
module_page_lang_not_support: "很抱歉,本頁沒有開放中文版本"
|
||||
object_disable:
|
||||
change_to_true: "設為停用"
|
||||
change_to_false: "重新啓用"
|
|
@ -8,7 +8,7 @@ defaults: &defaults
|
|||
|
||||
development:
|
||||
<<: *defaults
|
||||
database: i18n_var
|
||||
database: no_i18_var
|
||||
|
||||
test:
|
||||
<<: *defaults
|
||||
|
|
|
@ -122,9 +122,7 @@ Orbit::Application.routes.draw do
|
|||
get 'system_info'
|
||||
get 'ui_theme'
|
||||
end
|
||||
resources :snippets
|
||||
resources :tags
|
||||
resources :translations
|
||||
resources :users
|
||||
end
|
||||
# end admin
|
||||
|
|
|
@ -13,9 +13,9 @@ class Panel::Announcement::BackEnd::ApprovalsController < OrbitBackendControlle
|
|||
@bulletin.proc_check(params[:bulletin][:is_checked],params[:bulletin][:not_checked_reason])
|
||||
@bulletin.de_pending
|
||||
if @bulletin.save
|
||||
notice = t('bulletin.approve_bulletin_success')
|
||||
notice = t('announcement.approve_bulletin_success')
|
||||
else
|
||||
notice = t('bulletin.approve_bulletin_fail')
|
||||
notice = t('announcement.approve_bulletin_fail')
|
||||
end
|
||||
redirect_to(panel_announcement_back_end_bulletins_url,:notice => notice)
|
||||
end
|
||||
|
@ -40,9 +40,9 @@ class Panel::Announcement::BackEnd::ApprovalsController < OrbitBackendControlle
|
|||
def update_setting
|
||||
object_auth = update_setting_by_params
|
||||
if object_auth.save!
|
||||
flash[:notice] = t("admin.object_auth.update_done")
|
||||
flash[:notice] = t('update.success_')
|
||||
else
|
||||
flash[:notice] = t("admin.object_auth.update_failed")
|
||||
flash[:notice] = t('update.fail')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -92,8 +92,8 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
|
|||
|
||||
respond_to do |format|
|
||||
if @bulletin_category.update_attributes(params[:bulletin_category])
|
||||
# format.html { redirect_to(panel_announcement_back_end_bulletin_category_url(@bulletin_category), :notice => t('bulletin_category.update_bulletin_category_success')) }
|
||||
# format.html { redirect_to(panel_announcement_back_end_bulletin_categorys_url, :notice => t('bulletin_category.update_bulletin_category_success')) }
|
||||
# format.html { redirect_to(panel_announcement_back_end_bulletin_category_url(@bulletin_category), :notice => t('announcement.update_bulletin_category_success')) }
|
||||
# format.html { redirect_to(panel_announcement_back_end_bulletin_categorys_url, :notice => t('announcement.update_bulletin_category_success')) }
|
||||
# format.xml { head :ok }
|
||||
format.js
|
||||
else
|
||||
|
@ -112,14 +112,14 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
|
|||
|
||||
if @bulletin_category.save!
|
||||
respond_to do |format|
|
||||
flash[:notice] = t("bulletin_category.update_success")
|
||||
# flash[:error] += @bulletin_category.disable ? t("bulletin_category.disable_change_to_true") : t("bulletin_category.disable_change_to_false")
|
||||
flash[:notice] = t("update.success_")
|
||||
# flash[:error] += @bulletin_category.disable ? t(:enable) : t(disable)
|
||||
format.html { redirect_to(panel_announcement_back_end_bulletin_categorys_url) }
|
||||
# format.xml { head :ok }
|
||||
format.js
|
||||
end
|
||||
else
|
||||
flash[:error] = t("bulletin_category.update_failed")
|
||||
flash[:error] = t("update.fail")
|
||||
format.html { render :action => "index" }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -144,7 +144,7 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
|
|||
respond_to do |format|
|
||||
if @bulletin.save
|
||||
|
||||
format.html { redirect_to(panel_announcement_back_end_bulletins_url, :notice => t('bulletin.create_bulletin_success')) }
|
||||
format.html { redirect_to(panel_announcement_back_end_bulletins_url, :notice => t('announcement.create_bulletin_success')) }
|
||||
format.xml { render :xml => @bulletin, :status => :created, :location => @bulletin }
|
||||
# format.js
|
||||
format.js {
|
||||
|
|
|
@ -9,8 +9,8 @@ include ActionView::Helpers::UrlHelper
|
|||
bulletin_category.object_auths.new(title: type ).save
|
||||
oa = bulletin_category.get_object_auth_by_title(type)
|
||||
end
|
||||
# link_to t('announcement.bulletin.cate_auth'), edit_admin_object_auth_path(oa)
|
||||
link_to t('announcement.bulletin.cate_auth'),admin_object_auth_ob_auth_path(oa)
|
||||
# link_to t(:category_auth), edit_admin_object_auth_path(oa)
|
||||
link_to t(:category_auth),admin_object_auth_ob_auth_path(oa)
|
||||
end
|
||||
|
||||
end
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue