Hound is love, Hound is life #2

This commit is contained in:
Luka Murn 2017-06-07 18:26:32 +02:00
parent 42f7b4f68d
commit 0aee11d6d8
3 changed files with 10 additions and 9 deletions

View file

@ -509,12 +509,12 @@ label {
}
}
/** Module repository element */
// Module repository element
.report-module-repository-element {
margin-bottom: 0;
.report-element-header {
border-bottom: none;
border-bottom: 0;
.repository-name {
margin-left: 5px;
@ -522,7 +522,8 @@ label {
}
&:hover > .report-element-header {
.repository-icon,.repository-name {
.repository-icon,
.repository-name {
color: $color-theme-primary;
}
}

View file

@ -73,10 +73,10 @@ module ReportActions
elements = []
contents.values.each do |element|
if contents.has_many
elements = params.select{|k| k.starts_with?("module_#{element}")}
elements = elements.select{|_,v| v == '1'}.keys
elements.map!{|el| el.gsub('module_', '')}.map!{|el| el.split('_')}
elements.map!{|el| [el[0].to_sym, el[1].to_i]}
elements = params.select { |k| k.starts_with?("module_#{element}") }
elements = elements.select { |_,v| v == '1' }.keys
elements.map! { |el| el.gsub('module_', '')}.map!{|el| el.split('_') }
elements.map! { |el| [el[0].to_sym, el[1].to_i] }
break unless elements.empty?
else
present = in_params?("module_#{element}".to_sym) ||

View file

@ -97,11 +97,11 @@ module ReportExtends
ModuleElement.new([:samples],
:samples,
false,
[:my_module, :order]),
%i(my_module order)),
ModuleElement.new([:repository],
:repository,
false,
[:my_module, :order],
%i(my_module order),
nil,
true,
true)