1
1
Fork 0

User profile modifications

dev
Jan Kužílek 5 years ago
parent 1f62b1708d
commit bbe2ba4cfa

@ -237,7 +237,8 @@ label {
}
}
}
.tag-container {
}
.tag-container {
display: flex;
flex-flow: row wrap;
@ -303,9 +304,9 @@ label {
display: none;
}
}
}
}
.comment-container {
padding: 0 10px;
max-width: 500px;

File diff suppressed because one or more lines are too long

@ -2,7 +2,7 @@
{% block sidebar %}
<article class="sidenav">
<a href="{{ url_for('user.settings') }}">Settings</a>
<a href="{{ url_for('user.settings') }}">Profile settings</a>
{% if current_user.is_author or current_user.is_moderator -%}
<a href="{{ url_for('manage.manage_posts') }}">Post management</a>
{%- endif %}

@ -6,5 +6,29 @@
{% endblock %}#}
{% block content %}
<p class="bio">{{ user.biography }}</p>
<section class="user-profile">
<h1 class="username">{{ user.username }}</h1>
<div class="joindate">Joined: {{ user.created.date() }}</div>
<div class="status">User level: {{ user.op_level.name.capitalize() }}</div>
<p class="bio">{{ user.biography }}</p>
<div class="blacklist">
<div class="tag-container">
{% for tag in user.tag_blacklist %}
<a class="tagsimple" data-tagname="{{ tag.content }}" href="{{ utils.tag_endpoint(tag.content) }}">
<span class="tag-icon">
<span class="fa fa-tag"></span>
</span>
<span class="content">{{ tag.content_deser }}</span>
<span class="tag-right">
<span class="fa fa-plus plus"></span>
{#<span class="fa fa-close close"></span>#}
</span>
{#<span class="post_ids">{{ tag.post_ids }}</span>#}
</a>
{% endfor %}
</div>
</div>
</section>
{% endblock %}

@ -38,7 +38,7 @@ def tag_reference(tag=None):
def tag_endpoint(tag):
return query_replace(
dict(**session_rating(), tags=tag_reference(tag)),
url_for('.posts')
url_for('post.posts')
)
from flask import request, url_for

Loading…
Cancel
Save