Commit 910a99f9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve tree view for mobile

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent dd03841f
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
= link_to blob_item.name, project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name)) = link_to blob_item.name, project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name))
%td.tree_time_ago.cgray %td.tree_time_ago.cgray
= render 'spinner' = render 'spinner'
%td.tree_commit{ colspan: 2 } %td.hidden-xs.tree_commit{ colspan: 2 }
...@@ -11,5 +11,4 @@ ...@@ -11,5 +11,4 @@
- else - else
= link_to "#{submodule_item.id[0..10]}", commit = link_to "#{submodule_item.id[0..10]}", commit
%td %td
%td %td.hidden-xs
%td
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
%tr %tr
%th Name %th Name
%th Last Update %th Last Update
%th.hidden-sm %th.hidden-sm.hidden-xs
Last Commit Last Commit
%span.last-commit %span.last-commit
&nbsp; &nbsp;
...@@ -30,15 +30,14 @@ ...@@ -30,15 +30,14 @@
= link_to @commit.short_id, project_commit_path(@project, @commit) = link_to @commit.short_id, project_commit_path(@project, @commit)
&ndash; &ndash;
= truncate(@commit.title, length: 50) = truncate(@commit.title, length: 50)
%th= link_to "history", project_commits_path(@project, @id), class: "pull-right" = link_to "history", project_commits_path(@project, @id), class: "pull-right"
- if @path.present? - if @path.present?
%tr.tree-item %tr.tree-item
%td.tree-item-file-name %td.tree-item-file-name
= link_to "..", project_tree_path(@project, up_dir_path(tree)), class: 'prepend-left-10' = link_to "..", project_tree_path(@project, up_dir_path(tree)), class: 'prepend-left-10'
%td %td
%td %td.hidden-xs
%td
= render_tree(tree) = render_tree(tree)
......
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
= link_to tree_item.name, project_tree_path(@project, tree_join(@id || @commit.id, tree_item.name)) = link_to tree_item.name, project_tree_path(@project, tree_join(@id || @commit.id, tree_item.name))
%td.tree_time_ago.cgray %td.tree_time_ago.cgray
= render 'spinner' = render 'spinner'
%td.tree_commit{ colspan: 2 } %td.hidden-xs.tree_commit{ colspan: 2 }
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