Commit 910a99f90b27b0b6de0140ce89f356b746d43113
1 parent
dd03841f
Exists in
spb-stable
and in
2 other branches
Improve tree view for mobile
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
4 changed files
with
6 additions
and
8 deletions
Show diff stats
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
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 | | 26 | |
| @@ -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 | – | 31 | – |
| 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 } |