Skip to content

Commit

Permalink
Merge pull request #318 from Yashsharma1911/yash/dontRenderFirstRow
Browse files Browse the repository at this point in the history
Skip first row of csv to render for permission page
  • Loading branch information
Yashsharma1911 committed Jul 5, 2024
2 parents 4f92460 + 2017f36 commit b0818cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/shortcodes/csvtable.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{ $uniqueCategories := slice }}

{{ range $i, $row := $data }}
{{ if gt $i 0 }}
{{ if gt $i 1 }}
{{ $category := trim (index $row 0) " " }}
{{ if not (in $uniqueCategories $category) }}
{{ $uniqueCategories = $uniqueCategories | append $category }}
Expand All @@ -28,7 +28,7 @@ <h2>{{ $category }} Permissions</h2>
<table class="csvtable td-initial">
<thead>
<tr>
{{ range $i, $col := index $data 0 }}
{{ range $i, $col := index $data 1 }}
{{ if and (not (in $excludedColumns $i)) (or (eq $i 0) (ne $i 1) (ne $i 2)) }}
{{ if and (eq $i 1) }}
<th>Permission</th>
Expand Down

0 comments on commit b0818cd

Please sign in to comment.