From f19e2ea1d4428164ea15d4f317c0013808bb568f Mon Sep 17 00:00:00 2001 From: yomguy Date: Mon, 9 Jul 2012 12:22:57 +0200 Subject: [PATCH] go to 0.6, fix profile button --- setup.py | 3 +-- teleforma/__init__.py | 2 +- teleforma/templates/telemeta/profile_detail.html | 10 +++------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/setup.py b/setup.py index 4c4dad57..0e708701 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,6 @@ # -*- 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', ] @@ -12,7 +11,7 @@ setup( 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', diff --git a/teleforma/__init__.py b/teleforma/__init__.py index 4b117760..247b34f3 100755 --- a/teleforma/__init__.py +++ b/teleforma/__init__.py @@ -9,7 +9,7 @@ U{http://parisson.com/products/teleforma} """ __docformat__ = 'epytext en' -__version__ = '0.5' +__version__ = '0.6' __url__ = 'http://parisson.com/products/teleforma' __copyright__ = '(C) 2011-2012 Parisson' __license__ = 'CeCILL-v2' diff --git a/teleforma/templates/telemeta/profile_detail.html b/teleforma/templates/telemeta/profile_detail.html index 905d6986..58c0a96c 100644 --- a/teleforma/templates/telemeta/profile_detail.html +++ b/teleforma/templates/telemeta/profile_detail.html @@ -44,14 +44,13 @@

{% trans "User profile" %} : {{ usr.username }}

- {% if user.is_authenticated and user.username == usr.username or user.is_staff %}
- {% trans "Edit" %} {% if user.is_authenticated and user.username == usr.username %} + {% elif user.is_staff %} + {% endif %}
- {% endif %}
@@ -102,10 +101,7 @@
-{% if user.username != usr.username and user.is_staff %} - - -{% endif %} +
-- 2.39.5