Rollback fix from yesterday
authorCharles Connell <charles@connells.org>
Tue, 11 Mar 2014 22:06:03 +0000 (18:06 -0400)
committerCharles Connell <charles@connells.org>
Tue, 11 Mar 2014 22:06:03 +0000 (18:06 -0400)
karmaworld/apps/notes/models.py
karmaworld/templates/notes/note_detail.html

index 45c4caaac162247d3da29767ad52686342958467..10ab87aa79f8608dc85e7c89b13f145c2bce2b4a 100644 (file)
@@ -157,10 +157,6 @@ class Document(models.Model):
         """
         Returns the Filepicker URL for reading the upstream document.
         """
-        # Fetch FilepickerFile
-        if not self.fp_file.name:
-            return None
-
         fpf = self._get_fpf()
         # Return proper URL for reading
         return fpf.get_url()
index 52286c356082bbb7ee704c63cf3a736ba558097a..0f6ac931aa8a3cc1ac09595d446fed35c2ddf159 100644 (file)
                 </a>
               </div>
               <div class="small-4 column">
-                {% if note.get_fp_url %}
-                  <a id="note-download-button" href="{{ note.get_fp_url }}">
-                    <img
-                      src="{{ STATIC_URL }}img/note_download.png"
-                      alt="note_download"
-                      width="51" height="36"
-                      data-ot="It costs 2 karma points to download a note"
-                      {% include 'partial/opentip_settings.html' %}
-                      class="opentip" />
-                  </a>
-                {% else %}
+                <a id="note-download-button" href="{{ note.get_fp_url }}">
                   <img
-                    src="{{ STATIC_URL }}img/note_download_disabled.png"
+                    src="{{ STATIC_URL }}img/note_download.png"
                     alt="note_download"
                     width="51" height="36"
-                    data-ot="Sorry, this note cannot be downloaded"
+                    data-ot="It costs 2 karma points to download a note"
                     {% include 'partial/opentip_settings.html' %}
                     class="opentip" />
-                {% endif %}
+                </a>
               </div>
             {% else %}
               <div class="small-4 column">