diff --git a/app/models.py b/app/models.py index 1d0b2a9f..965c5d00 100644 --- a/app/models.py +++ b/app/models.py @@ -283,6 +283,9 @@ class User(UserMixin, db.Model): def profile_id(self): return self.ap_profile_id if self.ap_profile_id else f"{self.user_name}@{current_app.config['SERVER_NAME']}" + def created_recently(self): + return self.created and self.created > datetime.utcnow() - timedelta(days=7) + @staticmethod def verify_reset_password_token(token): try: diff --git a/app/static/scss/_typography.scss b/app/static/scss/_typography.scss index 6bdc268b..401ac6ea 100644 --- a/app/static/scss/_typography.scss +++ b/app/static/scss/_typography.scss @@ -167,7 +167,18 @@ } .fe-camera::before { - content: "\e928"; + content: "\e97a"; +} + +.fe-new-account { + position: relative; + top: 1px; + &:before { + content: "\e986"; + } +} +.fe-new-account::before { + } a.no-underline { diff --git a/app/static/structure.css b/app/static/structure.css index a22f34bb..422fa2f0 100644 --- a/app/static/structure.css +++ b/app/static/structure.css @@ -170,7 +170,15 @@ nav, etc which are used site-wide */ } .fe-camera::before { - content: "\e928"; + content: "\e97a"; +} + +.fe-new-account { + position: relative; + top: 1px; +} +.fe-new-account:before { + content: "\e986"; } a.no-underline { diff --git a/app/static/styles.css b/app/static/styles.css index 9c4a2467..fb4df198 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -169,7 +169,15 @@ } .fe-camera::before { - content: "\e928"; + content: "\e97a"; +} + +.fe-new-account { + position: relative; + top: 1px; +} +.fe-new-account:before { + content: "\e986"; } a.no-underline { diff --git a/app/templates/base.html b/app/templates/base.html index 1e1aa3a6..42efe45a 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -3,6 +3,9 @@ [deleted] {% else %} {{ user.user_name }} + {% if user.created_recently() %} + + {% endif %} {% endif %} {% endmacro %} diff --git a/app/templates/community/post.html b/app/templates/community/post.html index 71d4b00d..6e12cd46 100644 --- a/app/templates/community/post.html +++ b/app/templates/community/post.html @@ -60,6 +60,9 @@ {{ comment['comment'].author.user_name }} {% endif %} + {% if comment['comment'].author.created_recently() %} + + {% endif %} {% if comment['comment'].author.id == post.author.id %}[OP]{% endif %} {{ moment(comment['comment'].posted_at).fromNow(refresh=True) }}{% if comment['comment'].edited_at %}, edited {{ moment(comment['comment'].edited_at).fromNow(refresh=True) }} {% endif %} diff --git a/app/templates/user/show_profile.html b/app/templates/user/show_profile.html index c0fce66f..fa17ea16 100644 --- a/app/templates/user/show_profile.html +++ b/app/templates/user/show_profile.html @@ -34,6 +34,7 @@

{{ user.user_name if user.ap_id == none else user.ap_id }}

+

{{ _('Joined') }}: {{ moment(user.created).fromNow(refresh=True) }} {{ user.about_html|safe }} {% endif %}