Changeset 2ef47b8


Ignore:
Timestamp:
22/06/2011 18:29:26 (3 years ago)
Author:
riccardo <riccardo@…>
Branches:
master, crem, crem2, dev, dev2, diadems, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, test, video
Children:
9b202e11
Parents:
59a51a3
git-author:
riccardo <riccardo@…> (22/06/2011 18:29:26)
git-committer:
riccardo <riccardo@…> (22/06/2011 18:29:26)
Message:

fixed delete item button

Location:
telemeta
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • telemeta/htdocs/js/locale.js

    r65fa35a r2ef47b8  
    1010    'author' : gettext('author'), 
    1111    'Paste HTML to embed player in website': gettext('Paste HTML to embed player in website'), 
     12    'delete the item permanently?' : gettext('delete the item permanently?') 
    1213}; 
    1314 
  • telemeta/templates/telemeta_default/base.html

    rea7656e r2ef47b8  
    103103{% block content %}{% endblock %} 
    104104<div class="nett"></div> 
     105{% block deleteitem %}{% endblock %} 
    105106</div> 
    106107 
  • telemeta/templates/telemeta_default/mediaitem_detail.html

    r59a51a3 r2ef47b8  
    264264</div> <!-- with-rightcol --> 
    265265{% if user.is_authenticated and perms.telemeta.delete_mediaitem %} 
    266 <div style="float: right;"> 
    267  <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url telemeta-item-delete item.public_id %}';};return false;"  class="component_icon button icon_delete">{% trans "Delete" %}</a> 
    268 </div> 
    269266{% endif %} 
     267{% endblock %} 
     268{% block deleteitem %} 
     269 <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url telemeta-item-delete item.public_id %}';};return false;"   
     270        class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a> 
    270271{% endblock %} 
    271272{% else %} 
Note: See TracChangeset for help on using the changeset viewer.