diff --git a/.gitignore b/.gitignore
index e091af4b1c..059f75f92f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -252,4 +252,5 @@ paket-files/
*.sln.iml
# ABP
-build/outputs
\ No newline at end of file
+build/outputs
+src/AbpDesk/AbpDesk.Web.Mvc/Logs
\ No newline at end of file
diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml
index fd4730b7e9..7c97a9306f 100644
--- a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml
+++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml
@@ -2,6 +2,10 @@
@foreach (var post in Model)
{
@@ -13,11 +17,13 @@
}
else
{
- Comments
- foreach (var comment in post.Comments)
- {
- @comment.Name: @comment.Message
- }
+
}
}
\ No newline at end of file
diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.css b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.css
new file mode 100644
index 0000000000..4a69c5b5c7
--- /dev/null
+++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.css
@@ -0,0 +1,7 @@
+.blog-post-list .post-comments {
+ margin-left: 10px;
+ border-left: 5px solid #ddd;
+ padding-left: 10px; }
+ .blog-post-list .post-comments .post-comment {
+ margin-bottom: 0.2em; }
+
diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.min.css b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.min.css
new file mode 100644
index 0000000000..dcfa6d93d9
--- /dev/null
+++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.min.css
@@ -0,0 +1 @@
+.blog-post-list .post-comments{margin-left:10px;border-left:5px solid #ddd;padding-left:10px;}.blog-post-list .post-comments .post-comment{margin-bottom:.2em;}
\ No newline at end of file
diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.scss b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.scss
new file mode 100644
index 0000000000..6f9a3df878
--- /dev/null
+++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.scss
@@ -0,0 +1,11 @@
+.blog-post-list {
+ .post-comments {
+ margin-left: 10px;
+ border-left: 5px solid #ddd;
+ padding-left: 10px;
+
+ .post-comment {
+ margin-bottom: 0.2em;
+ }
+ }
+}
diff --git a/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json
new file mode 100644
index 0000000000..9d51e91a28
--- /dev/null
+++ b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json
@@ -0,0 +1,6 @@
+[
+ {
+ "outputFile": "Areas/Blog/Views/Posts/Index.css",
+ "inputFile": "Areas/Blog/Views/Posts/Index.scss"
+ }
+]
\ No newline at end of file
diff --git a/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json.defaults b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json.defaults
new file mode 100644
index 0000000000..c75eb7d519
--- /dev/null
+++ b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json.defaults
@@ -0,0 +1,49 @@
+{
+ "compilers": {
+ "less": {
+ "autoPrefix": "",
+ "cssComb": "none",
+ "ieCompat": true,
+ "strictMath": false,
+ "strictUnits": false,
+ "relativeUrls": true,
+ "rootPath": "",
+ "sourceMapRoot": "",
+ "sourceMapBasePath": "",
+ "sourceMap": false
+ },
+ "sass": {
+ "includePath": "",
+ "indentType": "space",
+ "indentWidth": 2,
+ "outputStyle": "nested",
+ "Precision": 5,
+ "relativeUrls": true,
+ "sourceMapRoot": "",
+ "sourceMap": false
+ },
+ "stylus": {
+ "sourceMap": false
+ },
+ "babel": {
+ "sourceMap": false
+ },
+ "coffeescript": {
+ "bare": false,
+ "runtimeMode": "node",
+ "sourceMap": false
+ }
+ },
+ "minifiers": {
+ "css": {
+ "enabled": true,
+ "termSemicolons": true,
+ "gzip": false
+ },
+ "javascript": {
+ "enabled": true,
+ "termSemicolons": true,
+ "gzip": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs b/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs
index 8269e6ad6b..382df3dc77 100644
--- a/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs
+++ b/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs
@@ -40,7 +40,7 @@ namespace AbpDesk.Web.Mvc
.AddDebug()
.AddSerilog(new LoggerConfiguration()
.Enrich.FromLogContext()
- .WriteTo.RollingFile("logs.txt")
+ .WriteTo.RollingFile("Logs/logs.txt")
.CreateLogger()
);
diff --git a/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll b/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll
index 11cba1ef03..13f38c36ae 100644
Binary files a/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll and b/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll differ
Comments
+ @foreach (var comment in post.Comments) + { +@comment.Name: @comment.Message
+ } +