Add user information to header of user timeline

This commit is contained in:
Jason McBrayer 2018-05-09 14:17:39 -04:00
parent 0191bc2f98
commit 56d0ff2158
2 changed files with 32 additions and 4 deletions

View File

@ -1,3 +1,4 @@
.reblog-icon { .reblog-icon {
position: relative; position: relative;
top: -24px; top: -24px;
@ -12,3 +13,12 @@ img.fav-avatar {
.box.active_context { .box.active_context {
background-color: #FFF8DC; background-color: #FFF8DC;
} }
div.card-header-title, div.card-header-icon {
color: black;
text-shadow:
-1px -1px 0 #FFF,
1px -1px 0 #FFF,
-1px 1px 0 #FFF,
1px 1px 0 #FFF;
}

View File

@ -1,5 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load humanize %} {% load humanize %}
{% load sanitizer %}
{% load taglinks %}
{% block title %} {% block title %}
Brutaldon - {{ timeline }} timelime Brutaldon - {{ timeline }} timelime
@ -7,12 +9,28 @@
{% block content %} {% block content %}
<h1 class="title">User information for {{ user.display_name }} (@{{ user.acct }})</h1> <div class="card">
<div class="box"> {% if not fullbrutalism %}
<p>FIXME</p> <div class="card-header" style="background-image: url({{ user.header }});">
{% else %}
<div class="card-header">
{% endif %}
<div class="card-header-title title">
{{ user.display_name }} (@{{ user.acct }})
</div>
<figure class="image is-96x96 card-header-icon">
<img src="{{ user.avatar }}" alt="Avatar">
</figure>
</div>
<div class="card-content">
<div class="content">
{{ user.note | relink_toot | strip_html | safe }}
</div>
</div>
</div> </div>
<h1 class="title">{{ user.display_name }}'s visible toots</h1> <br>
{% for toot in toots %} {% for toot in toots %}
<div class="box"> <div class="box">
{% if toot.reblog %} {% if toot.reblog %}