diff --git a/controllers/document.go b/controllers/document.go
index f5b0d9b8..02c3e15b 100644
--- a/controllers/document.go
+++ b/controllers/document.go
@@ -226,8 +226,12 @@ func (c *DocumentController) Read() {
if doc.ModifyTime != doc.CreateTime {
docInfo += ";更新于 "
docInfo += doc.ModifyTime.Format("2006-01-02 15:04")
+ if strings.TrimSpace(doc.Release) != "" {
+ doc.Release += "
文档更新时间: " + doc.ModifyTime.Format("2006-01-02 15:04") + "
";
+ }
}
+
if c.IsAjax() {
var data struct {
DocTitle string `json:"doc_title"`
diff --git a/static/css/kancloud.css b/static/css/kancloud.css
index ccea3496..2ef74f44 100644
--- a/static/css/kancloud.css
+++ b/static/css/kancloud.css
@@ -475,6 +475,15 @@ table>tbody>tr:hover{
border-top: 1px solid #DDDDDD;
padding-top: 15px;
}
+.manual-article .wiki-bottom{
+ border-top: 1px solid #E5E5E5;
+ line-height: 25px;color: #333;
+ text-align:right;
+ font-size: 12px;
+ margin-bottom: 20px;
+ margin-top: 30px;
+ padding: 5px;
+}
.manual-article .jump-top .view-backtop{
position: fixed;
bottom: -30px;
diff --git a/static/css/markdown.preview.css b/static/css/markdown.preview.css
index f82a07a2..37305702 100644
--- a/static/css/markdown.preview.css
+++ b/static/css/markdown.preview.css
@@ -1,15 +1,53 @@
/*************表格样式****************/
-
-.editormd-preview-container table thead tr{
- background-color: #0088CC;
- color: #ffffff;
+.editormd-preview-container table {
+ margin-top: 0;
+ margin-bottom: 24px;
+ width: 100%;
+ overflow: auto;
+ border-bottom: none;
+ line-height: 1.5
}
-.editormd-preview-container table tr:nth-child(2n) {
- background-color: #f8f8f8
+
+.editormd-preview-container table td,.editormd-preview-container table th {
+ padding: 8px 13px;
+ border: 1px solid #d9d9d9;
+ word-wrap: break-word;
+ text-align: left
}
.editormd-preview-container-body blockquote,.editormd-preview-container blockquote p {
font-size: 14px;
- color: #999
+ color: #999;
+}
+.editormd-preview-container blockquote, .editormd-html-preview blockquote{
+ font-style: normal;
+}
+.editormd-preview-container table th {
+ background-color: #f2f2f2;
+ color: #333;
+ font-weight: 400;
+ word-break: keep-all
+}
+
+.editormd-preview-container table tr {
+ background-color: #fff
+}
+.editormd-preview-container code {
+ padding: .2em 0;
+ margin-left: 3px;
+ margin-right: 3px;
+ background-color: #eee;
+ border-radius: 3px;
+ font-size: 1em;
+ font-family: Consolas,"Liberation Mono",Menlo,Courier,'Microsoft Yahei',monospace;
+ border: 0;
+ color: #555;
+ word-break: break-all;
+}
+
+/**************TOC*******************/
+.markdown-toc{
+ padding: 16px 11px 4px;
+ border: 1px solid #f0f0f0;
}
/***********代码样式*****************/
.markdown-body .highlight pre, .markdown-body pre{