]> git.parisson.com Git - telemeta.git/commitdiff
upgrade item buttons
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 14 Nov 2014 01:18:09 +0000 (02:18 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 14 Nov 2014 01:18:09 +0000 (02:18 +0100)
telemeta/templates/telemeta/mediaitem_detail.html

index 7654c16c93ed0dd82160f8e169ba3b0d5a99195f..fa8fb68d5d9fcf8be789c985e828f5e34fe19428 100644 (file)
 {% if item %}
 
 {% block title %}
-<img src="{{ STATIC_URL }}telemeta/images/item.png" alt="item" style="vertical-align:middle" />
-Item : <a href="{% url "telemeta-item-detail" item.public_id %}">{{ item }}</a>
+<div class='row'>
+    <div class="col-md-12">
+     <img src="{{ STATIC_URL }}telemeta/images/item.png" alt="item" style="vertical-align:middle" /> Item : <a href="{% url "telemeta-item-detail" item.public_id %}">{{ item }}</a>
+    </div>
+</div>
+
 {% endblock %}
 
 {% block title_buttons %}
 <div class="fixedWidthAsPlayer">
+    <a href="{% url "telemeta-item-detail" previous %}">
+      <button type="button" class="btn btn-default">
+        <span class="glyphicon glyphicon-chevron-left"></span>
+      </button>
+    </a>
     {% if user.is_authenticated and perms.telemeta.change_mediaitem %}
-    <a href="{% url "telemeta-item-edit" item.id %}" class="component_icon button icon_edit">{% trans "Edit" %}</a>
-    <a href="{% url "telemeta-item-copy" item.public_id %}" class="component_icon button icon_copy">{% trans "Copy" %}</a>
+    <a href="{% url "telemeta-item-edit" item.id %}">
+      <button type="button" class="btn btn-default">
+        <span class="glyphicon glyphicon-edit"></span> {% trans "Edit" %}
+      </button>
+    </a>
+    <a href="{% url "telemeta-item-copy" item.public_id %}">
+      <button type="button" class="btn btn-default">
+        <span class="glyphicon glyphicon-new-window"></span> {% trans "Copy" %}
+      </button>
+    </a>
     {% endif %}
     {% if user.is_authenticated %}
-    <a id="_add_to_playlist" href='#' class="component_icon button icon_add_to_playlist">{% trans "Add to playlist" %}</a>
+    <a id="_add_to_playlist" href='#'>
+      <button type="button" class="btn btn-default">
+        <span class="glyphicon glyphicon-pushpin"></span> {% trans "List" %}
+      </button>
+    </a>
     {% endif %}
-    <a href="{% url "telemeta-item-detail" previous %}" class="component_icon button icon_previous">{% trans "Previous" %}</a>
-    <a href="{% url "telemeta-item-detail" next %}" class="component_icon button icon_next">{% trans "Next" %}</a>
+    <a href="{% url "telemeta-item-detail" next %}">
+      <button type="button" class="btn btn-default">
+        <span class="glyphicon glyphicon-chevron-right"></span>
+      </button>
+    </a>
 </div>
-{% endblock %}
+{% endblock title_buttons %}
+
 
 {% block content %}
 <div class="{% if item.file %}{% if access == 'full' or perms.telemeta.can_play_all_items %}with-rightcol{% endif %}{% endif %}">