Skip to content

Commit

Permalink
product and source names match - standard attributes - [WEB-4573] (Da…
Browse files Browse the repository at this point in the history
…taDog#22092)

* product and source names match

* uppercase tooltips
  • Loading branch information
StefonSimmons authored Mar 7, 2024
1 parent 3631cc9 commit 99054df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions layouts/standard-attributes/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1 id="pagetitle">{{ .Title }}</h1>
// Determines table-row display
// Compares search values and filter values against attributes info (dataset)
const datasetArr = dataset.split(';')
const productValues = datasetArr[0].replaceAll('icon-', '').replace('log', 'logs')
const productValues = datasetArr[0].replaceAll('icon-', '').replace('log', 'log management')
const searchValues = this.searchValue.split(' ')
const containsFilteredValue = productValues.includes(this.filterValue) // checks product attrs in dataset
Expand Down Expand Up @@ -109,7 +109,7 @@ <h1 id="pagetitle">{{ .Title }}</h1>
{{ range $idx, $el := .product_source }}
{{ if in . "icon-"}}
{{ $product := (substr . 5) }}
{{ partial "icon" (dict "name" $product "size" "18px" "color" "#7c3eb9" "title" (cond (eq $product "log") (printf "%ss" $product) $product) )}}
{{ partial "icon" (dict "name" $product "size" "18px" "color" "#7c3eb9" "title" ((cond (eq $product "log") (printf "%s management" $product) $product) | upper) )}}

{{ else if in (slice "android" "ios" "flutter" "roku") . }}
{{/* Local partial */}}
Expand All @@ -118,13 +118,13 @@ <h1 id="pagetitle">{{ .Title }}</h1>
{{/* Get integration logos for android, ios, roku, and flutter */}}
{{ $int_logo := partialCached "integrations-logo.html" (dict "context" $ctx "basename" . "variant" "avatar") . "avatar" }}
{{ if $int_logo }}
<img src="{{ $int_logo }}" height="18" alt="{{$int_logo}}" title="{{ . }}" data-bs-toggle="tooltip" data-bs-placement="top"/>
<img src="{{ $int_logo }}" height="18" alt="{{$int_logo}}" title='{{ (printf "rum %s" .) | upper }}' data-bs-toggle="tooltip" data-bs-placement="top"/>
{{ end }}
{{ else if eq . "browser" }}
{{/* Local partial */}}
{{ partial "throw-error" (dict "ctx_product_source" $ctx_product_source "ctx_file_path" $ctx.File.Path) }}

{{ partial "icon" (dict "name" . "size" "18px" "color" "#7c3eb9" "title" .)}}
{{ partial "icon" (dict "name" . "size" "18px" "color" "#7c3eb9" "title" ((printf "rum %s" .) | upper))}}

{{ end }}
{{ end }}
Expand Down Expand Up @@ -154,7 +154,7 @@ <h1 id="pagetitle">{{ .Title }}</h1>
{{ end }}
{{ $sortedProduct := (split (replaceRE `icon-` "" (delimit $products " ")) " ") | sort }}
{{ range $sortedProduct }}
{{ $product := cond (eq . "log") (printf "%ss" .) .}}
{{ $product := cond (eq . "log") (printf "%s management" .) .}}
<button
@click="filterValue = '{{ $product }}'; pushState()"
class="filter-btn mb-1 me-1 btn btn-sm-tag btn-outline-secondary"
Expand Down

0 comments on commit 99054df

Please sign in to comment.