-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
152 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load url from future %} | ||
{% load i18n %} | ||
|
||
{% block head_title %}Profile for {{ bakery_user.sername }}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-xs-2"> | ||
<h2>{% blocktrans %}<span class="fn nickname">{{ bakery_user.username }}</span>{% endblocktrans %}</h2> | ||
</div> | ||
|
||
<div class="col-xs-5"> | ||
{% if bakery_user.cookie_set.exists %} | ||
<h3>{% trans "Cookies" %}</h3> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>#</th> | ||
<th>{% trans "Package" %}</th> | ||
<th>{% trans "Repo" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for cookie in bakery_user.cookie_set.all %} | ||
<tr> | ||
<td>{{ forloop.counter }}</td> | ||
<td><a href="{{ cookie.get_absolute_url }}">{{ cookie.name }}</a></td> | ||
<td><a href="{{ cookie.url }}">{{ cookie.repo_title }}</a></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load url from future %} | ||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block head_title %}Profile form for {{ profile.user.username }}{% endblock %} | ||
|
||
{% block body %} | ||
|
||
{% crispy form helper %} | ||
|
||
{% endblock body %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load url from future %} | ||
{% load i18n %} | ||
{% load pagination_tags %} | ||
{% load sorting_tags %} | ||
{% load profile_tags %} | ||
|
||
{% block head_title %}{% trans "All Profiles" %}{% endblock %} | ||
|
||
{% block body %} | ||
|
||
<h2>{% trans "All Profiles" %}</h2> | ||
|
||
<p>{% trans "Click table headers to sort" %}</p> | ||
|
||
{% autosort users %} | ||
{% autopaginate users %} | ||
{% paginate %} | ||
|
||
<table id="home-packages"> | ||
|
||
{{ request.user.admin }} | ||
|
||
<thead> | ||
<tr> | ||
<th>{% anchor username User Name %}</th> | ||
<th>{% anchor date_joined Date Joined %}</th> | ||
<th>{% anchor is_staff Staff %}</th> | ||
{% if request.user.is_staff %} | ||
<th>{% trans "Active" %}</th> | ||
{% endif %} | ||
<th>{% trans "Github" %}</th> | ||
<th>{% trans "BitBucket" %}</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
{% for user in users %} | ||
{% with user.get_profile as profile %} | ||
<tr> | ||
<td> | ||
|
||
{% if profile.github_account %}<a href="{% url 'profile_detail' profile.github_account %}">{{ profile.github_account }}</a> | ||
{% else %} | ||
{{ user.username }} | ||
{% endif %} | ||
</td> | ||
<td><span class="hide">{{ user.date_joined|date:"YmdHis" }}</span>{{ user.date_joined|timesince }}</td> | ||
<td> | ||
{% if user.is_staff %} | ||
<img src="{{ STATIC_URL }}img/icon-yes.gif" /> | ||
{% else %} | ||
<img src="{{ STATIC_URL }}img/icon-no.gif" /> | ||
{% endif %} | ||
</td> | ||
{% if request.user.is_staff %} | ||
<td> | ||
{% if user.is_active %} | ||
<img src="{{ STATIC_URL }}img/icon-yes.gif" /> | ||
{% else %} | ||
<img src="{{ STATIC_URL }}img/icon-no.gif" /> | ||
{% endif %} | ||
</td> | ||
{% endif %} | ||
<td><a href="https://github.com/{{ profile.github_account|default:"" }}">{{ profile.github_account|default:"" }}</a</td> | ||
<td><a href="https://bitbucket.org/{{ profile.bitbucket_url|default:"" }}">{{ profile.bitbucket_url|default:"" }}</a</td> | ||
</tr> | ||
{% endwith %} | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
{% paginate %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters