Commit 0f72f00ce93be37986e8ffba096f937700701ee0
1 parent
640175f5
Exists in
spb-stable
and in
3 other branches
Improve project show page UI
* Fixes overflow with long description * Fixes overflow for project with long name * Fixes overflow for non-retina iPad Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
app/views/projects/_home_panel.html.haml
| 1 | 1 | - empty_repo = @project.empty_repo? |
| 2 | 2 | .project-home-panel{:class => ("empty-project" if empty_repo)} |
| 3 | 3 | .row |
| 4 | - .span5 | |
| 4 | + .span6 | |
| 5 | 5 | %h4.project-home-title |
| 6 | 6 | = @project.name_with_namespace |
| 7 | 7 | %span.visibility-level-label |
| 8 | 8 | = visibility_level_icon(@project.visibility_level) |
| 9 | 9 | = visibility_level_label(@project.visibility_level) |
| 10 | 10 | |
| 11 | - .span7 | |
| 11 | + .span6 | |
| 12 | 12 | - unless empty_repo |
| 13 | 13 | .project-home-dropdown |
| 14 | 14 | = render "dropdown" |
| 15 | 15 | .form-horizontal |
| 16 | 16 | = render "shared/clone_panel" |
| 17 | 17 | |
| 18 | - .project-home-extra.clearfix | |
| 19 | - .project-home-desc | |
| 18 | + .project-home-extra.clearfix.row | |
| 19 | + .project-home-desc.span8 | |
| 20 | 20 | - if @project.description.present? |
| 21 | 21 | = @project.description |
| 22 | 22 | - if can?(current_user, :admin_project, @project) | ... | ... |
app/views/shared/_clone_panel.html.haml
| 1 | 1 | .git-clone-holder |
| 2 | 2 | %button{class: "btn #{ 'active' if default_clone_protocol == 'ssh' }", :"data-clone" => @project.ssh_url_to_repo} SSH |
| 3 | 3 | %button{class: "btn #{ 'active' if default_clone_protocol == 'http' }", :"data-clone" => @project.http_url_to_repo}= gitlab_config.protocol.upcase |
| 4 | - = text_field_tag :project_clone, default_url_to_repo, class: "one_click_select span5", readonly: true | |
| 4 | + = text_field_tag :project_clone, default_url_to_repo, class: "one_click_select span4", readonly: true | ... | ... |