Custom password hashing for migrating data

This commit is contained in:
Godwin
2014-05-04 21:01:27 -06:00
parent 1aee8c09da
commit 7a768068ec
8 changed files with 1636979 additions and 12 deletions
+14 -1
View File
@@ -48,6 +48,10 @@ table#translations {
}
.grid.links {
&.inactive li > a {
opacity: 0.75;
}
li > a {
display: block;
background-color: $color-5;
@@ -55,8 +59,17 @@ table#translations {
padding: 1em;
min-height: 7em;
&.complete {
background-color: $color-2;
}
&.needs-work {
background-color: $color-4;
}
&:hover {
background-color: $color-1;
opacity: 1;
}
h3 {
@@ -85,4 +98,4 @@ ul.tags,
float: left;
color: lighten($body-font-color, 10);
}
}
}
+6
View File
@@ -389,3 +389,9 @@ table {
}
}
}
@media #{$medium-up} {
.top-bar-section li a:not(.button) {
background: transparent !important;
}
}
+1 -3
View File
@@ -6,9 +6,6 @@ include ApplicationHelper
class PagesController < ApplicationController
def home
#password = ""
#hash = ""
#@testResult = RubyDrupalHash::verify(password, hash)
end
def translate
@@ -91,4 +88,5 @@ class PagesController < ApplicationController
end
I18n.backend.reload!
end
end
+3 -3
View File
@@ -7,10 +7,10 @@
- @language_codes.each do |code|
- if code && @completeness.has_key?(code.to_s)
%li.text-center
%a{:href => "/translations/#{code}/"}
- 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)}
%h3=_"languages.#{code}"
- completeness = @completeness[code.to_s]
- percent = @total_translations ? ((completeness / @total_translations.to_f) * 100).round() : 0
.completeness
= "#{completeness} / #{@total_translations} (#{percent}%)"
%h2= _ 'languages.inactive'