Skip to content

Commit

Permalink
Tweak files view
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhaddox committed Jun 24, 2015
1 parent 7a4a8c9 commit 25f96cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/stylesheets/styles.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions sass/_rvmfw.scss
Expand Up @@ -139,4 +139,7 @@ article ul#files li.file {
clear: both;
display: block;
width: 100%;
.filename {
text-align: right;
}
}
4 changes: 2 additions & 2 deletions views/files.haml
@@ -1,13 +1,13 @@
%ul#files.row
%li.title.file
%div.filename.col-md-4.col-md-offset-2
%div.filename.col-md-6
%h3 Ruby Filename
%div.md5.col-md-6
%h3 MD5 Hash
- @rubies.sort.reverse.each do |ruby_path|
- unless File.symlink?(ruby_path) # Hide symlink files to reduce redundancy
%li.file
%div.filename.col-md-4.col-md-offset-2
%div.filename.col-md-6
%a{:href => "#{RVM_HOST}/#{ruby_path.gsub('public/','')}"} #{ruby_path.split('/')[-1]}
%div.md5.col-md-6.code
= Digest::MD5.hexdigest(File.open(ruby_path, "rb") { |f| f.read })

0 comments on commit 25f96cf

Please sign in to comment.