Shortcodes
Labels
Attribute |
Description |
name (required) |
Name for the label. Scoped labels are automatically handled |
color (optional) |
Hex color code for the label, defaults to #428BCA |
light (optional) |
Only required for light colors to make the label text dark |
Unscoped labels
1
2
|
{{< label name="Category:Container Registry" >}}
{{< label name="default-priority" color="#FFECDB" light="true" >}}
|
Category:Container Registry
default-priority
Scoped labels
1
2
|
{{< label name="priority::1" color="#cc0000" >}}
{{< label name="Department::Product Security Engineering" color="#69d100" light="true" >}}
|
priority
1
Department
Product Security Engineering
Examples
KPI Summary
1
|
{{< performance-indicators/summary org="example" is_key=true />}}
|
Regular PI Summary
1
|
{{< performance-indicators/summary org="example" is_key=false />}}
|
1
|
{{< performance-indicators/list org="example" is_key=true />}}
|
KIP Description
- KPI Reason 1
- KPI Reason 2
Target: 100
URL(s)
1
|
{{< performance-indicators/list org="example" is_key=false />}}
|
PI example description
Target: 50
Tableau Embeds
tableau
Note: Any other named parameters are added as additional attributes on the <tableau-viz>
element.
src
: URL of visualization to embed
height
: default: 400px
toolbar
: visible | hidden
, default: hidden
hide-tabs
: true | false
, default: false
Examples
1
|
{{< tableau "https://us-west-2b.online.tableau.com/t/gitlabpublic/views/OKR4_7EngKPITest/PastDueSecurityIssues" />}}
|
1
2
3
4
|
{{< tableau height="600px" toolbar="visible" src="https://us-west-2b.online.tableau.com/t/gitlabpublic/views/OKR4_7EngKPITest/PastDueSecurityIssues" >}}
{{< tableau/filters "Subtype Label"="bug::vulnerability" />}}
{{< tableau/params "Severity Select"="S2" />}}
{{< /tableau >}}
|
1
2
3
|
{{< tableau src="https://10az.online.tableau.com/t/gitlab/views/OKR4_7EngKPITest/PastDueInfraDevIssues" >}}
{{< tableau/filters "Subtype Label"="bug::vulnerability" />}}
{{< /tableau >}}
|
tableau/filters
Renders a viz-filter
element for each of the key/value pairs passed as parameters.
1
|
{{< tableau/filters filter1="value1" filter2="value2" >}}
|
1
2
|
<viz-filter field="filter1" value="value1"></viz-filter>
<viz-filter field="filter2" value="value2"></viz-filter>
|
tableau/params
Renders a viz-parameter
element for each of the key/value pairs passed as parameters.
1
|
{{< tableau/params param1="value1" param2="value2" >}}
|
1
2
|
<viz-parameter name="param1" value="value1"></viz-parameter>
<viz-parameter name="param2" value="value2"></viz-parameter>
|
user
: X/Twitter username
id
: tweet ID
Examples
1
|
{{< tweet user="sytses" id="1250946875143815168" />}}
|