fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/shelfzilla/themes/bootflat/templates/users/profile.html

58 lines
2.7 KiB
HTML

{% extends '_layout.html'|pjax:request %}
{% load i18n %}
{% block page_title %}{{ block.super }} | {{ item.username }} | {% trans "Profile" %}{% endblock %}
{% block main_content %}
<div class="container">
<div class="row">
<div class="col-sm-3 profile-sidebar">
<div class="panel panel-primary">
<div class="panel-heading text-center">
<h1 class="panel-title">{{ item.username }}</h1>
</div>
<div class="avatar">
<div class="badges">
{% if item.is_staff %}
<span class="label label-warning">
<i class="glyphicon glyphicon-star"></i>
STAFF
</span>
{% endif %}
</div>
<img src="{{ item.avatar }}" class="max-width-100" />
</div>
<div class="list-group">
<a data-pjax-nav href="{% url 'profile' item.username %}" data-pjax class="list-group-item {% if section == 'summary' %}active{% endif %}">
{% trans "Summary" %}</a>
{% if item.have_volumes.count > 0 %}
<a data-pjax-nav href="{% url 'profile' item.username 'collection' %}" data-pjax="profile" class="list-group-item {% if section == 'collection' %}active{% endif %}">
{% trans "Collection" %}</a>
{% endif %}
{% if item.wishlisted_volumes.count > 0 %}
<a data-pjax-nav href="{% url 'profile' item.username 'wishlist' %}" data-pjax="profile" class="list-group-item {% if section == 'wishlist' %}active{% endif %}">
{% trans "Wishlist" %}</a>
{% endif %}
{% comment %}
<a data-pjax-nav href="{% url 'profile' item.username 'achievements' %}" data-pjax="profile" class="list-group-item {% if section == 'achievements' %}active{% endif %}">
{% trans "Achievements" %}</a>
{% endcomment %}
</div>
</div>
<div>
{% if request.user.pk == item.pk %}
<a href="{% url 'account' %}" class="btn btn-info btn-block">
{% trans "Edit my profile" %}
</a>
{% endif %}
</div>
</div>
<div class="col-sm-9" data-pjax-container="profile">
{% block profile_content %}
{% include "users/profile/summary.html" %}
{% endblock %}
</div>
</div>
</div>
{% endblock %}