Commits

Richard Jones committed e1198b5

fixes

  • Participants
  • Parent commits 4e2fd05

Comments (0)

Files changed (3)

File pyweek/challenge/templates/challenge/award.html

 <h1>The &ldquo;{{award.description}}&rdquo; Award</h1>
 
 
-<img src="http://media.pyweek.org/dl/{{award.content}}" /><br/>
+<img src="{{ MEDIA_URL }}{{award.content}}" /><br/>
 <em>Presented by <a href="/u/{{award.creator}}">{{award.creator}}</a></em> to:
 <p>
 <table>

File pyweek/challenge/templates/challenge/entry.html

 {% for award in awards %}
   <div class="award">
     <a href="/a/{{award.award.id}}">
-      <img src="http://media.pyweek.org/dl/{{award.content}}">
+      <img src="{{ MEDIA_URL }}{{award.content}}">
     </a>
     <br>
     <strong>{{award.description|escape}}</strong><br>

File pyweek/challenge/templates/challenge/user_display.html

   {% for entryaward in received_awards %}
     <div class="award">
       <a href="/a/{{entryaward.award.id}}">
-          <img src="{{ MEDIA_URL }}dl/{{entryaward.award.content}}">
+          <img src="{{ MEDIA_URL }}{{entryaward.award.content}}">
       </a>
       <br/>
       <strong>{{entryaward.description|escape}}</strong>
-      <em>Presented 
+      <em>Presented
         by <a href="/u/{{entryaward.creator}}">{{entryaward.creator}}</a>
         for <a href="/e/{{entryaward.entry.name}}">{{entryaward.entry.title|escape}}</a>
        </em>