[Oi-commits] r1495 - in trunk: media/css templates/forum

oi-commits at pardus.org.tr oi-commits at pardus.org.tr
Thu Jun 19 13:56:56 EEST 2008


Author: jnmbk
Date: Thu Jun 19 13:56:56 2008
New Revision: 1495

Modified:
   trunk/media/css/forum.css
   trunk/templates/forum/topic.html
Log:
some makeup

Modified: trunk/media/css/forum.css
=================================================================
--- trunk/media/css/forum.css	(original)
+++ trunk/media/css/forum.css	Thu Jun 19 13:56:56 2008
@@ -458,12 +458,30 @@
     width: 31%;
     padding: 10px;
 }
-div.topic_poll {
+div.poll_bar {
     height: 16px;
-    width: 400px;
+    width: 80%;
     border: 1px solid #6992A6;
 }
-div.topic_poll div {
+div.poll_bar div {
     float: left;
     height: 100%;
 }
+div.poll {
+    width: 100%;
+    overflow: hidden;
+}
+div.poll a {
+    text-decoration: none;
+}
+div.poll a:hover {
+    text-decoration: underline;
+}
+div.poll_question {
+    padding-left: 10px;
+}
+div.poll_option {
+    padding-left: 10px;
+    border-top: 1px solid #CBD8E0;
+    margin-bottom: 3px;
+}

Modified: trunk/templates/forum/topic.html
=================================================================
--- trunk/templates/forum/topic.html	(original)
+++ trunk/templates/forum/topic.html	Thu Jun 19 13:56:56 2008
@@ -23,14 +23,20 @@
 
 {% if topic.poll %}
 <div class="poll">
-{{ topic.poll.question }}<br />
-<ul>
-{% for option in poll_options %}
-<li>{% if poll_enabled %}<a href="{{ forum.get_absolute_url }}{{ topic.id }}/poll/vote/{{ option.id }}/" title="oy vermek için tıklayın">{{ option.text }}</a>{% else %}{{ option.text }}{% endif %}<br /><div class="topic_poll"><div style="width:{{ option.percent }}%;background-color:#51798E;">{% if option.percent_out %}&nbsp;</div><span>%{{ option.percent }} ({{ option.vote_count }} oy)</span>{% else %}<span style="float:right;color:white;">%{{ option.percent }} ({{ option.vote_count }} oy)</span></div>{% endif %}</div></li>
-{% endfor %}
-</ul>
-{% if perms.forum.can_change_poll %}<a href="{{ topic.get_change_poll_url }}">change</a> - <a href="{{ topic.get_delete_poll_url }}">delete</a>{% endif %}
-{% if topic.poll.date_limit %}<br />Oylama bitiş tarihi: {{ topic.poll.end_date|date:"j F Y l" }}{% endif %}
+    <div class="poll_question">
+        <h3>Anket: {{ topic.poll.question }}</h3>
+        {% if topic.poll.date_limit %}<br />Oylama bitiş tarihi: {{ topic.poll.end_date|date:"j F Y l" }}{% endif %}
+        {% if perms.forum.can_change_poll %}<a href="{{ topic.get_change_poll_url }}">change</a> - <a href="{{ topic.get_delete_poll_url }}">delete</a>{% endif %}
+    </div>
+    <div class="poll_options">
+    {% for option in poll_options %}
+    <div class="poll_option">
+        {% if poll_enabled %}<a href="{{ forum.get_absolute_url }}{{ topic.id }}/poll/vote/{{ option.id }}/" title="oy vermek için tıklayın">{{ option.text }}</a>{% else %}{{ option.text }}{% endif %}<br />
+        <div class="poll_bar">
+            <div style="width:{{ option.percent }}%;background-color:#51798E;">{% if option.percent_out %}&nbsp;</div><span>%{{ option.percent }} ({{ option.vote_count }} oy)</span>{% else %}<span style="float:right;color:white;">%{{ option.percent }} ({{ option.vote_count }} oy)</span></div>{% endif %}</div>
+        </div>
+    {% endfor %}
+    </div>
 </div>
 {% endif %}
 


More information about the Oi-commits mailing list