Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. <fr:datatable width="100%" scrollable="vertical" height="300px">
  2. <xhtml:thead>
  3. <xhtml:tr>
  4. <xhtml:th fr:sortable="true" fr:sortKey="number(tokenize(@id,'.')[last()])" fr:sortType="number" fr:resizeable="true">
  5. <xforms:output ref="$resources/id"/>
  6. </xhtml:th>
  7. <xhtml:th fr:sortable="true" fr:resizeable="true">
  8. <xforms:output ref="$resources/issue"/>
  9. </xhtml:th>
  10. <xhtml:th fr:sortable="true" fr:sortKey="@currentStatusCode" fr:resizeable="true">
  11. <xforms:output ref="$resources/status"/>
  12. </xhtml:th>
  13. <xhtml:th fr:sortable="true" fr:sortKey="@priority" fr:resizeable="true">
  14. <xforms:output ref="$resources/priority"/>
  15. </xhtml:th>
  16. <xhtml:th fr:sortable="true" fr:sortKey="@type" fr:resizeable="true">
  17. <xforms:output ref="$resources/type"/>
  18. </xhtml:th>
  19. <xhtml:th fr:sortable="true" fr:resizeable="true">
  20. <xforms:output ref="$resources/date"/>
  21. </xhtml:th>
  22. <xhtml:th fr:sortable="true" fr:sorted="ascending" fr:resizeable="true">
  23. <xforms:output ref="$resources/assigned-to"/>
  24. </xhtml:th>
  25. <xhtml:th fr:sortable="true" fr:sortKey="(assignment|tracking)[1]/string(@labels)" fr:resizeable="true">
  26. <xforms:output ref="$resources/label"/>
  27. </xhtml:th>
  28. </xhtml:tr>
  29. </xhtml:thead>
  30. <xhtml:tbody>
  31. <xhtml:tr repeat-nodeset="instance('issues-instance')/issue[if (string-length(instance('selected-issue-id'))>0) then (tokenize(@id,'.')[last()]=instance('selected-issue-id')) else (@currentStatusCode=tokenize(instance('selected-status-codes'),' ') and @type=tokenize(instance('selected-issue-types'),' ') and (instance('selected-issue-priorities')='' or @priority=tokenize(instance('selected-issue-priorities'),' ')) and (instance('selected-issue-labels')='' or tokenize(@currentLabels,'s')=tokenize(instance('selected-issue-labels'),'s')) and (instance('selected-issue-assignee')='' or (instance('selected-issue-assignee')='#UNASSIGNED#' and string-length(@lastAssignment)=0) or @lastAssignment=instance('selected-issue-assignee')) and @id=instance('issue-search-results')/issue/@id)]" id="open-issue-table">
  32. <xxforms:variable name="type" select="@type"/>
  33. <xhtml:td>
  34. <xforms:output ref="tokenize(@id,'.')[last()]"/>
  35. </xhtml:td>
  36. <xhtml:td>
  37. <xforms:output ref="@displayName"/>
  38. </xhtml:td>
  39. <xhtml:td>
  40. <xxforms:variable name="currentStatusCode" select="@currentStatusCode"/>
  41. <xforms:output ref="instance('decor-types')/IssueStatusCodeLifeCycle/enumeration[@value=$currentStatusCode]/label[@language=$resources/@xml:lang]"/>
  42. </xhtml:td>
  43. <xhtml:td>
  44. <xxforms:variable name="priority" select="@priority"/>
  45. <xforms:output ref="instance('decor-types')/IssuePriority/enumeration[@value=$priority]/label[@language=$resources/@xml:lang]"/>
  46. </xhtml:td>
  47. <xhtml:td>
  48. <xxforms:variable name="itype" select="@type"/>
  49. <xforms:output ref="instance('decor-types')/IssueType/enumeration[@value=$itype]/label[@language=$resources/@xml:lang]"/>
  50. </xhtml:td>
  51. <xhtml:td>
  52. <xforms:output ref="@lastDate" xxforms:format="format-dateTime(.,'[Y]-[M01]-[D01]', (), (), ())"/>
  53. </xhtml:td>
  54. <xhtml:td>
  55. <xforms:output ref="@lastAssignment"/>
  56. </xhtml:td>
  57. <xhtml:td>
  58. <!--xforms:output ref="tracking/@labels[1]"/-->
  59. <xforms:repeat nodeset="tokenize(@currentLabels, 's')" class="not-selectable">
  60. <xxforms:variable name="selectedLabelCode" select="."/>
  61. <xxforms:variable name="selectedLabelColor" select="instance('project-instance')/labels/label[@code=$selectedLabelCode]/@color"/>
  62. <xxforms:variable name="selectedLabelName" select="instance('project-instance')/labels/label[@code=$selectedLabelCode]/@name"/>
  63. <xhtml:div class="labelouterbox" title="{$selectedLabelName}">
  64. <xhtml:div style="background-color:{$selectedLabelColor}; padding-left: 7px; float: left;">&#160;</xhtml:div>
  65. <xhtml:div style="background-color: white;float: left;">
  66. <xforms:output ref="concat('&#160;',$selectedLabelCode,'&#160;')"/>
  67. </xhtml:div>
  68. </xhtml:div>
  69. </xforms:repeat>
  70. </xhtml:td>
  71. </xhtml:tr>
  72. </xhtml:tbody>
  73. <xforms:action ev:event="fr-selection-changed">
  74. <xforms:setvalue ref="instance('selected-issue')/selected" value="event('selected')/@id"/>
  75. <xforms:send submission="get-issue-details-submission"/>
  76. </xforms:action>
  77. </fr:datatable>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement