Unverified Commit 0f72f00c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6de169709c9c
- empty_repo = @project.empty_repo?
.project-home-panel{:class => ("empty-project" if empty_repo)}
= @project.name_with_namespace
= visibility_level_icon(@project.visibility_level)
= visibility_level_label(@project.visibility_level)
- unless empty_repo
= render "dropdown"
= render "shared/clone_panel"
- if @project.description.present?
= @project.description
- if can?(current_user, :admin_project, @project)
%button{class: "btn #{ 'active' if default_clone_protocol == 'ssh' }", :"data-clone" => @project.ssh_url_to_repo} SSH
%button{class: "btn #{ 'active' if default_clone_protocol == 'http' }", :"data-clone" => @project.http_url_to_repo}= gitlab_config.protocol.upcase
= text_field_tag :project_clone, default_url_to_repo, class: "one_click_select span5", readonly: true
= text_field_tag :project_clone, default_url_to_repo, class: "one_click_select span4", readonly: true
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