anchor.diff:        <%= link_to (raw("<i class='icon-edit'></i> <span class='hidden-tablet hidden-phone'>")) + t('document.actions.edit')+ raw("</span>"), '#document-edit', 'data-toggle' => 'tab' %>
       </li>
       <% end %>
  -    <%if document.class==Video || document.class==Audio || document.class==Picture || document.class==Swf || document.class==Embed || document.class==Officedoc || document.class == Scormfile || document.class == Webapp %>
  +    <%if document.class==Video || document.class==Audio || document.class==Picture || document.class==Swf || document.class==Embed || document.class==Officedoc || document.class == Scormfile || document.class == Webapp ||  document.class == Link %>
         <li class="<%= document_details_tab_class document, :embed %>">
             <%= link_to (raw("<i class='icon-code'></i> <span class='hidden-tablet hidden-phone'>")) + t('excursion.actions.embed')+ raw("</span>"), '#document-embed', 'data-toggle' => 'tab' %>
         </li>
       <%end%>
  -    <li class="<%= document_details_tab_class document, :download %>">
  -        <%= link_to (raw("<i class='icon-download'></i> <span class='hidden-tablet hidden-phone'>")) + t('document.actions.download')+ raw("</span>"), '#document-download', 'data-toggle' => 'tab' %>
  -    </li>
  +    <%if document.class!=Link %>
  +      <li class="<%= document_details_tab_class document, :download %>">
  +          <%= link_to (raw("<i class='icon-download'></i> <span class='hidden-tablet hidden-phone'>")) + t('document.actions.download')+ raw("</span>"), '#document-download', 'data-toggle' => 'tab' %>
  +      </li>
  +    <% end %>
   
       <li>
         <a href="#tab3" data-toggle="tab">
  
positive.code:       $('a[data-toggle="tab"]').on('shown', function (e) {
              if(!embedEvents){
                embedEvents = true;
  
                $('button#btn_copy_embed').zclip({
                  path:'/assets/ZeroClipboard.swf',
  
negative.code:       <a class="btn btn-primary" href='<%=downloadPath%>'><i class="icon-download"></i> <%=t('document.actions.download')%></a> 
      </div>
    </div>
  
    <%if document.class==Video%>
      <div class="tab-pane <%= document_details_tab_class document, :embed %>" id="document-embed">
        <p class="documentembedexplanation"><%=t("document.embed_explanation")%></p>      
  