2022-12-29 11:51:38 +00:00
|
|
|
<h5 id="index-by-category" style="margin-bottom: 10px;">{{ .Get 1 }}</h5>
|
|
|
|
{{ $active_category := .Get 0 }}
|
|
|
|
{{ $active_status := .Get 1 }}
|
|
|
|
|
|
|
|
{{ $is_exists := 0 }}
|
|
|
|
{{ range $page := .Site.RegularPages }}
|
|
|
|
{{ if gt (len (findRE $active_status $page.Params.status)) 0 }}
|
|
|
|
{{ if gt (len (findRE (print "/" $active_category "/") $page.File)) 0 }}
|
|
|
|
{{ $is_exists = 1 }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq $is_exists 1 }}
|
2023-07-06 12:26:21 +00:00
|
|
|
<table class="table">
|
2022-12-29 11:51:38 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-07-06 12:26:21 +00:00
|
|
|
<th class="table-th">Status</th>
|
|
|
|
<th class="table-th">PEP</th>
|
|
|
|
<th class="table-th">Authors</th>
|
2022-12-29 11:51:38 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{ range $page := .Site.RegularPages }}
|
|
|
|
{{ if gt (len (findRE $active_status $page.Params.status)) 0 }}
|
|
|
|
{{ if gt (len (findRE (print "/" $active_category "/") $page.File)) 0 }}
|
|
|
|
<tr>
|
2023-07-06 12:26:21 +00:00
|
|
|
<th class="table-th status">{{ substr $page.Params.status 0 1 }}{{ substr $page.Params.type 0 1 }}
|
|
|
|
<span class="tooltiptext">{{ $page.Params.status }}, {{ $page.Params.type }}</span>
|
|
|
|
</th>
|
|
|
|
<th class="table-th">
|
2022-12-29 11:51:38 +00:00
|
|
|
<a href="{{ $page.Permalink }}">{{ $page.Title }}</a>
|
|
|
|
</th>
|
2023-07-06 12:26:21 +00:00
|
|
|
<th class="table-th">
|
|
|
|
<div class="authors">
|
|
|
|
{{ if (isset $page.Params.author 0) }}
|
|
|
|
{{ range $elem_index, $elem_val := $page.Params.author }}
|
|
|
|
{{ $initialEmail := delimit (findRE `<.*@.*>` $elem_val) "" }}
|
|
|
|
{{ $initialLogin := delimit (findRE `\(@.*\)` $elem_val) "" }}
|
|
|
|
{{ $initialLink := delimit (findRE `\([^@].*\)` $elem_val) "" }}
|
|
|
|
{{ $nameWithoutEmail := trim (substr $elem_val 0 (sub (len $elem_val) (len $initialEmail))) " " }}
|
|
|
|
{{ $nameWithoutLogin := trim (substr $elem_val 0 (sub (len $elem_val) (len $initialLogin))) " " }}
|
|
|
|
{{ $nameWithoutLink := trim (substr $elem_val 0 (sub (len $elem_val) (len $initialLink))) " " }}
|
|
|
|
|
|
|
|
<span class="author-name">
|
|
|
|
{{ if $initialEmail }}
|
|
|
|
{{ $nameWithoutEmail }}
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{ $email := slicestr $initialEmail 1 (sub (len $initialEmail) 1) }}
|
|
|
|
<div class="author-contact">
|
|
|
|
<i class="ti-email"></i>
|
|
|
|
<a href="mailto:{{ $email }}">{{ $email }}</a>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
{{ else if ($initialLogin) }}
|
|
|
|
{{ $nameWithoutLogin }}
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{ $login := slicestr $initialLogin 1 (sub (len $initialLogin) 1) }}
|
|
|
|
{{ $linkLogin := trim $login "@" }}
|
|
|
|
<div class="author-contact">
|
|
|
|
<i class="ti-link"></i>
|
|
|
|
<a href="https://git.frostfs.info/{{ $linkLogin }}" target="_blank">{{ $login }}</a>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
{{ else if ($initialLink) }}
|
|
|
|
{{ $nameWithoutLink }}
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{ $link := slicestr $initialLink 1 (sub (len $initialLink) 1) }}
|
|
|
|
<div class="author-contact">
|
|
|
|
<i class="ti-new-window"></i>
|
|
|
|
<a href="https://{{ $link }}" target="_blank">{{ $link }}</a>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
{{ else }}
|
|
|
|
{{ $elem_val }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ if gt (sub (len $page.Params.author) 1) $elem_index }}
|
|
|
|
<span class="author-delimiter">, </span>
|
|
|
|
{{end}}
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $initialEmail := delimit (findRE `<.*@.*>` $page.Params.author) "" }}
|
|
|
|
{{ $initialLogin := delimit (findRE `\(@.*\)` $page.Params.author) "" }}
|
|
|
|
{{ $initialLink := delimit (findRE `\([^@].*\)` $page.Params.author) "" }}
|
|
|
|
{{ $nameWithoutEmail := trim (substr $page.Params.author 0 (sub (len $page.Params.author) (len $initialEmail))) " " }}
|
|
|
|
{{ $nameWithoutLogin := trim (substr $page.Params.author 0 (sub (len $page.Params.author) (len $initialLogin))) " " }}
|
|
|
|
{{ $nameWithoutLink := trim (substr $page.Params.author 0 (sub (len $page.Params.author) (len $initialLink))) " " }}
|
|
|
|
|
|
|
|
<span class="author-name">
|
|
|
|
{{ if $initialEmail }}
|
|
|
|
{{ $nameWithoutEmail }}
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{ $email := slicestr $initialEmail 1 (sub (len $initialEmail) 1) }}
|
|
|
|
<div class="author-contact">
|
|
|
|
<i class="ti-email"></i>
|
|
|
|
<a href="mailto:{{ $email }}">{{ $email }}</a>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
{{ else if ($initialLogin) }}
|
|
|
|
{{ $nameWithoutLogin }}
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{ $login := slicestr $initialLogin 1 (sub (len $initialLogin) 1) }}
|
|
|
|
{{ $linkLogin := trim $login "@" }}
|
|
|
|
<div class="author-contact">
|
|
|
|
<i class="ti-link"></i>
|
|
|
|
<a href="https://git.frostfs.info/{{ $linkLogin }}" target="_blank">{{ $login }}</a>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
{{ else if ($initialLink) }}
|
|
|
|
{{ $nameWithoutLink }}
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{ $link := slicestr $initialLink 1 (sub (len $initialLink) 1) }}
|
|
|
|
<div class="author-contact">
|
|
|
|
<i class="ti-new-window"></i>
|
|
|
|
<a href="https://{{ $link }}" target="_blank">{{ $link }}</a>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
{{ else }}
|
|
|
|
{{ $page.Params.author }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</th>
|
2022-12-29 11:51:38 +00:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{ else }}
|
|
|
|
<p>Not found</p>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|