Commit 910a99f90b27b0b6de0140ce89f356b746d43113

Authored by Dmitriy Zaporozhets
1 parent dd03841f

Improve tree view for mobile

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/projects/tree/_blob_item.html.haml
@@ -5,4 +5,4 @@ @@ -5,4 +5,4 @@
5 = link_to blob_item.name, project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name)) 5 = link_to blob_item.name, project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name))
6 %td.tree_time_ago.cgray 6 %td.tree_time_ago.cgray
7 = render 'spinner' 7 = render 'spinner'
8 - %td.tree_commit{ colspan: 2 } 8 + %td.hidden-xs.tree_commit{ colspan: 2 }
app/views/projects/tree/_submodule_item.html.haml
@@ -11,5 +11,4 @@ @@ -11,5 +11,4 @@
11 - else 11 - else
12 = link_to "#{submodule_item.id[0..10]}", commit 12 = link_to "#{submodule_item.id[0..10]}", commit
13 %td 13 %td
14 - %td  
15 - %td 14 + %td.hidden-xs
app/views/projects/tree/_tree.html.haml
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 %tr 20 %tr
21 %th Name 21 %th Name
22 %th Last Update 22 %th Last Update
23 - %th.hidden-sm 23 + %th.hidden-sm.hidden-xs
24 Last Commit 24 Last Commit
25 %span.last-commit 25 %span.last-commit
26 &nbsp; 26 &nbsp;
@@ -30,15 +30,14 @@ @@ -30,15 +30,14 @@
30 = link_to @commit.short_id, project_commit_path(@project, @commit) 30 = link_to @commit.short_id, project_commit_path(@project, @commit)
31 &ndash; 31 &ndash;
32 = truncate(@commit.title, length: 50) 32 = truncate(@commit.title, length: 50)
33 - %th= link_to "history", project_commits_path(@project, @id), class: "pull-right" 33 + = link_to "history", project_commits_path(@project, @id), class: "pull-right"
34 34
35 - if @path.present? 35 - if @path.present?
36 %tr.tree-item 36 %tr.tree-item
37 %td.tree-item-file-name 37 %td.tree-item-file-name
38 = link_to "..", project_tree_path(@project, up_dir_path(tree)), class: 'prepend-left-10' 38 = link_to "..", project_tree_path(@project, up_dir_path(tree)), class: 'prepend-left-10'
39 %td 39 %td
40 - %td  
41 - %td 40 + %td.hidden-xs
42 41
43 = render_tree(tree) 42 = render_tree(tree)
44 43
app/views/projects/tree/_tree_item.html.haml
@@ -5,4 +5,4 @@ @@ -5,4 +5,4 @@
5 = link_to tree_item.name, project_tree_path(@project, tree_join(@id || @commit.id, tree_item.name)) 5 = link_to tree_item.name, project_tree_path(@project, tree_join(@id || @commit.id, tree_item.name))
6 %td.tree_time_ago.cgray 6 %td.tree_time_ago.cgray
7 = render 'spinner' 7 = render 'spinner'
8 - %td.tree_commit{ colspan: 2 } 8 + %td.hidden-xs.tree_commit{ colspan: 2 }