From 930455f0655ab5e04a90ee108ad21ffcee31f947 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Wed, 16 Nov 2011 23:55:10 +0300 Subject: [PATCH 01/13] change the highlight color from pink to blue --- app/assets/stylesheets/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/style.scss b/app/assets/stylesheets/style.scss index 1f3fa1b7..b3530e5b 100644 --- a/app/assets/stylesheets/style.scss +++ b/app/assets/stylesheets/style.scss @@ -11,8 +11,8 @@ html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms- body { margin: 0; font-size: 13px; line-height: 1.231; } body, button, input, select, textarea { font-family: sans-serif; color: #222; } -::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; } -::selection { background: #fe57a1; color: #fff; text-shadow: none; } +::-moz-selection { background: #79c3e0; color: #fff; text-shadow: none; } +::selection { background: #79c3e0; color: #fff; text-shadow: none; } a { color: #00e; } a:hover { color: #06e; } From 459c9ba27d99f78b16107d0f19cc0c51b04a60c5 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Thu, 17 Nov 2011 00:13:14 +0300 Subject: [PATCH 02/13] bugfix back button on page admin/project/new --- app/views/admin/projects/new.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/admin/projects/new.html.haml b/app/views/admin/projects/new.html.haml index 3a4d50e1..3a2985b0 100644 --- a/app/views/admin/projects/new.html.haml +++ b/app/views/admin/projects/new.html.haml @@ -2,4 +2,5 @@ = render 'form' -= link_to 'Back', admin_projects_path +.actions + = link_to 'Back', admin_projects_path, :class => 'lbutton' \ No newline at end of file From 9987ec934c2e0662a43f293799e6a8e09f4121f8 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Thu, 17 Nov 2011 00:17:55 +0300 Subject: [PATCH 03/13] added 10px in bottom --- app/assets/stylesheets/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/style.scss b/app/assets/stylesheets/style.scss index b3530e5b..801bac38 100644 --- a/app/assets/stylesheets/style.scss +++ b/app/assets/stylesheets/style.scss @@ -545,7 +545,7 @@ body.project-page h2.icon .project-name i.arrow{float: right; } body.project-page h2.icon span{ background-position: -78px -68px; } -body.project-page .project-container{ position: relative; float: left; width: 100%; height: 100%; } +body.project-page .project-container{ position: relative; float: left; width: 100%; height: 100%; padding-bottom: 10px;} body.project-page .page-title{margin-bottom: 0} body.project-page .project-sidebar {width: 220px; left: 0; top: 0; height: 100%; bottom: 0; position: absolute; background-color: #f7f7f7; float: left; display: inline-block; background: #f7f7f7; padding: 20px 0 20px 2%; margin: 0; } From 4dee4bdb57c483bffa8d11025dface563d24869c Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Thu, 17 Nov 2011 00:22:18 +0300 Subject: [PATCH 04/13] change back button position when project creating --- app/views/admin/projects/new.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/admin/projects/new.html.haml b/app/views/admin/projects/new.html.haml index 3a2985b0..1100e73d 100644 --- a/app/views/admin/projects/new.html.haml +++ b/app/views/admin/projects/new.html.haml @@ -2,5 +2,4 @@ = render 'form' -.actions - = link_to 'Back', admin_projects_path, :class => 'lbutton' \ No newline at end of file += link_to 'Back', admin_projects_path, :class => 'right lbutton' \ No newline at end of file From c3eac16fe97d33f3296e2c8ce870855345df446d Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Thu, 17 Nov 2011 01:19:00 +0300 Subject: [PATCH 05/13] update notice and show-info view --- app/assets/stylesheets/style.scss | 13 +++++++++++++ app/views/admin/projects/show.html.haml | 2 +- app/views/admin/team_members/show.html.haml | 4 ++-- app/views/admin/users/show.html.haml | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/style.scss b/app/assets/stylesheets/style.scss index 801bac38..7947a293 100644 --- a/app/assets/stylesheets/style.scss +++ b/app/assets/stylesheets/style.scss @@ -316,6 +316,19 @@ body.login-page{background-color: #f1f1f1; padding-top: 10%} } /* eo Errors */ +/* Notices */ +#notice{background: #dfffe1; padding: 20px; margin-bottom: 20px; border-radius: 5px; color: green; font-size: 1.3em;} +/* eo Notices */ + +/* InfoBlock */ +#infoblock{ + background: #eeeeee; + padding: 20px; + margin-bottom: 20px; + border-radius: 5px; +} +/* eo InfoBlock */ + /* General */ #container{background-color: white; overflow: hidden; } body.collapsed #container{margin: auto; width: 980px; border: 1px solid rgba(0,0,0,.22); border-top: 0; box-shadow: 0 0 0px 4px rgba(0,0,0,.04)} diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml index fc2e6324..2266eb80 100644 --- a/app/views/admin/projects/show.html.haml +++ b/app/views/admin/projects/show.html.haml @@ -1,6 +1,6 @@ %p#notice= notice -.span-8.colborder +#infoblock %h2= @admin_project.name %p diff --git a/app/views/admin/team_members/show.html.haml b/app/views/admin/team_members/show.html.haml index 29d1160c..dd42dee7 100644 --- a/app/views/admin/team_members/show.html.haml +++ b/app/views/admin/team_members/show.html.haml @@ -1,6 +1,6 @@ %p#notice= notice -.span-10 +#infoblock %p %b Name: = @admin_team_member.user_name @@ -11,7 +11,7 @@ %b Since: = @admin_team_member.updated_at -.span-10 +#infoblock .span-6 %b Access: .span-8 diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index 5bc5bf9a..dc7e21d0 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -1,6 +1,6 @@ %p#notice= notice -.span-8.colborder +#infoblock %p %b Name: = @admin_user.name From 0c19b1afd9001b90b61f60f09338f3f57961ae09 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Fri, 18 Nov 2011 22:10:07 +0300 Subject: [PATCH 06/13] disabled empty notice --- app/views/admin/projects/show.html.haml | 3 ++- app/views/admin/users/show.html.haml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml index 2266eb80..9f7405c7 100644 --- a/app/views/admin/projects/show.html.haml +++ b/app/views/admin/projects/show.html.haml @@ -1,4 +1,5 @@ -%p#notice= notice +- unless notice.nil? + %p#notice= notice #infoblock %h2= @admin_project.name diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index dc7e21d0..4605fcb9 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -1,4 +1,5 @@ -%p#notice= notice +- unless notice.nil? + %p#notice= notice #infoblock %p From 46d7ecacd70d3739c6a5b6953f3f1a13924ffef7 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Fri, 18 Nov 2011 22:19:55 +0300 Subject: [PATCH 07/13] table header align bugfix --- app/assets/stylesheets/projects.css.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index 58c9c907..c08dd656 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -54,6 +54,7 @@ table.round-borders { float:left; + text-align: left; } a { From 5488f17389e7b7720d02513dabd262af7ac51435 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Fri, 18 Nov 2011 23:54:06 +0300 Subject: [PATCH 08/13] changet button disign --- app/assets/stylesheets/projects.css.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index c08dd656..35857e81 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -208,7 +208,7 @@ input.ssh_project_url { .lite_button { display:block; float:left; - margin: 0px 5px; + margin: 0px 0px 0px 5px; padding:5px 10px; font-family:"Helvetica Neue", Arial, Helvetica, sans-serif; From f950d7881c1a8607b47fd4c3e8b75db1bc6c4805 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Fri, 18 Nov 2011 23:54:56 +0300 Subject: [PATCH 09/13] changing admin disign for projects finish --- app/views/admin/projects/edit.html.haml | 5 +- app/views/admin/projects/index.html.haml | 4 +- app/views/admin/projects/show.html.haml | 65 +++++++++++++++--------- 3 files changed, 43 insertions(+), 31 deletions(-) diff --git a/app/views/admin/projects/edit.html.haml b/app/views/admin/projects/edit.html.haml index 9d9a1ee0..3a1591b1 100644 --- a/app/views/admin/projects/edit.html.haml +++ b/app/views/admin/projects/edit.html.haml @@ -1,5 +1,4 @@ = render 'form' -= link_to 'Show', [:admin, @admin_project] -\| -= link_to 'Back', admin_projects_path += link_to 'Back', admin_projects_path, :class => "right lbutton" += link_to 'Show', [:admin, @admin_project], :class => "right lbutton" \ No newline at end of file diff --git a/app/views/admin/projects/index.html.haml b/app/views/admin/projects/index.html.haml index c529b82e..7ae9397c 100644 --- a/app/views/admin/projects/index.html.haml +++ b/app/views/admin/projects/index.html.haml @@ -20,7 +20,5 @@ %td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}" %td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete -%br - = paginate @admin_projects -= link_to 'New Project', new_admin_project_path += link_to 'New Project', new_admin_project_path, :class => "lbutton" diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml index 9f7405c7..89b9afa8 100644 --- a/app/views/admin/projects/show.html.haml +++ b/app/views/admin/projects/show.html.haml @@ -1,38 +1,53 @@ - unless notice.nil? %p#notice= notice -#infoblock - %h2= @admin_project.name - %p - %b Name: - = @admin_project.name - %p - %b Code: - = @admin_project.code - %p - %b Path: - = @admin_project.path - %p - %b Description: - = @admin_project.description +%h2= @admin_project.name + +%table.round-borders + %tr + %td + %b + Name: + %td + = @admin_project.name + %tr + %td + %b + Code: + %td + = @admin_project.code + %tr + %td + %b + Path: + %td + = @admin_project.path + %tr + %td + %b + Description: + %td + = @admin_project.description + %tr + %td{:colspan => 2} + = link_to 'Edit', edit_admin_project_path(@admin_project), :class => "lbutton" + = link_to 'Back', admin_projects_path, :class => "right lbutton" - = link_to 'Edit', edit_admin_project_path(@admin_project) - \| - = link_to 'Back', admin_projects_path .span-14 %h2 Team %table.round-borders - %tr - %th Name - %th Added - %th Web - %th Git - %th Admin - %th + %thead + %tr + %th Name + %th Added + %th Web + %th Git + %th Admin + %th - @admin_project.users_projects.each do |tm| %tr @@ -43,4 +58,4 @@ %td.span-2= check_box_tag "admin", 1, @admin_project.admins.include?(tm.user), :disabled => :disabled %td= link_to 'Destroy', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete - = link_to 'New Team Member', new_admin_team_member_path(:team_member => {:project_id => @admin_project.id}) + = link_to 'New Team Member', new_admin_team_member_path(:team_member => {:project_id => @admin_project.id}), :class => "lbutton" From 22be0785bdf76987de57fa4f912c5e1b11d40144 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Fri, 18 Nov 2011 23:55:13 +0300 Subject: [PATCH 10/13] changing admin disign for users finish --- app/views/admin/users/edit.html.haml | 2 +- app/views/admin/users/index.html.haml | 5 +- app/views/admin/users/show.html.haml | 86 ++++++++++++++++----------- 3 files changed, 54 insertions(+), 39 deletions(-) diff --git a/app/views/admin/users/edit.html.haml b/app/views/admin/users/edit.html.haml index fac99517..a9ae7986 100644 --- a/app/views/admin/users/edit.html.haml +++ b/app/views/admin/users/edit.html.haml @@ -1,4 +1,4 @@ = render 'form' -= link_to 'Show', [:admin, @admin_user], :class => "right lbutton" = link_to 'Back', admin_users_path, :class => "right lbutton" += link_to 'Show', [:admin, @admin_user], :class => "right lbutton" diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml index e12cfc77..78e84398 100644 --- a/app/views/admin/users/index.html.haml +++ b/app/views/admin/users/index.html.haml @@ -18,8 +18,5 @@ %td= link_to 'Edit', edit_admin_user_path(user), :id => "edit_#{dom_id(user)}" %td= link_to 'Destroy', [:admin, user], :confirm => 'Are you sure?', :method => :delete -%br - = paginate @admin_users - -= link_to 'New User', new_admin_user_path += link_to 'New User', new_admin_user_path, :class => "lbutton" diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index 4605fcb9..2437a01a 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -1,46 +1,64 @@ - unless notice.nil? %p#notice= notice -#infoblock - %p - %b Name: - = @admin_user.name - %p - %b Email: - = @admin_user.email - %p - %b Admin: - = @admin_user.admin - %p - %b Projects limit: - = @admin_user.projects_limit +%h2= @admin_user.name - %p - %b Skype: - = @admin_user.skype - %p - %b LinkedIn: - = @admin_user.linkedin - %p - %b Twitter: - = @admin_user.twitter - - .clear - = link_to 'Edit', edit_admin_user_path(@admin_user) - \| - = link_to 'Back', admin_users_path +%table.round-borders + %tr + %td + %b + Email: + %td + = @admin_user.email + %tr + %td + %b + Admin: + %td= check_box_tag "admin", 1, @admin_user.admin, :disabled => :disabled + %tr + %td + %b + Projects limit: + %td + = @admin_user.projects_limit + - unless @admin_user.skype.empty? + %tr + %td + %b + Skype: + %td + = @admin_user.skype + - unless @admin_user.linkedin.empty? + %tr + %td + %b + Linkedin: + %td + = @admin_user.linkedin + - unless @admin_user.twitter.empty? + %tr + %td + %b + Twitter: + %td + = @admin_user.twitter + %tr + %td{:colspan => 2} + = link_to 'Edit', edit_admin_user_path(@admin_user), :class => "lbutton" + = link_to 'Back', admin_users_path, :class => "right lbutton" .span-14 %h2 Projects %table.round-borders %tr - %th Name - %th Added - %th Web - %th Git - %th Admin - %th + %thead + %th Name + %th Added + %th Web + %th Git + %th Admin + %th - @admin_user.users_projects.each do |tm| - project = tm.project @@ -53,4 +71,4 @@ %td= link_to 'Edit', edit_admin_team_member_path(tm) %td= link_to 'Cancel', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete - = link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}) + = link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}), :class => "lbutton" From bc591f929d60c9a1a563bd19b659a05dc393cbb2 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Sat, 19 Nov 2011 00:31:06 +0300 Subject: [PATCH 11/13] admin button style update --- app/assets/stylesheets/projects.css.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index 35857e81..08891e8f 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -208,7 +208,7 @@ input.ssh_project_url { .lite_button { display:block; float:left; - margin: 0px 0px 0px 5px; + margin: 0px 5px 0px 0px; padding:5px 10px; font-family:"Helvetica Neue", Arial, Helvetica, sans-serif; From 84fc40f198255594c0e2872eff340fdb33d2d72e Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Sat, 19 Nov 2011 00:32:26 +0300 Subject: [PATCH 12/13] changing admin disign for projects update --- app/views/admin/projects/_form.html.haml | 1 + app/views/admin/projects/edit.html.haml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/admin/projects/_form.html.haml b/app/views/admin/projects/_form.html.haml index 36cc264f..4a4d4699 100644 --- a/app/views/admin/projects/_form.html.haml +++ b/app/views/admin/projects/_form.html.haml @@ -29,6 +29,7 @@ %br = f.text_area :description .clear + %hr .actions = f.submit 'Save', :class => "lbutton" diff --git a/app/views/admin/projects/edit.html.haml b/app/views/admin/projects/edit.html.haml index 3a1591b1..cca3343b 100644 --- a/app/views/admin/projects/edit.html.haml +++ b/app/views/admin/projects/edit.html.haml @@ -1,3 +1,4 @@ +%h2= @admin_project.name = render 'form' = link_to 'Back', admin_projects_path, :class => "right lbutton" From 7c5e83c0c2b0e5ecaff88991b09aecacb34f3776 Mon Sep 17 00:00:00 2001 From: Alexander Randa Date: Sat, 19 Nov 2011 00:33:10 +0300 Subject: [PATCH 13/13] changing admin disign for userss update --- app/views/admin/users/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index 06e5be19..35d8aa47 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -44,6 +44,6 @@ %br = f.text_field :twitter .clear - %br + %hr .actions = f.submit 'Save', :class => "lbutton"