amahi/platform

View on GitHub
app/views/search/_result.html.slim

Summary

Maintainability
Test Coverage
li[class="#{cycle('odd', 'even')}"]
  .search-filename
    = file_type_to_icon(result[:type], result[:path])
    = link_to h(result[:title]), path2uri(result[:path])
  .search-location
    small = path2location(result[:path])
    |  — 
    em = number_to_human_size(result[:size])
    | , 
    em = h(result[:owner])
    |   
    = link_to theme_image_tag("icons/open-folder.png"), path2uri(File.dirname result[:path]), :title => t('open'), :class => 'file-icon'