# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
-import teleforma
CLASSIFIERS = ['Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Education', 'Programming Language :: Python', 'Programming Language :: JavaScript', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Analysis', 'Topic :: Multimedia :: Sound/Audio :: Players', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: System :: Archiving', ]
long_description = open('README.rst').read(),
author = "Guillaume Pellerin",
author_email = "yomguy@parisson.com",
- version = teleforma.__version__,
+ version = '0.6',
install_requires = [
'django>=1.4',
'telemeta',
"""
__docformat__ = 'epytext en'
-__version__ = '0.5'
+__version__ = '0.6'
__url__ = 'http://parisson.com/products/teleforma'
__copyright__ = '(C) 2011-2012 Parisson'
__license__ = 'CeCILL-v2'
<h1>{% trans "User profile" %} : {{ usr.username }}
</h1>
- {% if user.is_authenticated and user.username == usr.username or user.is_staff %}
<div id="password" style="float: right;">
- <a href="{% url telemeta-profile-edit usr.username %}" class="component_icon button icon_edit">{% trans "Edit" %}</a>
{% if user.is_authenticated and user.username == usr.username %}
<a href="{% url telemeta-password-change %}" class="component_icon button icon_login">{% trans "Change password" %}</a>
+ {% elif user.is_staff %}
+ <a href="{% url teleforma-user-login usr.id %}" class="component_icon button icon_login">{% trans "Login as" %}</a>
{% endif %}
</div>
- {% endif %}
<div class="course_content">
</div>
<div class="buttons">
-{% if user.username != usr.username and user.is_staff %}
-<a href="{% url teleforma-user-login usr.id %}" class="component_icon button icon_login">{% trans "Login as" %}</a>
-<a href="{% url telemeta-password-change usr.id %}" class="component_icon button icon_login">{% trans "Password reset" %}</a>
-{% endif %}
+<!--<a href="{% url telemeta-password-change %}" class="component_icon button icon_login">{% trans "Password reset" %}</a>-->
</div>
</div>