Sha256: adc34ee533bc51623ac0fdecf42d5eeb24279a66c880a4eaf96487bfcc8dfb26

Contents?: true

Size: 589 Bytes

Versions: 9

Compression:

Stored size: 589 Bytes

Contents

<% shortened_path = shorten_file_path(@path) %>

<div style="margin-bottom: 10px;">
  <%= link_to "#{ shortened_path }" ,
             "#",
             :title => @path,
             :class => "path" %>
  &nbsp;
  <%= link_to "..",
             up_path(@path),
             :title => up_path(@path),
             :class => :code %>
</div>


<%= @source %>

<script type="text/javascript">
  //<![CDATA[
  $(function() {
    $(".path").click(function(event) {
      event.preventDefault();
      $(this).html($(this).attr("title"));
    });
  });
  //]]>
</script>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
reflexive-0.1.2 views/files_show.erb
reflexive-0.1.1 views/files_show.erb
reflexive-0.1.0 views/files_show.erb
reflexive-0.0.6 views/files_show.erb
reflexive-0.0.5 views/files_show.erb
reflexive-0.0.4 views/files_show.erb
reflexive-0.0.3 views/files_show.erb
reflexive-0.0.2 views/files_show.erb
reflexive-0.0.1 views/files_show.erb