WEBSITE-1919 - News bar prefix is optional

This commit is contained in:
grade-zero
2019-08-29 16:16:49 +10:00
parent 197ab89ca8
commit 9476363a19
2 changed files with 5 additions and 5 deletions
+5 -3
View File
@@ -19,9 +19,11 @@
var newsLink = $(".tiny-news-link");
newsLink.attr("href", latest.url);
newsLink.text(latest.urlText);
var prefix = $(".tiny-news-prefix");
prefix.text("TINY " + latest.type.toUpperCase());
prefix.attr("href", getPrefixURL(latest.type));
if (latest.type !== undefined) {
var prefix = $(".tiny-news-prefix");
prefix.text("TINY " + latest.type.toUpperCase());
prefix.attr("href", getPrefixURL(latest.type));
}
}
function fetchLatestNews() {
-2
View File
@@ -3,9 +3,7 @@
<a href="https://go.tiny.cloud/blog/"
data-marketing="tiny-news-blog-link"
class="tiny-news-prefix">
TINY BLOG
</a>
&gt;
<span class="tiny-news-text">Important changes to Tiny Cloud pricing</span>
&gt;
<a href="https://go.tiny.cloud/blog/important-changes-to-tiny-cloud-pricing-metric/"