From af0b65ddb84bc3cfee58ecbed90326746823690b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 11 Mar 2012 11:46:15 +0200 Subject: [PATCH] projects page improved --- app/assets/stylesheets/common.scss | 16 ++++++++++++++++ app/views/projects/_show.html.haml | 8 ++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 394763a6..1faf8f26 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -431,6 +431,22 @@ img.lil_av { } } + &.padded { + h5, .title { + margin: -20px; + margin-bottom: 0; + padding: 5px 20px; + } + .middle_title { + background:#f5f5f5; + margin:20px -20px; + padding: 0 20px; + border-top:1px solid #eee; + border-bottom:1px solid #eee; + font-size:14px; + color:#777; + } + } .row_title { font-weight:bold; color:#444; diff --git a/app/views/projects/_show.html.haml b/app/views/projects/_show.html.haml index ee0b19e1..5d30b75b 100644 --- a/app/views/projects/_show.html.haml +++ b/app/views/projects/_show.html.haml @@ -1,6 +1,6 @@ -%h4 +%h4.title = @project.name -%hr +%br %div %a.btn.info{:href => tree_project_ref_path(@project, @project.root_ref)} Browse code   @@ -8,7 +8,7 @@ %strong.right = link_to project_path(@project) do Switch to project → -%hr +%br .alert-message.block-message.warning .input .input-prepend @@ -17,7 +17,7 @@ = simple_format @project.description - unless @events.blank? - %h5.cgray Recent Activity + %h4.middle_title Recent Activity .content_list= render @events