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
app/views/projects/tree/_submodule_item.html.haml
app/views/projects/tree/_tree.html.haml
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | %tr |
21 | 21 | %th Name |
22 | 22 | %th Last Update |
23 | - %th.hidden-sm | |
23 | + %th.hidden-sm.hidden-xs | |
24 | 24 | Last Commit |
25 | 25 | %span.last-commit |
26 | 26 | |
... | ... | @@ -30,15 +30,14 @@ |
30 | 30 | = link_to @commit.short_id, project_commit_path(@project, @commit) |
31 | 31 | – |
32 | 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 | 35 | - if @path.present? |
36 | 36 | %tr.tree-item |
37 | 37 | %td.tree-item-file-name |
38 | 38 | = link_to "..", project_tree_path(@project, up_dir_path(tree)), class: 'prepend-left-10' |
39 | 39 | %td |
40 | - %td | |
41 | - %td | |
40 | + %td.hidden-xs | |
42 | 41 | |
43 | 42 | = render_tree(tree) |
44 | 43 | ... | ... |
app/views/projects/tree/_tree_item.html.haml