WEBSITE-1919 - News bar prefix is optional
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
<a href="https://go.tiny.cloud/blog/"
|
||||
data-marketing="tiny-news-blog-link"
|
||||
class="tiny-news-prefix">
|
||||
TINY BLOG
|
||||
</a>
|
||||
>
|
||||
<span class="tiny-news-text">Important changes to Tiny Cloud pricing</span>
|
||||
>
|
||||
<a href="https://go.tiny.cloud/blog/important-changes-to-tiny-cloud-pricing-metric/"
|
||||
|
||||
Reference in New Issue
Block a user