diff --git a/source/templates/repository/partials/crypto.ejs b/source/templates/repository/partials/crypto.ejs new file mode 100644 index 00000000..f98963f4 --- /dev/null +++ b/source/templates/repository/partials/crypto.ejs @@ -0,0 +1,68 @@ +<% if (plugins.crypto) { %> +
+

+ + <%= plugins.crypto.symbol ? `${plugins.crypto.symbol?.toUpperCase()}` : "" %> +

+ <% if (plugins.crypto.error) { %> +
+
+
+ + + + <%= plugins.crypto.error.message %> +
+
+
+ <% } else { %> +
+
+
+ + + + <%= `${plugins.crypto.current_price.toFixed(plugins.crypto.precision || 2) } ${plugins.crypto.vs_currency?.toUpperCase()}` %> +
+
+
+
+ + + + <%= plugins.crypto.days %> +
+
+
+
+ <% if (plugins.crypto.price_change_percentage_24h > 0) { %> + + + + <% } else { %> + + + + <% } %> <%= plugins.crypto.price_change_percentage_24h ?plugins.crypto.price_change_percentage_24h.toFixed(2) : 0 %>% +
+
+
+
<%- plugins.crypto.chart %>
+ <% } %> +
+<% } %>