]> git.parisson.com Git - telemeta.git/commitdiff
modify user home and last changes
authoryomguy <yomguy@parisson.com>
Tue, 15 Mar 2011 09:25:33 +0000 (10:25 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 15 Mar 2011 09:25:33 +0000 (10:25 +0100)
telemeta/templates/telemeta_default/collection_detail.html
telemeta/templates/telemeta_default/collection_list.html
telemeta/templates/telemeta_default/home.html
telemeta/templates/telemeta_default/mediaitem_add.html
telemeta/templates/telemeta_default/mediaitem_detail.html
telemeta/templates/telemeta_default/mediaitem_detail_dc.html
telemeta/templates/telemeta_default/mediaitem_list.html

index d939e3045a6c48848f71464853bc09c96a6d5729..5abd52f047ec74f5cc9b55ea69c2e23aba9ce5b9 100644 (file)
 
 {% block submenu %}
     <div>
-<!--    <a href="{% url telemeta-collection-dublincore collection.public_id %}">Dublin Core</a>-->
-    <a href="{% url telemeta-collection-dublincore collection.public_id %}" class="mediaitem_button mediaitem_button_dublin_core">Dublin Core</a>
-
+    <a href="{% url telemeta-collection-dublincore collection.public_id %}">Dublin Core</a>
+    
     {% if user.is_authenticated and perms.telemeta.change_mediacollection %}
      {% block tools %}
-     <!--<a href="{% url telemeta-collection-edit collection.public_id %}">
+     <a href="{% url telemeta-collection-edit collection.public_id %}">
       <img src="images/edit_page.png" alt="EDIT" style="vertical-align:middle" /></a>
       <button><a href="{% url telemeta-collection-copy collection.public_id %}">Copy</a></button>
-      -->
-
-       <a href="{% url telemeta-collection-edit collection.public_id %}" class="mediaitem_button mediaitem_button_edit">Edit</a>
-    <a href="{% url telemeta-collection-copy collection.public_id %}" class="mediaitem_button mediaitem_button_copy">Copy</a>
-
      {% endblock tools %}
     {% endif %}
     
index 1528c0491fd5d0d6ae3d5c28178b9a65f18cd059..7cf243b62733584a4e0c107ceda97a745ae496c1 100644 (file)
@@ -8,7 +8,7 @@
     <div class="buttons">  
     {% if user.is_authenticated and perms.telemeta.add_mediacollection %}
 <!--     <button><a href="{% url telemeta-collection-add %}">Add</a></button>-->
-      <a href="{% url telemeta-collection-add %}" class="mediaitem_button mediaitem_button_add">Add</a>
+      <a href="{% url telemeta-collection-add %}" class="roundBorder6 mediaitem_button mediaitem_button_add">Add</a>
 
     {% endif %}
     </div>
index 815f0c46991232dab7a2e7ee6a4f811dbef8c4e1..e9d29efd0fa5f557e974ccfc4c895b6c08b822ca 100644 (file)
@@ -10,7 +10,7 @@
  <form method="POST" action="">{% csrf_token %}
   {% for playlist in playlists %}
   <li>{{ playlist.name }}</li>
-    <table class="listing" width="50%">
+    <table class="listing" width="75%">
         <tr>
             <th class="highlight">{% trans "Title" %}</th>
             <th>{% trans "Type" %}</th>
@@ -57,7 +57,7 @@
 <br />
 <div>
 <h3>Searches</h3>
-    <table class="listing">
+    <table class="listing" width="75%">
      <tr>
         <th class="highlight">Date</th>
         <th>Keywords</th>
 <br />
 <div>
 <h3>Last changes</h3>
-    <table class="listing">
-     <tr>
+    <table class="listing" width="75%">
+      <tr>
         <th class="highlight">Date</th>
-        <th>Code</th>
         <th>Type</th>
+        <th>{% trans "Title" %}</th>
         <th>Change type</th>
-       
-    </tr>
+        <th>User</th>
+      </tr>
     {% for r in revisions %}
-    <tr>
+     <tr>
         <td>{{ r.revision.time }}</td>
-        {% if r.revision.type == "item" %}
-         <td><a href="{% url telemeta-item-detail r.element.public_id %}">{{ r.element }}</td>
-        {% else %}
-         <td><a href="{% url telemeta-collection-detail r.element.public_id %}">{{ r.element }}</td>
-            {% endif %}
         <td>{{ r.revision.element_type }}</td>
-        <td>{{ r.revision.change_type }}</td>
-       
-    </tr>
+        {% if r.revision.type == "collection" %}
+          <td><a href="{% url telemeta-collection-detail r.element.public_id %}">{{ r.element }}</td>
+        {% else %}
+         {% if r.element %}
+          <td><a href="{% url telemeta-item-detail r.element.public_id %}">{{ r.element.title }}</td>
+         {% else %}
+          <td>{{ r.element }}</td>
+         {% endif %}
+        {% endif %}
+        {% if r.element %}
+         <td>{{ r.revision.change_type }}</td>
+        {% else %}
+         <td>delete</td>
+        {% endif %}
+         <td>{{ r.revision.user.username }}</td>
+     </tr>
     {% endfor %}
     </table>
-
-
-
 </div>
 
 </div>
index 9f817cfffb59ee201495a2650ec1436516c57709..3b7eafc5c0ecfaa06e8617ec13d4c5a5b4a1223c 100644 (file)
@@ -13,7 +13,7 @@
 <!--     <a href="{% url telemeta-item-detail item.public_id %}">
          <img src="images/edit_cancel.png" /></a>-->
  <a href="{% url telemeta-item-detail item.public_id %}"
-           class="mediaitem_button mediaitem_button_cancel">Cancel</a>
+           class="roundBorder6 mediaitem_button mediaitem_button_cancel">Cancel</a>
     {% endblock tools %}
     
     {% endif %}
@@ -41,8 +41,8 @@
          <img src="images/edit_cancel.png" style="vertical-align:middle" /></a>
         <input type="image" src="images/save_changes.png" style="vertical-align:middle" value="save" />-->
         <a href="{% url telemeta-item-detail item.public_id %}"
-           class="mediaitem_button mediaitem_button_cancel">Cancel</a>
-<a href="#" class="mediaitem_button mediaitem_button_save"
+           class="roundBorder6 mediaitem_button mediaitem_button_cancel">Cancel</a>
+<a href="#" class="roundBorder6 mediaitem_button mediaitem_button_save"
    onclick="document.getElementById('_addItemForm').submit(); return false;">Save</a>
        </div>
      </form>
index 20deac60859e63ded73e9c75a9c5b6ec4b0fe796..41f4aad4776f22f4e11c8e20e664bfcf4d0a822e 100644 (file)
@@ -33,7 +33,6 @@
     <script type='text/javascript'>var CURRENT_USER_NAME=undefined;</script>
 {% endif %}
 
-
 {% endblock %}
 
 
index 493ee6b0d8fbd0f1d4013a9e4d5bafa83a302b90..16a82f1029a18b97346c25933a8145f2d623b247 100644 (file)
@@ -1,16 +1,13 @@
-{% extends "telemeta/base.html" %}\r
+{% extends "telemeta/mediaitem_detail.html" %}\r
 {% load telemeta_utils %}\r
 {% load i18n %}\r
 \r
-{% block head_title %}{% trans "Item" %}{{item|prepend:': '}} - {{ block.super }}{% endblock %}\r
-\r
 {% if item %}\r
 {% block submenu %}\r
-    <h3>Item: {{ item }}</h3>\r
     <div><a href="{% url telemeta-item-detail item.public_id %}">{% trans "Normal View" %}</a></div>\r
 {% endblock %}\r
 \r
-{% block content %}\r
+{% block infos %}\r
 {% with item|to_dublincore as resource %}\r
 {% include "telemeta/inc/dublincore.html" %}\r
 {% endwith %}\r
index e05327630bc4a50fcd61178122c879ded84f24f5..5bbf9228fbccc3392e680f64a2efa9465d88b259 100644 (file)
@@ -8,8 +8,7 @@
 {% block submenu %}
     <div class="buttons">  
     {% if user.is_authenticated and perms.telemeta.add_mediaitem %}
-    <!-- <button><a href="{% url telemeta-item-add %}">Add</a></button>-->
-     <a href="{% url telemeta-item-add %}" class="mediaitem_button mediaitem_button_add">Add</a>
+     <button><a href="{% url telemeta-item-add %}">Add</a></button>
     {% endif %}
     </div>
 {% endblock %}