From 2feaee4be4a303fade66e9d282342a860600b30a Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Fri, 15 Oct 2021 18:17:34 +0300 Subject: [PATCH] Posts: Added online status under the avatar Closes #237 --- .../templates/components/post/microblogpost.xml | 7 +++++++ Web/Presenters/templates/components/post/oldpost.xml | 7 +++++++ Web/static/css/style.css | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index 52e0b7ca..fa0284d8 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -7,6 +7,13 @@ + {if !$post->isPostedOnBehalfOfGroup() && !$compact} + + {if $diff->i <= 5} + {_online} + {/if} + + {/if}
diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml index d111b2ae..4af95710 100644 --- a/Web/Presenters/templates/components/post/oldpost.xml +++ b/Web/Presenters/templates/components/post/oldpost.xml @@ -7,6 +7,13 @@ + {if !$post->isPostedOnBehalfOfGroup() && !$compact} + + {if $diff->i <= 5} + {_online} + {/if} + + {/if}