1
1
Fork 0

User profile modifications

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

@ -237,6 +237,7 @@ label {
} }
} }
} }
}
.tag-container { .tag-container {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
@ -304,7 +305,7 @@ label {
} }
} }
} }
}
.comment-container { .comment-container {
padding: 0 10px; padding: 0 10px;

File diff suppressed because one or more lines are too long

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

@ -6,5 +6,29 @@
{% endblock %}#} {% endblock %}#}
{% block content %} {% block content %}
<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> <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 %} {% endblock %}

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

Loading…
Cancel
Save