Commit 536eb8e8 authored by Riyad Preukschas's avatar Riyad Preukschas

Remove #history_path and #mb_size from TreeDecorator

parent d40d2dd8
...@@ -28,17 +28,4 @@ class TreeDecorator < ApplicationDecorator ...@@ -28,17 +28,4 @@ class TreeDecorator < ApplicationDecorator
file = File.join(path, "..") file = File.join(path, "..")
h.project_tree_path(project, h.tree_join(ref, file)) h.project_tree_path(project, h.tree_join(ref, file))
end end
def history_path
h.project_commits_path(project, h.tree_join(ref, path))
end
def mb_size
size = (tree.size / 1024)
if size < 1024
"#{size} KB"
else
"#{size/1024} MB"
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment