summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-05-18 00:23:18 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-05-18 00:23:18 +0300
commit02dc25651411d5a60d760265903ebf629959ba59 (patch)
treeff4bf9a807237e99b405ebd91cd43ba1b5a7380f
parent2b319d0496fb4eee24f78e1817235daf23d52079 (diff)
downloadgitlab-ce-02dc25651411d5a60d760265903ebf629959ba59.tar.gz
Branches pages polished. few css improvements
-rw-r--r--app/assets/stylesheets/gitlab_bootstrap.scss7
-rw-r--r--app/assets/stylesheets/main.scss5
-rw-r--r--app/assets/stylesheets/ui_basic.scss6
-rw-r--r--app/views/protected_branches/index.html.haml29
-rw-r--r--app/views/refs/_head.html.haml2
-rw-r--r--app/views/repositories/_branches_head.html.haml1
-rw-r--r--app/views/repositories/branches.html.haml9
-rw-r--r--app/views/repositories/show.html.haml8
-rw-r--r--app/views/snippets/_form.html.haml2
-rw-r--r--app/views/team_members/_show.html.haml2
10 files changed, 51 insertions, 20 deletions
diff --git a/app/assets/stylesheets/gitlab_bootstrap.scss b/app/assets/stylesheets/gitlab_bootstrap.scss
index b520c3bccf5..60090dbd976 100644
--- a/app/assets/stylesheets/gitlab_bootstrap.scss
+++ b/app/assets/stylesheets/gitlab_bootstrap.scss
@@ -1,3 +1,6 @@
+body {
+ margin-bottom:20px;
+}
a {
outline: none;
color: $link_color;
@@ -67,6 +70,10 @@ h3, h4, h5, h6 {
line-height: 36px;
}
+h5 {
+ font-size:14px;
+}
+
code {
background:#FCEEC1;
color:$style_color;
diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss
index dfc93153748..23108561c77 100644
--- a/app/assets/stylesheets/main.scss
+++ b/app/assets/stylesheets/main.scss
@@ -31,6 +31,11 @@ $hover: #FDF5D9;
box-shadow: 0 0 3px #ddd;
}
+@mixin border-radius($radius) {
+ -moz-border-radius: $radius;
+ -webkit-border-radius: $radius;
+ border-radius: $radius;
+}
@mixin round-borders-bottom($radius) {
border-top: 1px solid #eaeaea;
diff --git a/app/assets/stylesheets/ui_basic.scss b/app/assets/stylesheets/ui_basic.scss
index a2ddb20375e..251083df38d 100644
--- a/app/assets/stylesheets/ui_basic.scss
+++ b/app/assets/stylesheets/ui_basic.scss
@@ -87,6 +87,12 @@
padding: 5px;
margin-right:10px;
float:right;
+ background: #EEE;
+ @include border-radius(5px);
+ border: 1px solid #DDD;
+ img {
+ vertical-align:top;
+ }
}
.project_name {
diff --git a/app/views/protected_branches/index.html.haml b/app/views/protected_branches/index.html.haml
index 392a135d226..fa80a489774 100644
--- a/app/views/protected_branches/index.html.haml
+++ b/app/views/protected_branches/index.html.haml
@@ -8,10 +8,24 @@
%li forced code review before merge to protected branches
%p Read more about project permissions #{link_to "here", help_permissions_path, :class => "vlink"}
+- if can? current_user, :admin_project, @project
+ = form_for [@project, @protected_branch] do |f|
+ -if @protected_branch.errors.any?
+ .alert-message.block-message.error
+ %ul
+ - @protected_branch.errors.full_messages.each do |msg|
+ %li= msg
+
+ .entry.clearfix
+ = f.label :name, "Branch"
+ .span3
+ = f.select(:name, @project.open_branches.map { |br| [br.name, br.name] } , { :include_blank => "-- Select branch" }, { :class => "span3" })
+ &nbsp;
+ = f.submit 'Protect', :class => "primary btn"
- unless @branches.empty?
- %table.table-striped
+ %table.admin-table
%thead
%tr
%th Name
@@ -36,19 +50,6 @@
-- if can? current_user, :admin_project, @project
- = form_for [@project, @protected_branch] do |f|
- -if @protected_branch.errors.any?
- .alert-message.block-message.error
- %ul
- - @protected_branch.errors.full_messages.each do |msg|
- %li= msg
-
- .clearfix
- = f.label :name
- .input= f.select(:name, @project.open_branches.map { |br| [br.name, br.name] } , { :include_blank => "Select branch" }, { :style => "width:300px" })
- .actions
- = f.submit 'Add', :class => "primary btn"
:javascript
diff --git a/app/views/refs/_head.html.haml b/app/views/refs/_head.html.haml
index d76a4aca026..afec5af8580 100644
--- a/app/views/refs/_head.html.haml
+++ b/app/views/refs/_head.html.haml
@@ -6,5 +6,5 @@
= hidden_field_tag :path, params[:path]
%li{:class => "#{'active' if (controller.controller_name == "refs") }"}
= link_to tree_project_ref_path(@project, @ref) do
- Code
+ Source
diff --git a/app/views/repositories/_branches_head.html.haml b/app/views/repositories/_branches_head.html.haml
index dd0b343be1a..63cbee6c4f4 100644
--- a/app/views/repositories/_branches_head.html.haml
+++ b/app/views/repositories/_branches_head.html.haml
@@ -9,4 +9,3 @@
%li{:class => ("active" if current_page?(branches_project_repository_path(@project)))}
= link_to branches_project_repository_path(@project) do
All
-%hr
diff --git a/app/views/repositories/branches.html.haml b/app/views/repositories/branches.html.haml
index 75e34da5514..52c0bf8e618 100644
--- a/app/views/repositories/branches.html.haml
+++ b/app/views/repositories/branches.html.haml
@@ -1,6 +1,13 @@
= render "repositories/branches_head"
- unless @branches.empty?
- %table.table-striped.borders
+ %table.admin-table
+ %thead
+ %tr
+ %th Name
+ %th Last commit
+ %th Updated at
+ %th
+
%tbody
- @branches.each do |branch|
= render "repositories/branch", :branch => branch
diff --git a/app/views/repositories/show.html.haml b/app/views/repositories/show.html.haml
index 43514551420..ceb971a4e17 100644
--- a/app/views/repositories/show.html.haml
+++ b/app/views/repositories/show.html.haml
@@ -1,6 +1,12 @@
= render "branches_head"
-%table.zebra-striped.borders
+%table.admin-table
+ %thead
+ %tr
+ %th Name
+ %th Last commit
+ %th Updated at
+ %th
- @activities.each do |update|
= render "repositories/branch", :branch => update.head
diff --git a/app/views/snippets/_form.html.haml b/app/views/snippets/_form.html.haml
index a0a00556030..5a28a350d3c 100644
--- a/app/views/snippets/_form.html.haml
+++ b/app/views/snippets/_form.html.haml
@@ -19,7 +19,7 @@
.input= f.select :expires_at, lifetime_select_options, {}, :style => "width:200px;"
.clearfix
= f.label :content, "Code"
- = f.text_area :content, :class => "xxlarge"
+ .input= f.text_area :content, :class => "span8"
.actions
= f.submit 'Save', :class => "primary btn"
diff --git a/app/views/team_members/_show.html.haml b/app/views/team_members/_show.html.haml
index ac648f7cb3e..00d06601668 100644
--- a/app/views/team_members/_show.html.haml
+++ b/app/views/team_members/_show.html.haml
@@ -6,7 +6,7 @@
= link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
= image_tag gravatar_icon(user.email, 40), :class => "avatar"
%strong= truncate(user.name, :lenght => 40)
- .prepend-top-10= user.email
+ %div.cgray= user.email
.span3
= form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|