mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 06:14:53 +00:00
Add badge for Netlify preview builds
This commit is contained in:
parent
b18faf05c1
commit
036c16728b
17
editions/tw5.com/tiddlers/system/netlify-build-badge.tid
Normal file
17
editions/tw5.com/tiddlers/system/netlify-build-badge.tid
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
title: $:/_tw5.com/netlify-build-badge
|
||||||
|
tags: $:/tags/SideBarSegment
|
||||||
|
list-after: $:/core/ui/SideBarSegments/site-subtitle
|
||||||
|
|
||||||
|
<% if [{$:/build}prefix[NETLIFY-BUILD]] %>
|
||||||
|
<p>
|
||||||
|
<div class="tc-scary-warning" style="display: flex;gap: 0.5em;padding: 1em;margin-right: 1em;align-items: center;">
|
||||||
|
<div style="">
|
||||||
|
<a href="https://www.netlify.com" rel="noopener noreferrer" target="_blank"><img src="https://www.netlify.com/v3/img/components/netlify-light.svg" alt="Deploys by Netlify" /></a>
|
||||||
|
</div>
|
||||||
|
<div style="">
|
||||||
|
This is a preview build of the pull request <a href={{{ [{$:/build}split[|]nth[5]addprefix[https://github.com/TiddlyWiki/TiddlyWiki5/pull/]] }}} rel="noopener noreferrer" target="_blank">#<$text text={{{ [{$:/build}split[|]nth[5]] }}}/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</p>
|
||||||
|
<% endif %>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user