Improve project show page for ipad

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-01-06 14:05:39 +02:00
parent a6da154ed3
commit 2ee8d5aa43
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
3 changed files with 19 additions and 15 deletions

View file

@ -16,7 +16,7 @@
.project-home-panel { .project-home-panel {
border-bottom: 1px solid #DDD; border-bottom: 1px solid #DDD;
padding-bottom: 25px; padding-bottom: 15px;
margin-bottom: 30px; margin-bottom: 30px;
&.empty-project { &.empty-project {
@ -41,12 +41,14 @@
.project-home-desc { .project-home-desc {
float: left; float: left;
color: #777; color: #777;
margin-bottom: 10px;
} }
.project-home-links { .project-home-links {
float: right; float: right;
a { a {
margin-left: 10px; margin-left: 10px;
font-weight: 500;
} }
} }
} }

View file

@ -14,17 +14,19 @@
.form-horizontal .form-horizontal
= render "shared/clone_panel" = render "shared/clone_panel"
.project-home-extra.clearfix.row .project-home-extra.row
.project-home-desc.col-md-8 .col-md-8
- if @project.description.present? .project-home-desc
= @project.description - if @project.description.present?
- if can?(current_user, :admin_project, @project) = @project.description
&ndash; - if can?(current_user, :admin_project, @project)
%strong= link_to 'Edit', edit_project_path &ndash;
%strong= link_to 'Edit', edit_project_path
- unless empty_repo - unless empty_repo
.project-home-links .col-md-4
= link_to pluralize(@repository.round_commit_count, 'commit'), project_commits_path(@project, @ref || @repository.root_ref) .project-home-links
= link_to pluralize(@repository.branch_names.count, 'branch'), project_branches_path(@project) = link_to pluralize(@repository.round_commit_count, 'commit'), project_commits_path(@project, @ref || @repository.root_ref)
= link_to pluralize(@repository.tag_names.count, 'tag'), project_tags_path(@project) = link_to pluralize(@repository.branch_names.count, 'branch'), project_branches_path(@project)
%span.light.prepend-left-20= repository_size = link_to pluralize(@repository.tag_names.count, 'tag'), project_tags_path(@project)
%span.light.prepend-left-20= repository_size

View file

@ -1,12 +1,12 @@
= render "home_panel" = render "home_panel"
.row .row
.col-md-9.hidden-sm .col-md-9
= render "events/event_last_push", event: @last_push = render "events/event_last_push", event: @last_push
= render 'shared/event_filter' = render 'shared/event_filter'
.content_list .content_list
.loading.hide .loading.hide
.col-md-3.project-side .col-md-3.project-side.hidden-sm
.clearfix .clearfix
- if @project.archived? - if @project.archived?
.alert .alert