Skip to content

Commit

Permalink
feat: Update badge urls (#4888)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilayda-cp authored Oct 16, 2024
1 parent 679b616 commit 1e39e0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions templates/publisher/publicise/store_buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h4>Promote your snap using Snap Store badges</h4>
<div class="col-7">
<div class="p-code-snippet">
<pre class="p-code-snippet__block"><code id="snippet-{{ lang }}-black-html">&lt;a href="https://snapcraft.io/{{ snap_name }}"&gt;
&lt;img alt="{{ data.text }}" src="https://snapcraft.io/static/images/badges/{{ lang }}/snap-store-black.svg" /&gt;
&lt;img alt="{{ data.text }}" src="https://snapcraft.io/{{ lang }}/dark/install.svg" /&gt;
&lt;/a&gt;</code></pre>
</div>
</div>
Expand All @@ -65,7 +65,7 @@ <h4>Promote your snap using Snap Store badges</h4>
</div>
<div class="col-7">
<div class="p-code-snippet">
<pre class="p-code-snippet__block is-wrapped"><code id="snippet-{{ lang }}-black-md">[![{{ data.text }}](https://snapcraft.io/static/images/badges/{{ lang }}/snap-store-black.svg)](https://snapcraft.io/{{ snap_name }})</code></pre>
<pre class="p-code-snippet__block is-wrapped"><code id="snippet-{{ lang }}-black-md">[![{{ data.text }}](https://snapcraft.io/{{ lang }}/dark/install.svg)](https://snapcraft.io/{{ snap_name }})</code></pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -98,7 +98,7 @@ <h4>Promote your snap using Snap Store badges</h4>
<div class="col-7">
<div class="p-code-snippet">
<pre class="p-code-snippet__block"><code id="snippet-{{ lang }}-white-html">&lt;a href="https://snapcraft.io/{{ snap_name }}"&gt;
&lt;img alt="{{ data.text }}" src="https://snapcraft.io/static/images/badges/{{ lang }}/snap-store-white.svg" /&gt;
&lt;img alt="{{ data.text }}" src="https://snapcraft.io/{{ lang }}/light/install.svg" /&gt;
&lt;/a&gt;</code></pre>
</div>
</div>
Expand All @@ -110,7 +110,7 @@ <h4>Promote your snap using Snap Store badges</h4>
</div>
<div class="col-7">
<div class="p-code-snippet">
<pre class="p-code-snippet__block is-wrapped"><code id="snippet-{{ lang }}-white-md">[![{{ data.text }}](https://snapcraft.io/static/images/badges/{{ lang }}/snap-store-white.svg)](https://snapcraft.io/{{ snap_name }})</code></pre>
<pre class="p-code-snippet__block is-wrapped"><code id="snippet-{{ lang }}-white-md">[![{{ data.text }}](https://snapcraft.io/{{ lang }}/light/install.svg)](https://snapcraft.io/{{ snap_name }})</code></pre>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/store/snap-embedded-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h4 class="p-embedded-description__summary">{{ summary }}</h4>
{% endif %}
{% if button %}
<div class="p-embedded-description__badge">
<img alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-{{ button }}.svg" />
<img alt="Get it from the Snap Store" src="https://snapcraft.io/en/{% if button == 'white' %}light{% else %}dark{% endif %}/install.svg" />
</div>
{% endif %}
</div>
Expand Down

0 comments on commit 1e39e0f

Please sign in to comment.