Commits

dafax committed 3e80d09

Fix some paths

  • Participants
  • Parent commits 8fc1c6c

Comments (0)

Files changed (3)

File templates/flashsex.ru/flash-list.html

    <div class="gameblock">
     <!-- GAME START -->
          <div class="game">
-          <div class="game_thumb"><a href="/game/{{ g.id }}/"><img width="300px" height="300px" src="{{ MEDIA_URL }}{% if g.thumbfile %}{{ g.thumbfile }}{% else %}images/noimage.jpg{% endif %}" alt="{{ g.name }}" /></a></div>
+          <div class="game_thumb"><a href="/game/{{ g.id }}/"><img width="300px" height="300px" src="{% if g.thumbfile %}{{ MEDIA_URL }}{{ g.thumbfile }}{% else %}{{ STATIC_URL }}images/noimage.jpg{% endif %}" alt="{{ g.name }}" /></a></div>
           <div class="game_des">
 	  <a href="/game/{{ g.id }}/"><strong>{{ g.name }}</strong></a><br />
           <p>{{ g.description|truncatewords:20 }}</p>

File templates/flashsex.ru/flash-random.html

   {% for g in random %}
   <div style="width:102px; float:left; ">
     <div style="float:left;">
-      <a title="{{ g.name }}" href="/game/{{ g.id }}/"><img alt="{{ g.name }}" src="{{ MEDIA_URL }}{% if g.thumbfile %}{{ g.thumbfile }}{% else %}images/noimage.jpg{% endif %}" border="0" width="100px" /></a>
+      <a title="{{ g.name }}" href="/game/{{ g.id }}/"><img alt="{{ g.name }}" src="{% if g.thumbfile %}{{ MEDIA_URL }}{{ g.thumbfile }}{% else %}{{ STATIC_URL }}images/noimage.jpg{% endif %}" border="0" width="100px" /></a>
     </div>
   </div>
   {% endfor %}

File templates/flashsex.ru/index.html

 <b>Топ пользователей:</b>
   <ul>
     {% for p in top_profiles %}
-    <li><a href="{{ p.get_absolute_url }}">{{ p.user.username }} <img src="{{ MEDIA_URL }}images/star.png" width="14px" /> <b>{{ p.score }}</b></a></li>
+    <li><a href="{{ p.get_absolute_url }}">{{ p.user.username }} <img src="{{ STATIC_URL }}images/star.png" width="14px" /> <b>{{ p.score }}</b></a></li>
     {% endfor %}
   </ul>
 </div>