diff --git a/apps/static/js/home/content.js b/apps/static/js/home/content.js
index 17a01eb..db9da15 100644
--- a/apps/static/js/home/content.js
+++ b/apps/static/js/home/content.js
@@ -34,6 +34,7 @@ function initContentTable() {
{
title: "Name",
data: "title",
+ className: "text-truncate",
render: function(data, type, row) {
return `${data}`
}
@@ -41,6 +42,7 @@ function initContentTable() {
{
title: "Subscription",
data: "subscription.name",
+ className: "text-nowrap",
render: function(data, type, row) {
return `${data}`
}
@@ -56,6 +58,7 @@ function initContentTable() {
{
title: "Created",
data: "creation_datetime",
+ className: "text-nowrap",
render: function(data, type) {
return `${new Date(data).toISOString().replace('T', ' ยท ').replace(/\.\d+Z$/, '')}`;
}
diff --git a/apps/static/js/home/subscriptions.js b/apps/static/js/home/subscriptions.js
index 2f87f8d..590f525 100644
--- a/apps/static/js/home/subscriptions.js
+++ b/apps/static/js/home/subscriptions.js
@@ -34,18 +34,26 @@ function initSubscriptionTable() {
{
title: "Name",
data: "name",
+ className: "text-truncate",
render: function(data, type, row) {
- return `${data}`
+ return `${data}`;
}
},
{
title: "URL",
data: "url",
+ className: "text-truncate",
render: function(data, type) {
- return `${data}`
+ return `${data}`;
+ }
+ },
+ {
+ title: "Channels",
+ data: "channels_count",
+ render: function(data) {
+ return `${data}`;
}
},
- { title: "Channels", data: "channels_count" },
// {
// title: "Content",
// data: "channels_count",
@@ -56,6 +64,7 @@ function initSubscriptionTable() {
{
title: "Created",
data: "creation_datetime",
+ className: "small",
render: function(data, type) {
return new Date(data).toISOString().split("T")[0];
}
@@ -66,8 +75,9 @@ function initSubscriptionTable() {
orderable: false,
className: "text-center",
render: function(data, type) {
- if (!data) return "-";
- return $(``).popover()[0];
+ if (!data) return "";
+ return $(`
+ `).popover()[0];
}
},
{