You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
1.5 KiB

<div class="card bg-light mb-3 w-100 sidebar-nav">
<div class="card-body">
<div class="row">
<a href="{{ url_for('user.index', username=current_user.username) }}">
<img class="rounded avatar-s" style="margin-left: 15px; position: absolute"
src="{{ url_for('main.get_avatar', filename=current_user.avatar_m) }}">
</a>
<div class="sidebar-nav-name">
<h6 class="card-title"><a
href="{{ url_for('user.index', username=current_user.username) }}">{{ current_user.name }}
</a></h6>
<p class="card-subtitle mb-2 text-muted">{{ current_user.username }}</p>
</div>
</div>
<a class="card-link" href="{{ url_for('user.index', username=current_user.username) }}">
<span class="oi oi-home"></span> 我的照片
</a><br>
<a class="card-link" href="{{ url_for('user.show_collections', username=current_user.username) }}">
<span class="oi oi-star"></span> 我的收藏
</a>
</div>
</div>
<div class="card bg-light mb-3 w-100">
<div class="card-header">热门标签</div>
<div class="list-group">
{% for tag in tags %}
<a class="list-group-item" href="{{ url_for('.show_tag', tag_id=tag.id) }}">{{ tag.name }}
<span class="badge badge-pill">{{ tag.photos|length }}</span>
</a>
{% endfor %}
</div>
</div>