+
diff --git a/app/assets/stylesheets/common/admin/admin_base.scss b/app/assets/stylesheets/common/admin/admin_base.scss
index fa689540537..dc7e990616d 100644
--- a/app/assets/stylesheets/common/admin/admin_base.scss
+++ b/app/assets/stylesheets/common/admin/admin_base.scss
@@ -1473,20 +1473,20 @@ table#user-badges {
// Permalinks
.permalinks {
- .url, .topic_id, .category_id, .external_url {
+ .url, .topic, .category, .external_url, .post {
text-overflow: ellipsis;
white-space: nowrap;
}
.url {
width: 200px;
}
- .topic_id, .external_url {
- width: 220px;
+ .topic, .post, .external_url {
+ width: 180px;
}
- .category_id {
- width: 160px;
+ .category {
+ width: 140px;
}
- .action, .post_id {
+ .action {
text-align: center;
width: 8%;
}
diff --git a/app/serializers/permalink_serializer.rb b/app/serializers/permalink_serializer.rb
index 3a7440888ec..98f2062f795 100644
--- a/app/serializers/permalink_serializer.rb
+++ b/app/serializers/permalink_serializer.rb
@@ -1,5 +1,5 @@
class PermalinkSerializer < ApplicationSerializer
- attributes :id, :url, :topic_id, :topic_title, :topic_url, :post_id, :post_url, :category_id, :category_name, :category_url, :external_url
+ attributes :id, :url, :topic_id, :topic_title, :topic_url, :post_id, :post_url, :post_number, :post_topic_title, :category_id, :category_name, :category_url, :external_url
def topic_title
object.try(:topic).try(:title)
@@ -13,6 +13,14 @@ class PermalinkSerializer < ApplicationSerializer
object.try(:post).try(:url)
end
+ def post_number
+ object.try(:post).try(:post_number)
+ end
+
+ def post_topic_title
+ object.try(:post).try(:topic).try(:title)
+ end
+
def category_name
object.try(:category).try(:name)
end
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 4b6020abf9a..d8f30a30749 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -2447,8 +2447,11 @@ en:
title: "Permalinks"
url: "URL"
topic_id: "Topic ID"
+ topic_title: "Topic"
post_id: "Post ID"
+ post_title: "Post"
category_id: "Category ID"
+ category_title: "Category"
external_url: "External URL"
delete_confirm: Are you sure you want to delete this permalink?
form: