This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Madison Scott-Clary
committed
Nov 17, 2016
1 parent
23ce18a
commit ce0fb16
Showing
8 changed files
with
220 additions
and
21 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
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,67 @@ | ||
{% extends 'base.html' %} | ||
{% load tag_extras %} | ||
|
||
{% block content %} | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2 tag-cloud"> | ||
<h2><small>Your favorite tags</small></h2> | ||
{% get_weighted_tags user.profile.favorite_tags as weighted_tags %} | ||
{% for tag in weighted_tags %} | ||
<a href="{% url 'tags:view_tag' tag_slug=tag.slug %}" style="font-size:calc(7px * {{ tag.weight }});">{{ tag }}</a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<p> | ||
<em>Showing results {{ submissions.start_index }} through {{ submissions.end_index }} of {{ submissions.paginator.count }}</em> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
{% for submission in submissions %} | ||
<div class="row striped-item"> | ||
<div class="col-md-12"> | ||
{% include 'submission-list-snippet.html' with submission=submission author=submission.owner %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% if submissions.has_next or submissions.has_previous %} | ||
<div class="row"> | ||
<div class="col-md-12 text-center"> | ||
<nav aria-label="Submission pages"> | ||
<ul class="pagination"> | ||
{% if submissions.has_previous %} | ||
<li> | ||
<a href="{{ url_prefix }}page/{{ submissions.previous_page_number }}/" aria-label="Previous"> | ||
<span aria-hidden="true">«</span> | ||
</a> | ||
</li> | ||
{% else %} | ||
<li class="disabled"><span aria-hidden="true">«</span></li> | ||
{% endif %} | ||
{% for page in submissions.paginator.page_range %} | ||
{% if submissions.number == page %} | ||
<li class="active"><a href="{{ url_prefix }}page/{{ page }}/">{{ page }} <span class="sr-only">(current)</span></a></li> | ||
{% else %} | ||
<li><a href="{{ url_prefix }}page/{{ page }}/">{{ page }}</a></li> | ||
{% endif %} | ||
{% endfor %} | ||
{% if submissions.has_next %} | ||
<li> | ||
<a href="{{ url_prefix }}page/{{ submissions.next_page_number }}/" aria-label="Next"> | ||
<span aria-hidden="true">»</span> | ||
</a> | ||
</li> | ||
{% else %} | ||
<li class="disabled"><span aria-hidden="true">»</span></li> | ||
{% endif %} | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% 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
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,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.3 on 2016-11-17 03:38 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('taggit', '0002_auto_20150616_2121'), | ||
('usermgmt', '0005_auto_20161111_0247'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='profile', | ||
name='blocked_tags', | ||
field=models.ManyToManyField(related_name='blocked_by', to='taggit.Tag'), | ||
), | ||
migrations.AddField( | ||
model_name='profile', | ||
name='favorite_tags', | ||
field=models.ManyToManyField(related_name='favorited_by', to='taggit.Tag'), | ||
), | ||
] |
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