diff --git a/media/css/seahub.css b/media/css/seahub.css
index 8e90f13ecf..17b4879043 100644
--- a/media/css/seahub.css
+++ b/media/css/seahub.css
@@ -1074,6 +1074,10 @@ textarea:-moz-placeholder {/* for FF */
.details-panel {
width:320px;
}
+.details-panel-item-name {
+ display:inline-block;
+ max-width:215px;
+}
.details-panel-img-container {
text-align:center;
height:160px;
diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html
index 0d635d49c1..db511d0262 100644
--- a/seahub/templates/js/templates.html
+++ b/seahub/templates/js/templates.html
@@ -777,7 +777,7 @@
+ <% if (dirent.is_file) { %>
|
|
-
- <% if (dirent.is_file) { %>
{% trans "Size" %} |
<%= dirent.file_size %> |
- <% } else { %>
+
+ {% trans "Location" %} |
+ <%- path %> |
+
+ <% if (dirent.last_modified) { %>
+
+ {% trans "Last Update" %} |
+ <%= dirent.last_update %> |
+
+ <% } %>
+
+
+ <% } else { %>
+
+
+
+
+ |
+ |
+
{% trans "Folders" %} |
|
{% trans "Files" %} |
- |
+ |
{% trans "Size" %} |
|
- <% } %>
{% trans "Location" %} |
@@ -828,8 +845,8 @@
<% } %>
+ <% } %>
-
diff --git a/static/scripts/app/views/dirent-details.js b/static/scripts/app/views/dirent-details.js
index a197fbbc7d..745dce7a1f 100644
--- a/static/scripts/app/views/dirent-details.js
+++ b/static/scripts/app/views/dirent-details.js
@@ -45,13 +45,15 @@ define([
},
update: function(part_data) {
- if (part_data.error) {
- this.$('.dir-folder-counts, .dir-file-counts, .dir-size')
- .html('