From: "Slava Bacherikov" <slava@bacherikov.org.ua>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/apps/packages/, gpackages/templates/
Date: Sat, 30 Jun 2012 21:02:39 +0000 (UTC) [thread overview]
Message-ID: <1341089512.57537f51cd6d5eb9a58cb7b030e57183449bea0b.bacher09@gentoo> (raw)
commit: 57537f51cd6d5eb9a58cb7b030e57183449bea0b
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Sat Jun 30 20:51:52 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Sat Jun 30 20:51:52 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=57537f51
Add filtering packages by use flag
---
gpackages/apps/packages/views.py | 5 +++--
gpackages/templates/global_use.html | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gpackages/apps/packages/views.py b/gpackages/apps/packages/views.py
index c77c46e..81bb609 100644
--- a/gpackages/apps/packages/views.py
+++ b/gpackages/apps/packages/views.py
@@ -66,10 +66,11 @@ class PackagesListsView(MultipleFilterListViewMixin, ContextListView):
'repo':'repository__name',
'herd':'herds__name',
'maintainer': 'maintainers__pk',
- 'license': 'ebuildmodel__licenses__name'
+ 'license': 'ebuildmodel__licenses__name',
+ 'use': 'ebuildmodel__use_flags__name'
}
- m2m_filter = set(['herd', 'maintainer', 'license'])
+ m2m_filter = set(['herd', 'maintainer', 'license', 'use'])
allowed_order = { 'create': 'created_datetime',
'update': 'updated_datetime',
diff --git a/gpackages/templates/global_use.html b/gpackages/templates/global_use.html
index 266816f..fce42fb 100644
--- a/gpackages/templates/global_use.html
+++ b/gpackages/templates/global_use.html
@@ -17,7 +17,7 @@
<tbody>
{% for use in uses %}
<tr>
- <td class="nowrap"><a href="#">{{ use.name }}</a></td>
+ <td class="nowrap"><a href="{% url 'packages' use=use.name %}">{{ use.name }}</a></td>
<td>{{ use.description }}</td>
</tr>
{% endfor %}
next reply other threads:[~2012-06-30 21:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-30 21:02 Slava Bacherikov [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-20 13:03 [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/apps/packages/, gpackages/templates/ Slava Bacherikov
2012-07-19 23:50 Slava Bacherikov
2012-07-19 23:50 Slava Bacherikov
2012-07-12 22:16 Slava Bacherikov
2012-07-12 22:16 Slava Bacherikov
2012-07-10 23:13 Slava Bacherikov
2012-07-08 19:54 Slava Bacherikov
2012-07-08 19:54 Slava Bacherikov
2012-07-08 19:54 Slava Bacherikov
2012-07-06 23:09 Slava Bacherikov
2012-07-06 23:09 Slava Bacherikov
2012-07-04 22:13 Slava Bacherikov
2012-07-02 22:25 Slava Bacherikov
2012-06-30 21:02 Slava Bacherikov
2012-06-30 0:22 Slava Bacherikov
2012-06-29 19:25 Slava Bacherikov
2012-06-28 23:59 Slava Bacherikov
2012-06-27 22:52 Slava Bacherikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1341089512.57537f51cd6d5eb9a58cb7b030e57183449bea0b.bacher09@gentoo \
--to=slava@bacherikov.org.ua \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox