| 10 | | class="listing" summary="Features" style="width:100%"> |
| 11 | | <tal:featuregroup tal:repeat="featureaccession featureaccessiondict"> |
| 12 | | <table class="listing" summary="FeaturesAccession" style="width:100%" |
| 13 | | tal:define="features python:featureaccessiondict[featureaccession]"> |
| 14 | | <thead> |
| 15 | | <tr><th class="nosort" colspan="3" tal:content="featureaccession">feature accession</th></tr> |
| 16 | | <tr> |
| 17 | | <th class="nosort">type</th> |
| 18 | | <th class="nosort">location</th> |
| 19 | | <th class="nosort">qualifiers</th> |
| 20 | | </tr> |
| 21 | | </thead> |
| 22 | | <tbody> |
| 23 | | <tal:features tal:repeat="feature features"> |
| 24 | | <tr tal:define="oddrow repeat/feature/odd; |
| 25 | | start python:'Start: ' + str(feature.location.start.position + 1); |
| 26 | | end python:'End: ' + str(feature.location.end.position);" |
| 27 | | tal:attributes="class python:(oddrow and 'even' or 'odd')"> |
| 28 | | <td><strong tal:content="feature/type" /></td> |
| 29 | | <td tal:content="python:start + ' : ' + end" /> |
| 30 | | <td> |
| 31 | | <ul> |
| 32 | | <tal:qualifiers tal:repeat="key feature/qualifiers/keys"> |
| 33 | | <li tal:condition="python:isinstance(feature.qualifiers[key],list)"> |
| 34 | | <strong tal:content="key" />: <span tal:content="python:feature.qualifiers[key][0]" /> |
| 35 | | </li> |
| 36 | | <li tal:condition="python:isinstance(feature.qualifiers[key],str)"> |
| 37 | | <strong tal:content="key" />: <span tal:content="python:feature.qualifiers[key]" /> |
| 38 | | </li> |
| 39 | | </tal:qualifiers> |
| 40 | | </ul> |
| 41 | | </td> |
| 42 | | </tr> |
| 43 | | </tal:features> |
| 44 | | </tbody> |
| 45 | | </table> |
| 46 | | </tal:featuregroup> |
| | 10 | class="listing" summary="Features" style="width:100%%"> |
| | 11 | <tal:featuregroup tal:repeat="featureaccession featureaccessiondict"> |
| | 12 | <table class="listing" summary="FeaturesAccession" style="width:100%" |
| | 13 | tal:define="features python:featureaccessiondict[featureaccession]"> |
| | 14 | <thead> |
| | 15 | <tr><th class="nosort" colspan="3" tal:content="featureaccession">feature accession</th></tr> |
| | 16 | <tr> |
| | 17 | <th class="nosort">type</th> |
| | 18 | <th class="nosort">location (sub_locations)</th> |
| | 19 | <th class="nosort">qualifiers</th> |
| | 20 | </tr> |
| | 21 | </thead> |
| | 22 | <tbody> |
| | 23 | <tal:features tal:repeat="feature features"> |
| | 24 | <tr tal:define="oddrow repeat/feature/odd; |
| | 25 | start python:'Start: ' + str(feature.location.start.position + 1); |
| | 26 | end python:'End: ' + str(feature.location.end.position);" |
| | 27 | tal:attributes="class python:(oddrow and 'even' or 'odd')"> |
| | 28 | <td><strong tal:content="feature/type" /></td> |
| | 29 | <td> |
| | 30 | <span tal:content="python:start + ' : ' + end" /> |
| | 31 | <tal:subfeatlocation tal:condition="python:feature.sub_features!=[]"> |
| | 32 | <ul tal:repeat="subfeat python:feature.sub_features"> |
| | 33 | <li tal:define="start python:'Start: ' + str(subfeat.location.start.position + 1); |
| | 34 | end python:'End: ' + str(subfeat.location.end.position);"> |
| | 35 | <span tal:content="python:'('+start + ' : ' + end + ')'" /> |
| | 36 | </li> |
| | 37 | </ul> |
| | 38 | </tal:subfeatlocation> |
| | 39 | </td> |
| | 40 | <td> |
| | 41 | <ul> |
| | 42 | <tal:qualifiers tal:repeat="key feature/qualifiers/keys"> |
| | 43 | <li tal:condition="python:isinstance(feature.qualifiers[key],list)"> |
| | 44 | <strong tal:content="key" />: |
| | 45 | <ul tal:repeat="qval python:feature.qualifiers[key]"> |
| | 46 | <li> |
| | 47 | <span tal:content="qval" /> |
| | 48 | </li> |
| | 49 | </ul> |
| | 50 | </li> |
| | 51 | <li tal:condition="python:isinstance(feature.qualifiers[key],str)"> |
| | 52 | <strong tal:content="key" />: <span tal:content="python:feature.qualifiers[key]" /> |
| | 53 | </li> |
| | 54 | </tal:qualifiers> |
| | 55 | </ul> |
| | 56 | </td> |
| | 57 | </tr> |
| | 58 | </tal:features> |
| | 59 | </tbody> |
| | 60 | </table> |
| | 61 | </tal:featuregroup> |