diff -r 87cfa131b535 -r e7e0ae78773e configurationengine/source/scripts/compare_ci_report_template.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configurationengine/source/scripts/compare_ci_report_template.html Tue Aug 10 14:29:28 2010 +0300 @@ -0,0 +1,76 @@ +{% extends "cone_base.html" %} +{% block title %}Compare API{% endblock %} +{% block content %} +

Configuration API compare


+ {% set columns = { + 'type':'Type', + 'options':'Option', + } %} + + + + + + + + + + + {#- ----------------------------------------- -#} + {#- Report features that are only on one side -#} + {#- ----------------------------------------- -#} + + {%- for fqr in data.sourcedata.features -%} + {%- if fqr not in data.targetdata.features -%} + + + + + + + + + + {% endif -%} + {%- endfor -%} + + {#- --------------------------------#} + {#- Report differences in features -#} + {#- --------------------------------#} + {%- for fqr in data.sourcedata.features -%} + {%- if fqr in data.targetdata.features and not data.sourcedata.features[fqr]._compare(data.targetdata.features[fqr], columns.keys()) -%} + {%- if data.sourcedata.features[fqr]['type'] == 'int' and + data.targetdata.features[fqr]['type'] == None %} + {% else %} + + + + + + {%- if data.sourcedata.features[fqr]['type'] != data.targetdata.features[fqr]['type'] %} + + + + {% elif data.sourcedata.features[fqr]['options'] != data.targetdata.features[fqr]['options'] %} + + + + {% else %} + + {%- endif -%} + + {%- endif -%} + {% endif -%} + {%- endfor -%} + +
ReferenceSource confmlTarget confmlSource elementProblemTarget element
Missing {{fqr}}{{ data.sourcedata.features[fqr].get_configuration_path() }}  Missing feature 
Difference with {{fqr}}{{ data.sourcedata.features[fqr].get_configuration_path() }}{{ data.targetdata.features[fqr].get_configuration_path() }}{{data.sourcedata.features[fqr]['type']}}Type difference{{data.targetdata.features[fqr]['type']}}{% for option in data.sourcedata.features[fqr]['options'].values() -%} + Option {%- if option.map %} map=option.map{% else %} name={{ option.name }}, value={{ option.value}}{% endif %}
+ {%- endfor %}
Options difference{% for option in data.targetdata.features[fqr]['options'].values() -%} + Option {%- if option.map %} map=option.map{% else %} name={{ option.name }}, value={{ option.value}}{% endif %}
+ {%- endfor %}
 
+ +{% endblock %}