]> git.parisson.com Git - teleforma.git/commitdiff
fix doc down style
authoryomguy <yomguy@parisson.com>
Tue, 19 Jun 2012 18:08:43 +0000 (20:08 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 19 Jun 2012 18:08:43 +0000 (20:08 +0200)
teleforma/static/teleforma/css/teleforma.css
teleforma/static/teleforma/images/download.png [new file with mode: 0644]
teleforma/templates/teleforma/inc/document_list.html

index 1e7e77bdf99d2dc835defd09ba857c3184694545..6969b4c6a49f478b46194a99f4e298d98a51dc53 100644 (file)
@@ -1329,6 +1329,7 @@ input,textarea{
 #module-set {
     float: right;
     clear: right;
+    padding-right: 1em;
 }
 
 #module-set .module {
@@ -1400,7 +1401,7 @@ input,textarea{
 
 .desk_center {
     float: left;
-    width:52%;
+    width:50%;
     padding: 0em 2em 0em 2em;
     max-height: 550px;
     overflow-y: auto;
diff --git a/teleforma/static/teleforma/images/download.png b/teleforma/static/teleforma/images/download.png
new file mode 100644 (file)
index 0000000..1f9c869
Binary files /dev/null and b/teleforma/static/teleforma/images/download.png differ
index 6da984695fffbc7ce89a38f93ebb4f4748d61add..29283f03bb6e1e918a0ed13c3ca62f5c26550f50 100644 (file)
     <tbody>
         {% for document in course.document.all|from_course_type:type|from_doc_type:doc_type %}
         <tr>
-        <td {% if forloop.counter0 == 0 %}class="border-top"{% endif %}>{% if document.file %}<a href="{% url teleforma-document-view document.id %}" target="_blank" title="{% trans "View" %}"><img src="{{ STATIC_URL }}/teleforma/images/application-msword.png" style="vertical-align:middle" alt="" />{% endif %} {{ document.title }}{% if document.file %}</a>{% endif %}</td>
+        <td {% if forloop.counter0 == 0 %}class="border-top"{% endif %} width="60%">{% if document.file %}<a href="{% url teleforma-document-view document.id %}" target="_blank" title="{% trans "View" %}"><img src="{{ STATIC_URL }}/teleforma/images/application-msword.png" style="vertical-align:middle" alt="" />{% endif %} {{ document.title }}{% if document.file %}</a>{% endif %}</td>
         <!--<td align="center">
         {% if document.is_annal %}
           <img src="images/ok.png" alt="yes" style="vertical-align:middle" />&nbsp;
         {% endif %}
         </td>-->
-        <td {% if forloop.counter0 == 0 %}class="border-top"{% endif %}>{{ document.date_added }}</td>
-        <td {% if forloop.counter0 == 0 %}class="border-top"{% endif %} align="center">{% if document.file %}<a href="{% url teleforma-document-download document.id %}"><img src="{% url telemeta-images "download.png" %}" width="16px"  style="vertical-align:middle" alt="" title="{% trans "Download" %}" /></a>{% endif %}</td>
+        <td {% if forloop.counter0 == 0 %}class="border-top"{% endif %} width="35%">{{ document.date_added }}</td>
+        <td {% if forloop.counter0 == 0 %}class="border-top"{% endif %} width="5%" align="center">{% if document.file %}<a href="{% url teleforma-document-download document.id %} class="component_icon button icon_download""><img src="{{ STATIC_URL }}teleforma/images/download.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" /></a>{% endif %}</td>
         </tr>
     {% endfor %}
     </tbody>