Skip to content

Commit

Permalink
add donation block to download
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Nov 28, 2024
1 parent 3d42df1 commit 346e1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/views/action/download_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
var wgetCmd = `wget -c -O "${file}" -t 20 "${url}"`;
</script>
{{- if .Claims | hasAds }}
<pre class="warn-summary"><span>Your current download speed will be limited to {{ .Claims.Claims.Connection.Rate }}Mbps, <a href="/donate" class="link" target="_blank">donate</a> to increase your speed and remove ads!</span></pre>
<pre class="warn-summary"><span>Your current download speed will be limited to {{ .Claims.Claims.Connection.Rate }}Mbps, <a href="/donate" data-umami-event="donate-download-link" class="link" target="_blank">donate</a> to increase your speed and remove ads!</span></pre>
{{- end }}
<div class="pt-3 ml-3 flex flex-wrap justify-end">
{{- if .Claims | hasAds }}
<a class="btn btn-sm btn-accent btn-outline m-2 uppercase flex-grow" href="/donate" target="_blank">
<a class="btn btn-sm btn-accent btn-outline m-2 uppercase flex-grow" data-umami-event="donate-download" href="/donate" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"></path>
</svg>
Expand Down

0 comments on commit 346e1bf

Please sign in to comment.