[Oi-commits] r1762 - branches/newdesign/ideas/templates

oi-commits at pardus.org.tr oi-commits at pardus.org.tr
Mon Sep 1 16:26:15 EEST 2008


Author: huseyin.berberoglu
Date: Mon Sep  1 16:26:15 2008
New Revision: 1762

Modified:
   branches/newdesign/ideas/templates/idea_detail.html
   branches/newdesign/ideas/templates/idea_top.html
Log:
add favorite button

Modified: branches/newdesign/ideas/templates/idea_detail.html
=================================================================
--- branches/newdesign/ideas/templates/idea_detail.html	(original)
+++ branches/newdesign/ideas/templates/idea_detail.html	Mon Sep  1 16:26:15 2008
@@ -1,3 +1,5 @@
+#ifndef IDEAS/TEMPLATES/IDEA_DETAIL_HTML
+#define IDEAS/TEMPLATES/IDEA_DETAIL_HTML
 {% extends "idea_list.html" %}
 
 {% block idea %}
@@ -17,7 +19,7 @@
         {% endfor %}
         </div>
 
-    {% if bugs %}
+        {% if idea.bug_numbers %}
         <div class="h3">Hata kayıtları</div>
         <div class='idea_detail_box'>
         {% for bug in bugs %}
@@ -67,3 +69,4 @@
 </div>
 
 {% endblock %}
+#endif // IDEAS/TEMPLATES/IDEA_DETAIL_HTML

Modified: branches/newdesign/ideas/templates/idea_top.html
=================================================================
--- branches/newdesign/ideas/templates/idea_top.html	(original)
+++ branches/newdesign/ideas/templates/idea_top.html	Mon Sep  1 16:26:15 2008
@@ -6,6 +6,12 @@
         <div id="vote{{ idea.id }}_0">
             <input id="img_{{ idea.id }}_0" type="image" src="/media/img/new/ideas_vote{% ifequal idea.user_vote 0 %}d{% endifequal %}_0.png" onclick="oyla({{ idea.id }}, 0);" {% ifequal idea.user_vote 0 %}class="voted"{% else %}{% ifequal idea.user_vote 1 %}class="cursor_default" disabled="disabled"{% endifequal %}{% endifequal %} />
         </div>
+        <div id="favoricikar{{ idea.id }}" {% if not idea.is_favorited %}style="display:none;"{% endif %}>
+            <a href="/yenifikir/ayrinti/1/favori/cikar" onclick="favori({{ idea.id  }}, 'cikar');return false;"><img src="/media/img/new/ideas_favorited.png" alt="Fikir favorilerinize eklenmiş" /></a>
+        </div>
+        <div id="favoriekle{{ idea.id }}" {% if idea.is_favorited %}style="display:none;" {% endif %}>
+            <a href={% if user.is_authenticated %}"/yenifikir/ayrinti/1/favori/ekle" onclick="favori({{ idea.id }}, 'ekle'); return false;"{% else %}"/yenifikir/giris/yap"{% endif %}><img src="/media/img/new/ideas_favorite.png" alt="Favorilere ekle" /></a>
+        </div>
     </div>
     <div class="idea_right">
         <div class="h1"><a href="/yenifikir/ayrinti/{{ idea.id }}">{{ idea.title }}</a></div>


More information about the Oi-commits mailing list