+
+
+
+
+
+
+
+
+
+
+
+
+
{{post.userfullname}}
+
{{ post.groupname }}
+
{{post.modified * 1000 | coreFormatDate: "strftimerecentfull"}}
+
{{ 'core.notsent' | translate }}
+
+
+
+
+
+
+
+
+
+ {{ 'addon.mod_forum.postisprivatereply' | translate }}
+
+
+ 0">
+
+
+
+
+
0">
+ {{ 'core.tag.tags' | translate }}:
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ 'addon.mod_forum.subject' | translate }}
+
+
+
+ {{ 'addon.mod_forum.message' | translate }}
+
+
+
+ {{ 'addon.mod_forum.privatereply' | translate }}
+
+
+
+
+
+ {{ 'addon.mod_forum.advanced' | translate }}
+
+
+ 0" [files]="replyData.files" [maxSize]="forum.maxbytes" [maxSubmissions]="forum.maxattachments" [component]="component" [componentId]="forum.cmid" [allowOffline]="true">
-
-
-
0">
- {{ 'core.tag.tags' | translate }}:
-
-
-
-
-
-
-
-
-
-
-
-
- {{ 'addon.mod_forum.subject' | translate }}
-
-
-
- {{ 'addon.mod_forum.message' | translate }}
-
-
-
- {{ 'addon.mod_forum.privatereply' | translate }}
-
-
-
-
-
- {{ 'addon.mod_forum.advanced' | translate }}
-
-
- 0" [files]="replyData.files" [maxSize]="forum.maxbytes" [maxSubmissions]="forum.maxattachments" [component]="component" [componentId]="forum.cmid" [allowOffline]="true">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/addon/mod/forum/components/post/post.scss b/src/addon/mod/forum/components/post/post.scss
index 43358381e..995dc2f13 100644
--- a/src/addon/mod/forum/components/post/post.scss
+++ b/src/addon/mod/forum/components/post/post.scss
@@ -1,5 +1,68 @@
-ion-app.app-root addon-mod-forum-post {
+ion-app.app-root addon-mod-forum-post .addon-mod_forum-post {
+ background-color: $white;
+ border-bottom: 1px solid $list-md-border-color;
+
.addon-forum-star {
color: $core-star-color;
}
+
+ .card-header .item {
+ .label {
+ margin-top: 4px;
+
+ h2 {
+ margin-top: 8px;
+ margin-bottom: 8px;
+ font-weight: bold;
+ ion-icon {
+ @include margin(0, 6px, 0, 0);
+ }
+ }
+ h3 {
+ font-size: 1.6rem;
+ }
+ }
+
+ ion-avatar {
+ width: $addon-forum-avatar-size;
+ height: $addon-forum-avatar-size;
+ min-width: $addon-forum-avatar-size;
+ min-height: $addon-forum-avatar-size;
+ &[item-start] {
+ @include margin(0, 8px, 0, 0);
+ }
+ img {
+ width: $addon-forum-avatar-size;
+ height: $addon-forum-avatar-size;
+ }
+ }
+
+ .addon-mod-forum-post-title,
+ .addon-mod-forum-post-info {
+ display: flex;
+ align-items: center;
+ }
+
+ .addon-mod-forum-post-info {
+ margin-top: 8px;
+ }
+
+ .addon-mod-forum-post-title + .addon-mod-forum-post-info {
+ margin-top: 0px;
+ }
+
+ .addon-mod-forum-post-title h2,
+ .addon-mod-forum-post-info .addon-mod-forum-post-author {
+ flex-grow: 1;
+ }
+ }
+
+ .item .item-inner {
+ border-bottom: 0;
+ }
+
+ .addon-mod-forum-post-more-info div {
+ font-size: 1.4rem;
+ }
}
+
diff --git a/src/addon/mod/forum/components/post/post.ts b/src/addon/mod/forum/components/post/post.ts
index 36a91e531..74801550b 100644
--- a/src/addon/mod/forum/components/post/post.ts
+++ b/src/addon/mod/forum/components/post/post.ts
@@ -54,6 +54,7 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy {
uniqueId: string;
advanced = false; // Display all form fields.
tagsEnabled: boolean;
+ displaySubject = true;
protected syncId: string;
@@ -78,6 +79,11 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy {
*/
ngOnInit(): void {
this.uniqueId = this.post.id ? 'reply' + this.post.id : 'edit' + this.post.parent;
+
+ const reTranslated = this.translate.instant('addon.mod_forum.re');
+ this.displaySubject = this.post.parent == 0 ||
+ (this.post.subject != this.defaultSubject && this.post.subject != 'Re: ' + this.defaultSubject &&
+ this.post.subject != reTranslated + this.defaultSubject);
}
/**
diff --git a/src/addon/mod/forum/pages/discussion/discussion.html b/src/addon/mod/forum/pages/discussion/discussion.html
index 571c89738..9615fd88a 100644
--- a/src/addon/mod/forum/pages/discussion/discussion.html
+++ b/src/addon/mod/forum/pages/discussion/discussion.html
@@ -38,12 +38,12 @@