[Oi-commits] r1385 - trunk/templates/tema
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Thu May 15 07:49:13 EEST 2008
Author: jnmbk
Date: Thu May 15 07:49:13 2008
New Revision: 1385
Added:
trunk/templates/tema/base.html
Modified:
trunk/templates/tema/detail.html
trunk/templates/tema/main.html
Log:
some touches on tema templates
Modified: trunk/templates/tema/detail.html
=================================================================
--- trunk/templates/tema/detail.html (original)
+++ trunk/templates/tema/detail.html Thu May 15 07:49:13 2008
@@ -1,127 +1,89 @@
-
+{% extends "tema/base.html" %}
{% load comment_honeypot %}
{% load comment_utils %}
+{% block header_menu %}
+ {% include "header.html" %}
+{% endblock %}
+{% block ust_menu %}
+ {% include "ust_menu_ayrinti.html" %}
+{% endblock %}
{% block content %}
- <a href="/tema/goster/son/">Tema Anasayfa</a>
- <table summary="Submitted table designs" border="1" align="center">
- <caption>Tema Dosyalar</caption>
- <thead>
- <tr>
- <th scope="col">Kategori</th>
- <th scope="col">İsim</th>
- <th scope="col">Açıklama</th>
- <th scope="col">Thumb</th>
-
- <th scope="col">Link</th>
- <th scope="col">Gönderen</th>
- <th scope="col">Lisans</th>
-
- <th scope="col">Görülmüş</th>
- <th scope="col">Oy</th>
- {% if auth %}
- <th scope="col">Oy kullan</th>
- {% endif %}
- </tr>
- </thead>
-
- <tbody>
- {% if dosya %}
-
- <tr >
- <th scope="row"><a href="{{dosya.parent_cat.get_absolute_url}}">{{dosya.parent_cat}}</a></th>
- <td>{{dosya.name}}</td>
- <td>{{dosya.description}}</td>
- <td>{% for screen in dosya.screens.all %}
- <img src="../../../media/{{screen}}" width="100" height="100"/><br/>
- {% endfor %}
- </td>
-
- <td>{% for file in dosya.file_data.all %}
- <a href="../../../media/{{file}}">İndir</a><br/>
- {% endfor %}</td>
-
- <td>{{dosya.user}}</td>
- <td>{{dosya.licence}}</td>
- <td>{{dosya.counter}}</td>
- <td>{{dosya.rate}}</td>
- {% if auth %}
- <td>
- <form method="post" action="/tema/oy/">
-
- {{form.vote.label}}:{{form.vote}}
- <input type="hidden" name="dosya_id" value="{{ dosya.id }}" />
- <button type="submit">Yolla</button>
-
- </form>
- {% if error %}
- <b>{{error}}</b>
- {% endif %}
- </td>
-
- {% endif %}
- </tr>
-
- {% endif %}
-
-</tbody>
-</table>
-
- <br/>
- <br/>
- <br/>
- {% if auth %}
- <div align="center">
- {% comment_form for tema.dosya dosya.id %}
-
- </div>
- {% endif %}
-
- {% if not auth %}
- <b>Yorum yapabilmek için giriş yapmanız gerekir!</b>
- {% endif %}
-
-
-
- {% get_public_comment_list for tema.dosya dosya.id as comments %}
- <br/>
- <br/><br/>
- {% if comments %}
- <table summary="Submitted table designs" border="1" align="center">
- <caption>Yorumlar</caption>
- <thead>
- <tr>
- <th scope="col">link#</th>
- <th scope="col">İsim</th>
- <th scope="col">Yorum</th>
- <th scope="col">IP</th>
-
- <th scope="col">Tarih</th>
-
- </tr>
-
- </thead>
-
- <tbody>
- {% for comment in comments %}
-
-
- <tr >
- <th scope="row">{{comment.get_absolute_url}}</a></th>
- <td>{{comment.person_name}}</td>
- <td>{{comment.comment}}</td>
- <td>{{comment.ip_address}}</td>
- <td>{{comment.submit_date}}</td>
- </tr>
- {% endfor %}
-
-
- </tbody>
- </table>
-
-
- {% endif %}
-
-
-
-{% endblock %}
\ No newline at end of file
+<a href="/tema/goster/son/">Tema Anasayfa</a>
+<div>
+ <div>Kategori</div>
+ <div>İsim</div>
+ <div>Açıklama</div>
+ <div>Thumb</div>
+
+ <div>Link</div>
+ <div>Gönderen</div>
+ <div>Lisans</div>
+
+ <div>Görülmüş</div>
+ <div>Oy</div>
+ {% if auth %}
+ <div>Oy kullan</div>
+ {% endif %}
+</div>
+{% if dosya %}
+<div>
+ <div><a href="{{dosya.parent_cat.get_absolute_url}}">{{dosya.parent_cat}}</a></div>
+ <div>{{dosya.name}}</div>
+ <div>{{dosya.description}}</div>
+ <div>
+ {% for screen in dosya.screens.all %}
+ <img src="../../../media/{{screen}}" width="100" height="100"/><br/>
+ {% endfor %}
+ </div>
+
+ <div>
+ {% for file in dosya.file_data.all %}
+ <a href="../../../media/{{file}}">İndir</a><br/>
+ {% endfor %}
+ </div>
+ <div>{{dosya.user}}</div>
+ <div>{{dosya.licence}}</div>
+ <div>{{dosya.counter}}</div>
+ <div>{{dosya.rate}}</div>
+ {% if auth %}
+ <div>
+ <form method="post" action="/tema/oy/">
+ {{form.vote.label}}:{{form.vote}}
+ <input type="hidden" name="dosya_id" value="{{ dosya.id }}" />
+ <button type="submit">Gönder</button>
+ </form>
+ {% if error %}
+ <div>{{error}}</div>
+ {% endif %}
+ </div>
+ {% endif %}
+</div>
+{% endif %}
+{% if auth %}
+<div>
+{% comment_form for tema.dosya dosya.id %}
+</div>
+{% else %}
+ <b>Yorum yapabilmek için giriş yapmanız gerekir!</b>
+{% endif %}
+{% get_public_comment_list for tema.dosya dosya.id as comments %}
+{% if comments %}
+<div>
+ <div>link#</div>
+ <div>İsim</div>
+ <div>Yorum</div>
+ <div>IP</div>
+ <div>Tarih</div>
+</div>
+<div>
+{% for comment in comments %}
+ <div>{{comment.get_absolute_url}}</a></div>
+ <div>{{comment.person_name}}</div>
+ <div>{{comment.comment}}</div>
+ <div>{{comment.ip_address}}</div>
+ <div>{{comment.submit_date}}</div>
+</div>
+{% endfor %}
+{% endif %}
+{% endblock %}
Modified: trunk/templates/tema/main.html
=================================================================
--- trunk/templates/tema/main.html (original)
+++ trunk/templates/tema/main.html Thu May 15 07:49:13 2008
@@ -1,80 +1,60 @@
+{% extends "tema/base.html" %}
{% load thumbman %}
{% load comment_utils %}
-
+{% block header_menu %}
+ {% include "header.html" %}
+{% endblock %}
+{% block ust_menu %}
+ {% include "ust_menu_ayrinti.html" %}
+{% endblock %}
{% block content %}
- <div align="center"><a href="/tema/goster/son/">En son eklenen</a> |
- <a href="/tema/goster/indirilen/">En çok ziyaret Edilen</a>
- <a href="/tema/goster/begenilen/">| En çok oy alan</a></div>
- <a href="/tema/ekle/">| Ekle</a></div>
- <table summary="Submitted table designs" border="1" align="center">
- <caption>Tema Dosyalar</caption>
- <thead>
- <tr>
- <th scope="col">Kategori</th>
- <th scope="col">İsim</th>
- <th scope="col">Thumb</th>
-
- <th scope="col">Link</th>
- <th scope="col">Gönderen</th>
- <th scope="col">Lisans</th>
-
- <th scope="col">Görülmüş</th>
- <th scope="col">Oy</th>
- <th scope="col">Yorum</th>
- </tr>
-
- </thead>
-
- <tbody>
- {% if object_list %}
- {% for dosya in object_list %}
- <tr >
- <th scope="row"><a href="{{dosya.parent_cat.get_absolute_url}}">{{dosya.parent_cat}}</a> |<a href="/tema/feed/kategori/rss/{{dosya.parent_cat.id}}/"> RSS</a> |<a href="/tema/feed/kategori/atom/{{dosya.parent_cat.id}}/">ATOM</a></th>
- <td><a href="{{dosya.get_absolute_url}}">{{dosya.name}}</a></td>
-
- <td>{% for screen in dosya.screens.all %}
- <img src="../../../media/{{screen}}" width="100" height="100"/><br/>
- {% endfor %}
- </td>
-
- <td>{% for file in dosya.file_data.all %}
- <a href="../../../media/{{file}}">Link</a><br/>
- {% endfor %}</td>
-
-
- <td><a href="/tema/kullanici/{{dosya.user}}/">{{dosya.user}}</a>
- |<a href="/tema/feed/kullanici/rss/{{dosya.user.id}}/"> RSS</a> |<a href="/tema/feed/kullanici/atom/{{dosya.user.id}}/">ATOM</a>
- <br/></td>
- <td>{{dosya.licence}}</td>
- <td>{{dosya.counter}}</td>
- <td>{{dosya.rate}}</td>
- <td>{% get_public_comment_count for tema.dosya dosya.id as comment_count %}{{comment_count}}</td>
-
- </tr>
- {% endfor %}
- {% endif %}
- <tr>
- <th scope="row"></th>
- <td></td>
-
- <td>
- {% if has_previous %}
- <div id="leftcolumn"><a href="?page={{previous}}">Onceki</a></div>
- {% endif %}
- </td>
-
- <td>
- {% if has_next %}
- <div id="rightcolumn"><a href="?page={{next}}">Sonraki</a></div>
- {% endif %}
- </td>
- <td></td>
- <td></td>
- </tr>
-</tbody>
-</table>
-
-
-
-{% endblock %}
\ No newline at end of file
+<div>
+ <a href="/tema/goster/son/">En son eklenen</a>
+ <a href="/tema/goster/indirilen/">En çok ziyaret Edilen</a>
+ <a href="/tema/goster/begenilen/">En çok oy alan</a>
+</div>
+<div><a href="/tema/ekle/">Ekle</a></div>
+<div>Dosyalar</div>
+<div>
+ <div>Kategori</div>
+ <div>İsim</div>
+ <div>Thumb</div>
+ <div>Link</div>
+ <div>Gönderen</div>
+ <div>Lisans</div>
+
+ <div>Görülmüş</div>
+ <div>Oy</div>
+ <div>Yorum</div>
+</div>
+<div>
+{% if object_list %}
+ {% for dosya in object_list %}
+ <div><a href="{{dosya.parent_cat.get_absolute_url}}">{{dosya.parent_cat}}</a></div>
+ <div><a href="/tema/feed/kategori/rss/{{dosya.parent_cat.id}}/"> RSS</a></div>
+ <div><a href="/tema/feed/kategori/atom/{{dosya.parent_cat.id}}/">ATOM</a></div>
+ <div><a href="{{dosya.get_absolute_url}}">{{dosya.name}}</a></div>
+ <div><img src="../../../media/{{dosya.screens.all.0}}" alt="ekran görüntüsü" width="100px" /></div>
+ <div>
+ {% for file in dosya.file_data.all %}
+ <a href="../../../media/{{file}}">Bağlantı</a>
+ {% endfor %}
+ </div>
+ <div><a href="/tema/kullanici/{{dosya.user}}/">{{dosya.user}}</a></div>
+ <div><a href="/tema/feed/kullanici/rss/{{dosya.user.id}}/"> RSS</a></div>
+ <div><a href="/tema/feed/kullanici/atom/{{dosya.user.id}}/">ATOM</a></div>
+ <div>{{dosya.licence}}</div>
+ <div>{{dosya.counter}}</div>
+ <div>{{dosya.rate}}</div>
+ <div>{% get_public_comment_count for tema.dosya dosya.id as comment_count %}{{comment_count}}</div>
+ {% endfor %}
+{% endif %}
+{% if has_previous %}
+ <div><a href="?page={{previous}}">Önceki</a></div>
+{% endif %}
+{% if has_next %}
+ <div><a href="?page={{next}}">Sonraki</a></div>
+{% endif %}
+</div>
+{% endblock %}
More information about the Oi-commits
mailing list