Sujet précédent

6.1.1. badges.utils

Sujet suivant

6.2. calendrier – calendar generations

Cette page

Autres langues

6.1.2. badges.views — views for badges

openPLM.apps.badges.views.overview(request, *args, **kwargs)[source]
Badges view :
display all badges available in OpenPLM
Url :/badges/

Template:

badges/overview.html

Context:

RequestContext

badges
List of all badges available
object_type
Name of the page
openPLM.apps.badges.views.detail(request, *args, **kwargs)[source]

Badge description view.

Url :/badges/{slug}

Template:

badges/detail.html

Context:

RequestContext

badge
Badge object corresponding to the id given in slug.
users
List of users who won the badge
object_type
component of the title of the page. Here the name of the badge.
openPLM.apps.badges.views.display_userbadges(request, *args, **kwargs)[source]

Badge tab in user view.

Url :/user/{username}/badges

Template:

users/badges_overview.html

Context:

RequestContext

badges
List of badges won by the user
current_page
name of the tab