Custom password hashing for migrating data
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -389,3 +389,9 @@ table {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$medium-up} {
|
||||
.top-bar-section li a:not(.button) {
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user