{% if button_change %}
{% endif %}
{% if perms.tema.delete_themeitem %}
{% endif %}
From oi-svn at pardus.org.tr Thu Sep 24 18:14:47 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Thu, 24 Sep 2009 18:14:47 +0300 (EEST)
Subject: [Oi-commits] trunk/templates/tema - links for new feature
Message-ID: <20090924151447.4729349C8FA@ns1.pardus.org.tr>
Author: jnmbk
Date: Thu Sep 24 18:14:47 2009
New Revision: 2834
Modified:
trunk/templates/tema/base.html
Log:
links for new feature
---
base.html | 2 ++
1 file changed, 2 insertions(+)
Modified: trunk/templates/tema/base.html
=================================================================
--- trunk/templates/tema/base.html (original)
+++ trunk/templates/tema/base.html Thu Sep 24 18:14:47 2009
@@ -11,11 +11,13 @@
From oi-svn at pardus.org.tr Thu Sep 24 18:16:41 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Thu, 24 Sep 2009 18:16:41 +0300 (EEST)
Subject: [Oi-commits] trunk/templates/tema - links to new feature
Message-ID: <20090924151641.479B449C8FA@ns1.pardus.org.tr>
Author: jnmbk
Date: Thu Sep 24 18:16:41 2009
New Revision: 2835
Modified:
trunk/templates/tema/base.html
Log:
links to new feature
---
base.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/templates/tema/base.html
=================================================================
--- trunk/templates/tema/base.html (original)
+++ trunk/templates/tema/base.html Thu Sep 24 18:16:41 2009
@@ -11,13 +11,13 @@
From oi-svn at pardus.org.tr Fri Sep 25 12:38:15 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Fri, 25 Sep 2009 12:38:15 +0300 (EEST)
Subject: [Oi-commits] trunk/templates/seminar - respect linebreaks in
seminar detail
Message-ID: <20090925093815.E59AE49C8D6@ns1.pardus.org.tr>
Author: jnmbk
Date: Fri Sep 25 12:38:15 2009
New Revision: 2836
Modified:
trunk/templates/seminar/seminar_detail.html
Log:
respect linebreaks in seminar detail
---
seminar_detail.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: trunk/templates/seminar/seminar_detail.html
=================================================================
--- trunk/templates/seminar/seminar_detail.html (original)
+++ trunk/templates/seminar/seminar_detail.html Fri Sep 25 12:38:15 2009
@@ -35,7 +35,7 @@
- {% if object.place.description %}
{{ object.place.description }}{% if object.place.phone %} - TEL: {{ object.place.phone }}{% endif %}
{% endif %}
+ {% if object.place.description %}
{{ object.place.description|linebreaksbr }}{% if object.place.phone %} - TEL: {{ object.place.phone }}{% endif %}
{% endif %}
From oi-svn at pardus.org.tr Fri Sep 25 13:41:37 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Fri, 25 Sep 2009 13:41:37 +0300 (EEST)
Subject: [Oi-commits] trunk/tema - screenshot admin and content add page
Message-ID: <20090925104137.CAA0D49C8D6@ns1.pardus.org.tr>
Author: jnmbk
Date: Fri Sep 25 13:41:37 2009
New Revision: 2837
Modified:
trunk/tema/admin.py
trunk/tema/urls.py
Log:
screenshot admin and content add page
---
admin.py | 12 ++++++++++++
urls.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
Modified: trunk/tema/admin.py
=================================================================
--- trunk/tema/admin.py (original)
+++ trunk/tema/admin.py Fri Sep 25 13:41:37 2009
@@ -40,7 +40,19 @@
})
)
+class DesktopScreenshotAdmin(ThemeItemAdmin):
+ fieldsets = (
+ (None, {
+ "fields": ("thumbnail", "title", "slug", "text", "changelog", "image", "status", "tags")
+ }),
+ ("Di?er", {
+ "classes": "collapse",
+ "fields": ("author", "license", "rating", "download_count", "submit", "update", "comment_enabled")
+ })
+ )
+
admin.site.register(ThemeItem, ThemeItemAdmin)
admin.site.register(Wallpaper, WallpaperAdmin)
+admin.site.register(DesktopScreenshot, DesktopScreenshotAdmin)
admin.site.register(WallpaperFile, admin.ModelAdmin)
admin.site.register(License, admin.ModelAdmin)
Modified: trunk/tema/urls.py
=================================================================
--- trunk/tema/urls.py (original)
+++ trunk/tema/urls.py Fri Sep 25 13:41:37 2009
@@ -22,7 +22,7 @@
#(r'^duzenle/(?P
[0-9]+)/$','themeitem_change'),
(r'^kullanici/(?P.+)/$','list_user'),
#(r'^oyla/(?P[0-9]+)/(?P[0-4])/$','vote'),
- #(r'^ekle/$','themeitem_add'),
+ (r'^ekle/$','themeitem_add'),
(r'^raporla/(?P\d+)/$', 'report_abuse'),
(r'^oyla/(?P\d+)/$', 'themeitem_rate'),
(r'^sil/(?P\d+)/$', 'themeitem_delete'),
From oi-svn at pardus.org.tr Fri Sep 25 15:37:58 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Fri, 25 Sep 2009 15:37:58 +0300 (EEST)
Subject: [Oi-commits] trunk/templates/tema - better links
Message-ID: <20090925123758.F05FD49C8D6@ns1.pardus.org.tr>
Author: jnmbk
Date: Fri Sep 25 15:37:58 2009
New Revision: 2838
Modified:
trunk/templates/tema/base.html
Log:
better links
---
base.html | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
Modified: trunk/templates/tema/base.html
=================================================================
--- trunk/templates/tema/base.html (original)
+++ trunk/templates/tema/base.html Fri Sep 25 15:37:58 2009
@@ -10,14 +10,17 @@
From oi-svn at pardus.org.tr Fri Sep 25 17:06:30 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Fri, 25 Sep 2009 17:06:30 +0300 (EEST)
Subject: [Oi-commits] trunk/tema - show all content not just wallpaper
Message-ID: <20090925140630.71A7C49C8D6@ns1.pardus.org.tr>
Author: jnmbk
Date: Fri Sep 25 17:06:29 2009
New Revision: 2839
Modified:
trunk/tema/views.py
Log:
show all content not just wallpaper
---
views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: trunk/tema/views.py
=================================================================
--- trunk/tema/views.py (original)
+++ trunk/tema/views.py Fri Sep 25 17:06:29 2009
@@ -95,7 +95,7 @@
def list_user(request, username):
"Theme items of a user"
user = get_object_or_404(User, username=username)
- themeItems = Wallpaper.objects.filter(status=True, author=user)
+ themeItems = ThemeItem.objects.filter(status=True, author=user)
params={
'queryset': themeItems,
From oi-svn at pardus.org.tr Fri Sep 25 17:31:17 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Fri, 25 Sep 2009 17:31:17 +0300 (EEST)
Subject: [Oi-commits] trunk/templates/tema - download->view
Message-ID: <20090925143117.C3DC849C8D6@ns1.pardus.org.tr>
Author: jnmbk
Date: Fri Sep 25 17:31:17 2009
New Revision: 2840
Modified:
trunk/templates/tema/themeitem_desktopscreenshot_detail.html
Log:
download->view
---
themeitem_desktopscreenshot_detail.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: trunk/templates/tema/themeitem_desktopscreenshot_detail.html
=================================================================
--- trunk/templates/tema/themeitem_desktopscreenshot_detail.html (original)
+++ trunk/templates/tema/themeitem_desktopscreenshot_detail.html Fri Sep 25 17:31:17 2009
@@ -46,7 +46,7 @@
{{ object.get_rating_percent }}/10 ({{ object.vote_set.count }} oy)
Lisans: {{ object.license.name }}
G?nderildi?i Tarih: {{ object.submit|date:"d F Y" }}
-
?ndirilme Say?s?: {{ object.download_count }}
+
G?sterim Say?s?: {{ object.download_count }}
{% if object.origin_url %}
?zg?n ?al??ma{% endif %}
From oi-svn at pardus.org.tr Fri Sep 25 17:54:20 2009
From: oi-svn at pardus.org.tr (=?utf-8?b?VcSfdXIgw4dldGlu?=)
Date: Fri, 25 Sep 2009 17:54:20 +0300 (EEST)
Subject: [Oi-commits] trunk - sidebar adjustments
Message-ID: <20090925145420.4E00649C8D6@ns1.pardus.org.tr>
Author: jnmbk
Date: Fri Sep 25 17:54:20 2009
New Revision: 2841
Modified:
trunk/tema/templatetags/tema.py
trunk/tema/views.py
trunk/templates/tema/base.html
trunk/templates/tema/sidebar.html
Log:
sidebar adjustments
---
tema/templatetags/tema.py | 17 +++++++++++++----
tema/views.py | 3 ++-
templates/tema/base.html | 2 +-
templates/tema/sidebar.html | 2 +-
4 files changed, 17 insertions(+), 7 deletions(-)
Modified: trunk/tema/templatetags/tema.py
=================================================================
--- trunk/tema/templatetags/tema.py (original)
+++ trunk/tema/templatetags/tema.py Fri Sep 25 17:54:20 2009
@@ -7,7 +7,7 @@
from django import template
from django.template import Context, loader
-from oi.tema.models import ThemeItem, ThemeAbuseReport
+from oi.tema.models import ThemeItem, ThemeAbuseReport, DesktopScreenshot, Wallpaper
register = template.Library()
@@ -16,6 +16,15 @@
return ThemeAbuseReport.objects.count()
@register.simple_tag
-def top_content():
- object_list = ThemeItem.objects.filter(status=True).order_by("-rating", "-update")[:10]
- return loader.get_template("tema/sidebar.html").render(Context({"object_list":object_list}))
+def top_content(category=None):
+ if category == "duvar-kagitlari":
+ object_list = Wallpaper.objects.all()
+ title = "En Be?enilen Duvar Ka??tlar?"
+ elif category == "ekran-goruntuleri":
+ object_list = DesktopScreenshot.objects.all()
+ title = "En Be?enilen Masa?stleri"
+ else:
+ object_list = ThemeItem.objects.all()
+ title = "En ?ok Be?enilenler"
+ object_list = object_list.filter(status=True).order_by("-rating", "-update")[:10]
+ return loader.get_template("tema/sidebar.html").render(Context({"object_list":object_list,"title":title}))
Modified: trunk/tema/views.py
=================================================================
--- trunk/tema/views.py (original)
+++ trunk/tema/views.py Fri Sep 25 17:54:20 2009
@@ -69,6 +69,7 @@
"queryset": themeItems,
"paginate_by": THEME_ITEM_PER_PAGE,
"template_name": "tema/themeitem_list.html",
+ "extra_context": {"category":category},
}
return object_list(request, **params)
@@ -101,7 +102,7 @@
'queryset': themeItems,
'paginate_by': THEME_ITEM_PER_PAGE,
"template_name": "tema/themeitem_list.html",
- "extra_context": {"author":user},
+ "extra_context": {"author":user,"category":None},
}
return object_list(request, **params)
Modified: trunk/templates/tema/base.html
=================================================================
--- trunk/templates/tema/base.html (original)
+++ trunk/templates/tema/base.html Fri Sep 25 17:54:20 2009
@@ -22,7 +22,7 @@
Masa?st? G?r?nt?s?
- {% top_content %}
+ {% top_content category %}
{% endblock %}
Modified: trunk/templates/tema/sidebar.html
=================================================================
--- trunk/templates/tema/sidebar.html (original)
+++ trunk/templates/tema/sidebar.html Fri Sep 25 17:54:20 2009
@@ -1,5 +1,5 @@