diff --git a/test3 b/test3 index 54386b7..8fbbf1e 100644 --- a/test3 +++ b/test3 @@ -15,18 +15,51 @@ fds af asdfasdf asdfasdf -asd -fas -df -asdf -asd -f -asdf -asd -f -asdf -asd -fas +a{{if and $.root.SignedUserID (not $.Repository.IsArchived)}} +
+{{end}} + df asd fa diff --git a/test4 b/test4 index 30d74d2..048862b 100644 --- a/test4 +++ b/test4 @@ -1 +1,59 @@ -test \ No newline at end of file +test +{{.RowIdx}} | + {{range $j, $cell := $row.Cells}} + {{if not $cell}} ++ {{else if eq $cell.Type 2}} + | {{.LeftCell}} {{.RightCell}} | + {{else if eq $cell.Type 3}} +{{.RightCell}} | + {{else if eq $cell.Type 4}} +{{.LeftCell}} | + {{else if eq $cell.Type 5}} +{{.RightCell}} | + {{else if eq $cell.Type 6}} +{{.LeftCell}} {{.RightCell}} | + {{else}} +{{.RightCell}} | + {{end}} + {{end}} + {{else}} +{{if .RowIdx}}{{.RowIdx}}{{end}} | + {{range $j, $cell := $row.Cells}} + {{if not $cell}} ++ {{else if eq $cell.Type 2}} + | {{.LeftCell}} {{.RightCell}} | + {{else if eq $cell.Type 3}} +{{.RightCell}} | + {{else if eq $cell.Type 4}} +{{.LeftCell}} | + {{else if eq $cell.Type 5}} +{{.RightCell}} | + {{else if eq $cell.Type 6}} +{{.LeftCell}} {{.RightCell}} | + {{else}} +{{.RightCell}} | + {{end}} + {{end}} + {{end}} +
---|