diff options
author | ubq323 <ubq323> | 2021-06-19 09:38:06 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-19 09:38:06 +0000 |
commit | 13fae0466c6d6863833fda6fef2754db9c56b12b (patch) | |
tree | 26f358926700aba421ac0320bd51809def365af2 | |
parent | e7f520b6865482cab89b55f70f8c41bec6ca30b3 (diff) |
possibly it is nicer if all username links look the sameuser-profiles
-rw-r--r-- | apioforum/static/style.css | 6 | ||||
-rw-r--r-- | apioforum/templates/base.html | 2 | ||||
-rw-r--r-- | apioforum/templates/common.html | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/apioforum/static/style.css b/apioforum/static/style.css index c4a6d40..07936d2 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -17,9 +17,13 @@ body { font-family: sans-serif; word-wrap: break-word; } .post:last-of-type { border-bottom: 1px solid black; } .post-heading { font-size: smaller; } -.post-heading,.post-heading .username,.post-heading a:visited { +.post-heading,a.username { color: hsl(0,0%,25%); } +a.username { + font-weight: bold; + text-decoration: underline; +} .post-heading-em { font-weight: bold; } .post-content * { margin-bottom: 8px; margin-top: 8px; } .post-content > *:first-child { margin-top: 2px } diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html index 3eb112e..ad4c3b2 100644 --- a/apioforum/templates/base.html +++ b/apioforum/templates/base.html @@ -19,7 +19,7 @@ <p><a href="{{url_for('index')}}">home</a></p> {% if g.user %} - <p><a href="{{url_for('user.view_user', username=g.user)}}">{{g.user}}</a></p> + <p><a class="username" href="{{url_for('user.view_user', username=g.user)}}">{{g.user}}</a></p> {% if is_admin %} <p><a href="{{url_for('admin.admin_page')}}">admin</a></p> diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index c484a9d..3db9974 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -6,7 +6,7 @@ <div class="post" id="post_{{post.id}}"> <div class="post-heading"> <span class="post-heading-a"> - <span class="post-heading-em">{{disp_user(post.author)}}</span> + {{disp_user(post.author)}} {{ts(post.created)}} {% if post.edited %} (edited {{ts(post.updated)}}) |