Skip to content

Commit

Permalink
Made grid col filter use its own template instead of that from XLR.
Browse files Browse the repository at this point in the history
-  The template in XLR moved around and this plugin should be independent of XLR version.
  • Loading branch information
xebialabs-se committed Nov 27, 2017
1 parent 88507bd commit 9a10b0e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
Copyright 2017 XEBIALABS
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<div class="ui-grid-filter-container">
<div class="left-inner-addon ">
<i class="glyphicon glyphicon-search"></i>
<input type="text" class="form-control" ng-model="col.filters[0].term" focus-on="grid.appScope.vm.selectedFolder" placeholder="Filter…"/>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,20 @@
}

function createSummaryGridOptions(xldeployData) {
var filterHeaderTemplate = "<div data-ng-include=\"'partials/releases/grid/templates/name-filter-template.html'\"></div>";
var columnDefs = [
{
displayName: "Application",
field: "application",
cellTemplate: "static/@project.version@/include/XLDVersionsTile/grid/application.html",
filterHeaderTemplate: filterHeaderTemplate,
filterHeaderTemplate: "static/@project.version@/include/XLDVersionsTile/grid/name-filter-template.html",
enableColumnMenu: false,
width: '50%'
},
{
displayName: "Version",
field: "version",
cellTemplate: "static/@project.version@/include/XLDVersionsTile/grid/version.html",
filterHeaderTemplate: filterHeaderTemplate,
filterHeaderTemplate: "static/@project.version@/include/XLDVersionsTile/grid/name-filter-template.html",
enableColumnMenu: false,
width: '50%'
}
Expand Down

0 comments on commit 9a10b0e

Please sign in to comment.