Paypal Registration

This commit is contained in:
Godwin
2014-07-24 00:16:33 -06:00
parent 4cf9277d20
commit 1430e505a0
81 changed files with 3011 additions and 295 deletions
+9 -1
View File
@@ -1 +1,9 @@
404!d
- page_title = _'error.404.page_title.This_Page_Does_Not_Exist'
- title page_title
- banner_title page_title
.row
%h1
=_'error.404.title','This page does not exist!'
%p
=_'error.404.description', :p
@@ -0,0 +1,9 @@
- page_title = _'error.no_lang.page_title.Language_not_enabled'
- title page_title
- banner_title page_title
.row
%h1
=(_ 'language_not_yet_translated', vars: {:language => (_ ('languages.' + @lang))})
%p
=_'error.no_lang.description', :p
+3 -3
View File
@@ -1,9 +1,9 @@
- page_title = _'error.title.Permission_Denied'
- page_title = _'error.403.page_title.Permission_Denied'
- title page_title
- banner_title page_title
.row
%h1
='This page is inaccessible to you'
=_'error.403.title','This page is inaccessible to you'
%p
=_'error.desc.permission_denied', :p
=_'error.403.description', :p
+3 -3
View File
@@ -12,11 +12,11 @@
- if code && @completeness.has_key?(code.to_s)
%li.text-center
- completeness = @completeness[code.to_s]
- percent = @total_translations ? ((completeness / @total_translations.to_f) * 100).to_i : 0
%a{:href => "/translations/#{code}/", :class => (percent > 99 ? 'complete' : percent > 67 ? 'needs-work' : nil)}
-# percent = @total_translations ? ((completeness / @total_translations.to_f) * 100).to_i : 0
%a{:href => "/translations/#{code}/", :class => (completeness > 99 ? 'complete' : completeness > 67 ? 'needs-work' : nil)}
%h3=_"languages.#{code}"
.completeness
= "#{completeness} / #{@total_translations} (#{percent}%)"
= "#{completeness} / #{@total_translations} (#{completeness}%)"
%h2= _ 'languages.inactive'
%ul.languages.inactive.small-block-grid-1.medium-block-grid-3.large-block-grid-4.grid.links
- @language_codes.each do |code|
+9 -8
View File
@@ -11,10 +11,10 @@
%th.key=_'translations.Pages'
%th.key=_'translations.Value'
- @translations.sort{| a1, a2 | a1[0].downcase <=> a2[0].downcase}.each do |k,translation|
- current_translation = Translation.locale(@lang.to_sym).lookup(k)#[0].value #_ translation[0], :strict, locale: @lang.to_sym
- current_translation = Translation.locale(@lang.to_sym).lookup(k)
- current_translation = current_translation.size() > 0 ? current_translation = current_translation[0].value : nil
- cached = (translation['languages'] && translation['languages'].include?(@lang))
- vars = translation.has_key?('vars') && translation['vars'].size() > 0 ? translation['vars'] : nil
- cached = (translation && translation['languages'] && translation['languages'].include?(@lang))
- vars = translation && translation.has_key?('vars') && translation['vars'].size() > 0 ? translation['vars'] : nil
- (vars && vars.include?(:count) ? I18n.backend.get_pluralization_rules(@lang) : [nil]).each do |pluralization|
- key = k + (pluralization ? ".#{pluralization.to_s}" : '')
%tr{:class => current_translation ? 'exists' : 'not-exists', :data => {:key => key}}
@@ -28,9 +28,10 @@
%li=v
%td.pages
%ul
- translation['pages'].each do |page|
%li
%a{:href => page}=page
- if translation
- translation['pages'].each do |page|
%li
%a{:href => page}=page
%td.value.primary
- if current_translation
= current_translation
@@ -43,5 +44,5 @@
- unless current_translation
%a{:href => '#', :class => 'auto-translate button small'}='Auto'
-# content_for :footer_scripts
= javascript_include_tag 'translations'
- content_for :footer_scripts do
= javascript_include_tag 'translations'